One problem I have with NTFS-3g is its unwillingness to display files
with funny characters in their names.  In my case, I have several music
directories whose names were created by some CD ripping tool and contain
non-ascii characters.  On Windows these directories appear fine, but on
Linux with NTFS-3g the directories appear empty.  In the system log I
see these messages:

Feb 12 21:14:12 alohomora ntfs-3g[3530]: Skipping unrepresentable filename
(inode 3432)

Eventually, I found the entry in the FAQ[1], but it didn't exactly help.
In /etc/fstab there is a mount option: "nls=utf8", which sounds
plausible but wasn't working.  I ran locale -a, as suggested by the FAQ
and picked out en_US.utf8 and tried mounting the device with
"locale=en_US.utf8" added to the options.  This was rejected with:

% sudo mount UUID=AC5C6ACB5C6A8FBE /media/sda7 -o
defaults,umask=007,gid=46,show_sys_files,locale=en_US.utf8

[17212311.936000] NTFS-fs error (device sda7): parse_options(): Unrecognized
mount option locale.

then I tried nls=en_US.utf8 and that failed with:

[17212322.260000] Unable to load NLS charset en_US.utf8
[17212322.260000] NTFS-fs error (device sda7): parse_options(): NLS character
set en_US.utf8 not found.

I had similar luck with other combinations.  Then I gave up and
remounted it as before, and lo and behold it now works!

% ls /media/sda7/music/listened/Keith\ Jarrett
total 4
drwxrwx--- 1 4096 2005-07-06 20:02 The Köln Concert/
% ls /media/sda7/music/listened/K\ D\ Lang/
total 4
drwxrwx--- 1 4096 2005-07-06 15:08 Ingénue/

So what was the problem?  Perhaps the mount occurs too early in the boot
sequence and the NLS system isn't up yet?

I am running Ubuntu 6.10 (Edgy); uname -a:

Linux alohomora 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686
GNU/Linux

Ted Anderson

[1] http://www.ntfs-3g.org/support.html#locale

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to