Problems with cyrillic filenames on USB devices

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Post Reply
Wild Rat
Posts: 40
Joined: Fri Feb 17, 2012 9:43 pm

Problems with cyrillic filenames on USB devices

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

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Problems with cyrillic filenames on USB devices

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Wild Rat
Posts: 40
Joined: Fri Feb 17, 2012 9:43 pm

Re: Problems with cyrillic filenames on USB devices

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

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Problems with cyrillic filenames on USB devices

Post 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
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Wild Rat
Posts: 40
Joined: Fri Feb 17, 2012 9:43 pm

Re: Problems with cyrillic filenames on USB devices

Post by Wild Rat »

On NTFS system filenames displayed correctly.

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: Problems with cyrillic filenames on USB devices

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Post Reply