ntfs-3g support?

Bug #75791 reported by Mikael Nilsson
4
Affects Status Importance Assigned to Milestone
gnome-mount (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi!

I'm using an updated feisty, with gnome-mount 0.5-2ubuntu3. I have givré's ntfs-3g packages installed (http://ubuntuforums.org/showthread.php?t=217009).

Now, in edgy, plugging in an external device worked fine, and using pmount manually also works fine. But letting it mount automatically gives it the wrong charset (should use UTF-8), so files with non-ascii characters won't show.

I was under the impression that gnome-mount would support ntfs-3g, so you might want to know about the issue.

I'd be happy to help debug this if necessary.

Revision history for this message
Florent Mertens (givre) wrote :

Hi,

gnome-mount actually replace pmount, and so it use a different method.
Basically, gnome-mount support ntfs-3g, as soon as you tell hal to use ntfs-3g for all ntfs device. This can be done by an .fdi file.
If you install my modified pmount package (even if you don't need pmount anymore), you get this kind of file, and it's probably why it works automatically.

The problem is that, ntfs-3g use a different local option than the kernel driver.
- With the kernel driver, a simple "utf8" is enough, and this is what do gnome-mount
- ntfs-3g use a "local=××_××.××" option (ex : en_US.utf8, fr_FR.utf8), and so this option may change with your configuration.

pmount set the local in the program, so you can get the local by calling setlocale( LC_ALL, "" ) and setting it for ntfs-3g. But as far as i know, gnome-mount use a config file, so setting automatically the local option is a bit tricky.

Any idea martin ? I don't run yet feisty, so i can't really investigate the problem.

Revision history for this message
Florent Mertens (givre) wrote :

ok, after playing a bit with gnome-mount, it seems that you can set it easily with nautilus.
Right clic on your device in computer:/// and select property.
You should have a "volume" tab.
Here you can set the file system & some mount options.
The thing is that you have to make hal aware of the options before being able to using them.
So you have to create a .fdi file in /etc/hal/fdi/policy/ that looks like :

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
   <match key="volume.fstype" string="ntfs">
      <append key="volume.mount.valid_options" type="strlist">locale=</append>
    </match>
</device>
</deviceinfo>

after you can set "file system" to ntfs-3g and "mount options" to locale=what.you.want

So i think this is rather not a gnome-mount bug, but an hal bug :
"locale=" should be a valide option for hal, at least for ntfs device.
Also setting it automaticly with gnome-mount should be a bit invasive, but that would be the best solution.

Note : Be carfull that ejecting external device may fail with fuse < 2.6, fuse_module < 2.6, ntfs-3g <0.20061115-BETA (see http://ntfs-3g.org/releases.html ) so i suggest you to not use this method until all those pieces are in place in feisty. For the moment you should rather use my patch pmount, that take care of this problem.

Thanks,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.