[patch] ntfs-fuse and ntfs-3g support for gnome-mount
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-mount |
Fix Released
|
Medium
|
|||
gnome-mount (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: gnome-mount
In order to mount ntfs volume using ntfs-3g or ntfs-fuse with gnome-mount, we need good default options. This patch is an attempt to set default options for ntfs-3g & ntfs-fuse to make them usable.
Default option use (change in gnome-mount.
ntfs-3g : locale=
ntfs-fuse : locale=
Explanations :
locale= : is the option to set locale, it replace the utf8 option.
uid=,umask=077 : this is the default options use for vfat.
for ntfs-3g, default setting don't use uid & umask permission handling. To have the same behavior as for vfat, we can also use the following options : locale=
Setting locale (change in gnome-mount.c) :
To set the locale, we use the setlocale( LC_ALL, "" ) function.
This is done in gnome-mount.c with the same kind of workaround use to set uid=.
Warning :
Before using those settings, "locale=" and "default_
See related bug : https:/
Thanks.
Changed in gnome-mount: | |
assignee: | nobody → pitti |
status: | Unconfirmed → In Progress |
Changed in gnome-mount: | |
status: | Unknown → Unconfirmed |
Changed in gnome-mount: | |
status: | Unconfirmed → Fix Released |
Changed in gnome-mount: | |
importance: | Unknown → Medium |
For the record, here is a like to the ntfs-3g manual : www.die. net/doc/ linux/man/ man8/ntfs- 3g.8.html man.linux- ntfs.org/ ntfsmount. 8.html
http://
and to the ntfsmount manual :
http://
After some test more test, it appears that uid change is not allowed for non root user, even with removable device. This is only allowed for vfat, iso9660 and udf :
hal-0.5. 8.1/tools/ hal-storage- mount.c : line 724 volume_ get_fstype (volume), "vfat") != 0 && volume_ get_fstype (volume), "iso9660") != 0 && volume_ get_fstype (volume), "udf") != 0) { change_ uid;"
" /* don't consider uid= on vfat, iso9660, udf change-uid for the purpose of policy
* (since these doesn't contain uid/gid bits)
*/
if (strcmp (libhal_
strcmp (libhal_
strcmp (libhal_
pol_change_uid = wants_to_
if we want to use uid= for ntfs-fuse and/or ntfs-3g we should add ntfs to that list. That make sense since ntfs don't contain uid/gid bits.
An other possibility could be to mount them with umask=0 and without uid=.