OpenWrt Forum Archive

Topic: FAT32 usb disk with Samba - codepage problem

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello experts,

I try to mount FAT32 external disk on USB formated and used on Windows 7 and then share with Samba. After some fiddeling I have succeded except for the codepage encoding. If I mount the disk without any extra parameters it is mounted as following:

/dev/sda1 on /share type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

After sharing it with Samba all the accented characters in filenames are corrupted. The filename use Czech language so I guess that the encoding should be CP852 (ISO) or CP1250(Win) and the iocharset should be unicode (utf-8) or iso8859-2.

I have tried various combinations in parameters of mount like -o codepage=852,iocharset=utf-8 and others but the only effects that in the Putty console all the accented characters are substituted by questionmarks and on Samba (on Win 7) they are substituted be some special characters. These special characters differ wth each combination of codepage and iocharset but it never shows the correct accented characters.

Can anyone help?

Regards

Jiri

Hello, just in case (even though some time has passed) did you manage to resolve this issue?
I've the same problem.
Thanks.
Ondrej

It seems I was able to find correct combination.
This mount cmd worked for me:
mount -t vfat -o iocharset=utf8,codepage=852 /dev/sda1 /mnt/usb

The discussion might have continued from here.