Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMB share with strange filenames

Featured Replies

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.

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.

 

  • 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)

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?

  • 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...

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.

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.

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.