Page 1 of 1

Problems with cyrillic filenames on USB devices

Posted: Mon Feb 20, 2012 6:07 am
by Wild Rat
I connect my flashdrive (Fat32) to Usb port of my router (TL-WR1043ND) running Gargoyle 1.5.3 and share it with smb - and all files|folders names thet are not latin shown in random latin names. I hecked - cyrillic packeges are present in firmware.

Re: Problems with cyrillic filenames on USB devices

Posted: Mon Feb 20, 2012 8:09 am
by hnl_dk
Wild Rat wrote:I connect my flashdrive (Fat32) to Usb port of my router (TL-WR1043ND) running Gargoyle 1.5.3 and share it with smb - and all files|folders names thet are not latin shown in random latin names. I hecked - cyrillic packeges are present in firmware.
VFAT needs kernel modules, for each language support.
You can try to run dmesg, to see what language module it needs.
Maybe this should be a feature request, that at least some of the kernel modules get added (but I am not sure of their size).

I have now moved it to feature requests, as I can see that this could be a problem for lots of people.

Re: Problems with cyrillic filenames on USB devices

Posted: Mon Feb 20, 2012 12:30 pm
by Wild Rat
dmesg didn't show any errors:

Code: Select all

usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     Samsung  GT-B2710-CARD    2.31 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 0:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 0f 0e 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
warning: `smbd' uses 32-bit capabilities (legacy support in use)
nfsd: last server has exited, flushing export cache
nfsd: last server has exited, flushing export cache
usb 1-1: USB disconnect, address 3
i try:

Code: Select all

/root$ opkg install kmod-nls-cp866
Package kmod-nls-cp866 (2.6.32.27-1) installed in root is up to date.
/root$ opkg install kmod-nls-koi8r
Package kmod-nls-koi8r (2.6.32.27-1) installed in root is up to date.
/root$ opkg install kmod-nls-cp1251
Package kmod-nls-cp1251 (2.6.32.27-1) installed in root is up to date.
so i sought, that all neaded packeges are present in system.

If i wrong, it whould be nice to have this feature in future versions.

Re: Problems with cyrillic filenames on USB devices

Posted: Mon Feb 20, 2012 1:26 pm
by hnl_dk
I just checked.
The charset needs to be setup while compiling vfat :-(
By default iso8859-1 is chosen, but when mounting, you can set the charset with the nls= option.
So you should be able to simply add the following to the mount line

Code: Select all

nls=cp866

Re: Problems with cyrillic filenames on USB devices

Posted: Thu Feb 23, 2012 3:05 pm
by Wild Rat
On NTFS system filenames displayed correctly.

Re: Problems with cyrillic filenames on USB devices

Posted: Fri Feb 24, 2012 8:34 am
by hnl_dk
Wild Rat wrote:On NTFS system filenames displayed correctly.
Yes, it looks like it is "only" the vfat filesystem.that has this problem.