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_backups
mount -t vfat -o utf8 /dev/hdb1 /samba_backups
Tru
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
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.
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.
Thank you maze. Tru gave me the answer. We should put those mount options for it to work with CentoOS 4: mount -t vfat -o utf8 /dev/hdb1 /samba_backups
I have tried and it seems to work well. I did not try to mount an already written FAT32 disk and look for the result but that's my next step..
Regards, Daniel