Hello. I am trying to create a text file that contains an accent like '?' in it's filename on a vfat filesystem. This generates an error like the following: "test?.txt" E212: Can't open file for writing I have made a 'modprobe nls_cp850' and 'modprobe nls_iso8859-1' to load those needed modules. Then I mounted my FAT32 partition like this: mount -t vfat -o iocharset=iso8859-1,codepage=850 /dev/hdb1 /samba_backups The mount succeeded but I still cannot create or copy a file that has an accent in it's filename. Of course I can create without any problem a file without any accent once the filesystem mounted the same way. It seems that other people on other systems are having no problems. Does somebody knows what happens and what I am doing wrong, and that would have any suggestion ? Thank you. Daniel
On Sat, Sep 03, 2005 at 04:10:19PM +0200, dan1 wrote:> Hello. > > I am trying to create a text file that contains an accent like '?' in it's > filename on a vfat filesystem. This generates an error like the following: > "test?.txt" E212: Can't open file for writing >...> Then I mounted my FAT32 partition like this: > > mount -t vfat -o iocharset=iso8859-1,codepage=850 /dev/hdb1 /samba_backupsmount -t vfat -o utf8 /dev/hdb1 /samba_backups Tru -- Tru Huynh (CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20050903/5f88d0c9/attachment-0001.sig>
Maciej Żenczykowski
2005-Sep-03 16:19 UTC
[CentOS] Accents in filenames on vfat filesystem
That depends on the 'native' character set you are using. On my Fedore Core 2 system where the native Linux character set is set to 'iso-8859-2' the following in /etc/fstab works wonders (one line): /dev/hda1 /c vfat defaults,nodev,nosuid,quiet,umask=0000,showexec,noatime,uni_xlate,codepage=437,iocharset=iso8859-2 If your system is set for UTF-8 (like most newer systems) then you'll need to use something else (-o utf8 ?) Cheers, MaZe.
>On Sat, Sep 03, 2005 at 04:10:19PM +0200, dan1 wrote: >> Hello. >> >> I am trying to create a text file that contains an accent like '?' in >> it's >> filename on a vfat filesystem. This generates an error like the >> following: >> "test?.txt" E212: Can't open file for writing >> >... >> Then I mounted my FAT32 partition like this: >> >> mount -t vfat -o iocharset=iso8859-1,codepage=850 /dev/hdb1 >> /samba_backups >mount -t vfat -o utf8 /dev/hdb1 /samba_backups Yes, this is working. Thanks Tru ! Regards, Daniel