February 12, 20188 yr Hello, I got a strange issue: some months ago I saw that some of my files (.mkv) were showed in my kodi installation (Librelec) with strange filenames (Example: SLUN7X~U.MKV). Initially i thought that i did some error in a script that i used to parse and modify some infos in my folder, so i renamed the files manually. Yesterday I got the same issue, but i tried to rename the file in a terminal session and...surprise...the filename was corret!!! I checked also the filename by the web interface and it was not corrupted. Today i tried to access to the shared folder from an other machine and the filename is the "corrupted one" (always with SMB protocol). The file is showed perfectly if i try to use NFS instead of SMB. I don't know which other infos could be useful, i'm running the latest version of unraid (6.4.1) but the issue happened with the latest stable version of 6.3 and with 6.4.0. Also the unraid server of one of my friends was affected by the same issue.
February 12, 20188 yr The file names are not corrupted, they are just being displayed in the shortened 8.3 DOS form because the name contains characters that the SMB implementation cannot handle.
February 13, 20188 yr Author i think that this in not the scenario that you are talking about. usually, the 8.3 DOS form is with ~1 and the first characters didn't reflect the initial part the name. and btw, the name was not including special characters as you said (the name is Spider-Man: Homecoming (2017).mkv)
February 13, 20188 yr I have once had a FAT32 partition where a M$ bug resulted in the destruction of some long file names giving the above outcome. FAT32 uses many standard FAT16 directory entries intended for 8.3 file names to encode a single long file name. And if some program that doesn't understand this overwrites one of the multiple directory entries for the same file then the outcome can be the destruction of the original long name. What happens if you in Windows write: dir /x to see the directory with both long and short file names?
February 13, 20188 yr Author now i'm travelling and i can't test. the strange thing is that the issue happened from a windows machine, a mac one and a linux one (openelec)...so, from my experience, the issue should be server / service (SMB) side...
February 13, 20188 yr I suspect it is probably the use of ‘:’ in the file name. As windows uses this as a drive separator it is on the list of character not to use on windows systems.
February 13, 20188 yr 10 minutes ago, remotevisitor said: I suspect it is probably the use of ‘:’ in the file name. As windows uses this as a drive separator it is on the list of character not to use on windows systems. Didn't spot the ':' - yes that's a very problematic file name character. Lots of programs has auto-translate rules converting to space-dash-space for better file system compatibility.
February 20, 20188 yr Author thank you so much. let's stay that is strange....only one file was affected recently and after long time (i think one month). regards.
Archived
This topic is now archived and is closed to further replies.