[Bug 293433] New: hotplugged usb ntfs partitions are mounted as ntfs instead of ntfs-3g
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433 Summary: hotplugged usb ntfs partitions are mounted as ntfs instead of ntfs-3g Product: openSUSE 10.3 Version: Alpha 6 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: peter.kerekfy@winsdom.com QAContact: qa@suse.de Found By: --- HAL (or whatever) mounts hotplugged ntfs partitions with ntfs instead of ntfs-3g. I know it is a terrible hack but I created a symlink from /sbin/mount.ntfs to /usr/bin/ntfsmount which happens to be the userspace ntfs-3g executeable. Regards, Peter. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
Andreas Jaeger
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c1
Kay Sievers
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c2
--- Comment #2 from Péter Kerékfy
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c3
Danny Kukawka
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c4
--- Comment #4 from Stephan Kulow
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
Dirk Mueller
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c5
Dirk Mueller
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c6
--- Comment #6 from Péter Kerékfy
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c7
Stephan Kulow
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c8
--- Comment #8 from Péter Kerékfy
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c9
--- Comment #9 from Péter Kerékfy
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c10
--- Comment #10 from Péter Kerékfy
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c11
--- Comment #11 from Bernhard Kaindl
The name of the file system driver to use by default when 'ntfs' is detected. > This is useful for configuring the system to use the 'ntfs-3g' driver for all > 'ntfs' file systems by default. User can still choose to use the 'ntfs' file system driver by overriding it per-volume or on the command line
At least with this configuration, I simply run gnome-mount -t -p 'FreeAgent Drive' ('FreeAgent Drive' is the NTFS-label of an external NTFS disk which I have) to unmount, add "-u" as the user who has the privilege "desktop-console" (which I get when I'm logged in at the system console = by default: sit before the computer) and my drive is mounted thru hal. Due to the "-t", I also get textual info back from gnome-mount about what it just did, and not only the version string. Because I did ran gconf-editor before that and went in it to /system/storage/default_options/ntfs-3g, and entered the values locale=en_US.UTF-8 force dmask=022 fmask=033 It actually mounts with these options, but it does not show me these. I can read them with: gconftool-2 --get /system/storage/default_options/ntfs-3g/mount_options [locale=en_US.UTF-8,force,dmask=022,fmask=033] And I can set per-device and per-filesystem mount settings with: gnome-mount -p 'FreeAgent Drive' --mount-options no_def_opts,force --mount-point freeagent --write-settings These mount options replace then the gconf-global ntfs-3g mount options, so it gets only mounted with no_def_opts,force in this example. BTW: no_def_opts does not cause chown/chgrp/chmod to fail on the volume, but it indeed causes that that the "allow_others" default setting is reset: l /media/* ls: cannot access /media/freeagent: Permission denied d????????? ? ? ? ? ? freeagent/ So it indeed causes that no information from the mounted volume is visible to other users. These per-device/per-volume settings can be retrived with --display-settings and reased with --erase-settings. These per-volume values are saved in a per-volume-UUID directory+file: ~/.gconf/system/storage/volumes/_org_freedesktop_Hal_devices_volume_uuid_C81C8DAE1C8D9858/%gconf.xml Seems quite useable, but what we'd still like to know is how we or an admin could set system-wide default options for mounts. Maybe it could be done in: /etc/gconf/gconf.xml.defaults after a global scheme like the ntfs scheme is created for ntfs-3g: /etc/gconf/gconf.xml.schemas/system/storage/default_options/ntfs/%gconf.xml To set default mount options like dmask=022,fmask=033 in the GNOME world would a part of the solution for bug 293429. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c12
Bernhard Kaindl
The default for gnome-mount is to override ntfs with ntfs-3g which our version of HAL does not support. Try setting /system/storage/default_options/ntfs/fstype_override to the empty string, and see if that fixes your problem.
. of which he is right:
gnome-mount-0.6/ChangeLog
-------------------------------------------------------------------------------
2007-03-04 David Zeuthen
Reassing to KDE, they have only to use other parameter for the mount call for HAL to mount with fuse (set filesystem for ntfs-3g). No need to change anything here in HAL.
KDE and GNOME can do anything they want, as soon as they need to pass mount options specific for ntfs-3g: * force: GNOME provide a checkbox for this in case the mount withou force fails because the volume is dirty * we need to specify the locale of the user who asks for ntfs-3g to mount a filesystem, or he will either see only paths with only ASCII characters (that's the case when "mount -t ntfs-3g" is called without a non-US-ASCII locale set or garbage from non-ASCII characters if the charsets to not match, or worse, mangled pathnames end up on the disk when files are written. * We do not want to mount with rwxrwxrwx by default ( see bug 293429 ) * The user may want do specify "no_def_options" to make the whole volume completely hidden to all other users (they only get to see the mountpoint's name) or may want to use other permission-related options. For all this, KDE and GNOME are out of luck if HAL does not allow these these mount options, and we should really fix bug 293429, coolo set it to CRITICAL. So I'd say we need the allowed options from my attachment 156942 in comment 11 of this bug in HAL, we can't do anything. Whether HAL should do the remapping of ntfs to ntfs-3g or all the clients of HAL is of course the debatable question. On one hand, the solution in GNOME with gnome-mount's overide_fstype=ntfs-3g has the advantage that the user can individually disable that fstype-default of ntfs-3g, that has to be done for every user who wants to use the kernel's ntfs module by default and there is no way to set a system-level default of not-remapping and have the users which want the remap do it in their setup. When hal does the remapping in a policy file which is defined as %config (noreplace) in the spec file, a system-wide preset can be set there and users which do not want to use the system-wide default provided by hal, can opt out of it in both possible directions, when the hack in gnome-manager to always override the fstype is dropped/ reverted in our gnome-mount. hack is reverted/rejected. So I'm with Dirk Mueller, like he said in his comment #4 to this bug:
the part I don't understand is why HAL doesn't default to the right filesystem type, but instead requests the KDE team to add a custom hack (which is not portable to ivman or gnome or whatever else is out there).
So I am also against having such hacks like the one in gnome-manger currently to ivman, KDE and 'whatever else out there', and I want do drop that hack from gnome. I reassign to Danny because the ball is now in the quarter of HAL again, it *at least* needs to allow the valid ntfs-3g mount options when mounting ntfs-3g, and I propose to add a remapping in %config(noreplace), for which my attachment 156942 of comment #11 would just have to be packaged with HAL with this attribute, there is no other change necessary for that. I'll submit that change to STABLE, but I'm reassigning anyway because with the valid mount option, HAL's storage policy configuration definitely has to be extended in order for ntfs-3g to be usable in an international environment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
Bernhard Kaindl
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c14
--- Comment #14 from Danny Kukawka
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433 Bug 293433 depends on bug 293420, which changed state. Bug 293420 Summary: include ntfs-3g into the GNOME and KDE package selections or patterns https://bugzilla.novell.com/show_bug.cgi?id=293420 What |Old Value |New Value ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c15
--- Comment #15 from Bernhard Kaindl
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c16
Lee Matheson
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c17
Danny Kukawka
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c18
Bernhard Kaindl
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c19
Bernhard Kaindl
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433#c20
John Jolly
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
John Jolly
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
Cyril Hrubis
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
JP Rosevear
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=293433
User szaka@ntfs-3g.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=293433#c23
Szabolcs Szakacsits
participants (1)
-
bugzilla_noreply@novell.com