Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304765 - sys-apps/devicekit-disks does not respect gconf filesystem.alternative setting (workaround at comment #9)
Summary: sys-apps/devicekit-disks does not respect gconf filesystem.alternative settin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Patrick McLean
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: InVCS
: 310447 328169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-12 20:01 UTC by Özgür ERİŞEN
Modified: 2010-07-13 20:44 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Özgür ERİŞEN 2010-02-12 20:01:54 UTC
auto mount does not correctly assigns permissions even permissions says "rw-------" I can not create any file or folder, or delete files. It seems devicekit is not aware of ntfs-3g. it mount with kernel ntfs driver.
my setting in gconf  for ntfs-3g is working for non-devicekit setup
as uid, dmask, fmask are correctly set with normal setup.



Reproducible: Always

Steps to Reproduce:
1.emerge devicekit and gnome-panel
2.insert a flash disk with ntfs 
3.try to create file on usb disk

Actual Results:  
Filesystem is mounted with kernel ntfs driver

Expected Results:  
devicekit respects gconf and mounts disk with ntfs-3g

Mounting disks with gnome-mount works as intended while automount is not working with devicekit.
Comment 1 Özgür ERİŞEN 2010-02-12 20:46:16 UTC
sorry for wrong description,
gvfs should be compiled with gdu USE flag to see this effect.

There are debian bugs about this issue. I will report if the solutions will work or not
Comment 2 Özgür ERİŞEN 2010-02-12 21:02:46 UTC
There is several bug reports against devicekit-disks issues. Here are summaries:
1. If ntfs-3g will be used as a default, then there should exists /sbin/mount.ntfs symlinked to /sbin/mount.ntfs-3g as described in debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560780
2. Default file permissions are hardlinked in devicekit so that source files must be changed to the more appropriate ones as desciribed in ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/devicekit-disks/+bug/482501
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-12 22:37:18 UTC
as the hal->devicekit->udisk->whatever transition is all but unclear in many aspects yet I'm not sure when this'll get fixed.
Comment 4 Pacho Ramos gentoo-dev 2010-03-12 13:29:45 UTC
As explained by David Zeuthen in
https://bugs.freedesktop.org/show_bug.cgi?id=27046

"Actually the way this is supposed to work is that mount options (if the default
mount options are not good enough) are supposed to be originating from the
automounter (typically running in the desktop session). It worked this way with
HAL and it also works this way with udisks.

It is true that gnome-mount used to read these settings from gconf and pass it
to HAL's Mount() method. This however changed when GVfs entered the picture and
Nautilus started automounting instead of gnome-volume-manager. Btw, GVfs will
not read mount settings from anywhere since we believe that the defaults are
good enough for common uses and the user can always override using /etc/fstab.
For more information about why we think this is so in GNOME, see
https://bugzilla.gnome.org/show_bug.cgi?id=586708"

Then, this should be done in gvfs and, probably, this bug could be closed as it is an enhancement request that should be covered by upstream
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-03-14 21:43:52 UTC
Closing upstream per last comment. There is nothing for us to do. Fixing this implies reporting a bug to upstream, either nautilus of gnome-disk-utility maybe.
Comment 6 Peter Sääf 2010-03-14 23:16:21 UTC
>1. If ntfs-3g will be used as a default, then there should exists
>/sbin/mount.ntfs symlinked to /sbin/mount.ntfs-3g as described in debian bug:
>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560780

Seems like a hack. I guess the proper way would be having the below .fdi converted to a udev rule. For the devicekit-disks/udisks/udev/gudev, or whatever it's called today, case.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/ntfs3g/files/10-ntfs3g.fdi.2009-r1?rev=1.1&view=markup
Comment 7 Pacho Ramos gentoo-dev 2010-03-21 21:49:20 UTC
*** Bug 310447 has been marked as a duplicate of this bug. ***
Comment 8 Özgür ERİŞEN 2010-03-21 21:54:48 UTC
(In reply to comment #6)
> >1. If ntfs-3g will be used as a default, then there should exists
> >/sbin/mount.ntfs symlinked to /sbin/mount.ntfs-3g as described in debian bug:
> >http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560780
> 
> Seems like a hack. I guess the proper way would be having the below .fdi
> converted to a udev rule. For the devicekit-disks/udisks/udev/gudev, or
> whatever it's called today, case.
> 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/ntfs3g/files/10-ntfs3g.fdi.2009-r1?rev=1.1&view=markup
> 

That does not work, only way to do it was that hack :(
I tried several udev rules but none seemed to work. If you try and verify I will be very happy (my udisks/devicekit-disks does not understand or obey the rule)
Comment 9 Peter Sääf 2010-03-21 23:26:07 UTC
Creating /etc/udev/rules.d/99-ntfs3g.rules with the following works for me

ENV{ID_FS_TYPE}=="ntfs", ENV{ID_FS_TYPE}="ntfs-3g"

I suppose this could be included with the ntfs3g package like with the hal .fdi file. Still, not the most elegant solution, changing the reported file system type.
Comment 10 Fabio Erculiani (RETIRED) gentoo-dev 2010-05-04 12:38:40 UTC
I tested #9, it works and I think we should fix it.
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-05-04 12:44:02 UTC
then this issue should be reassigned to ntfs3g maintainer. It would probably be best to have it under a udev USE flag in order to not mess with users that actually want another default ntfs mounter.
Comment 12 Pacho Ramos gentoo-dev 2010-05-04 18:33:08 UTC
+1

(Reassigning to ntfs3g maintainer for consideration -> please read comment #9 )
Comment 13 Patrick McLean gentoo-dev 2010-05-05 02:39:00 UTC
Added udev USE flag to sys-fs/udev-2010.3.6 to install workaround udev rule from comment #9.
Comment 14 Pacho Ramos gentoo-dev 2010-05-05 17:21:11 UTC
Thanks Patrick for the fast fix :-)
Comment 15 tman 2010-05-11 08:26:35 UTC
it solve the problem with external disk but if you have some local ntfs disk it dont automout it with USE="suid", maybe dev can fix this or add a udev rules for automount of local ntfs or fat16/32 patition by default too.

thanks
Comment 16 Patrick McLean gentoo-dev 2010-05-11 14:04:30 UTC
I am not sure what you are trying to describe there, but if there is another issue with ntfs3g, please open another bug.
Comment 17 Pacho Ramos gentoo-dev 2010-07-13 20:44:06 UTC
*** Bug 328169 has been marked as a duplicate of this bug. ***