FS#12397 - [hal] ntfs partition cannot be mounted
Attached to Project:
Arch Linux
Opened by Ionut Biru (wonder) - Wednesday, 10 December 2008, 09:52 GMT
Last edited by Jan de Groot (JGC) - Sunday, 08 November 2009, 22:27 GMT
Opened by Ionut Biru (wonder) - Wednesday, 10 December 2008, 09:52 GMT
Last edited by Jan de Groot (JGC) - Sunday, 08 November 2009, 22:27 GMT
|
Details
Description:
after upgrading hal to testing version i notice that when i click on windows partition it doesn't get mounted. It asks for password, when i go to Authorizations, hal, mount file systems from internal devices i notice that i have obtain authorization. usb stick and cdrom automonting is working fine, only internal ntfs partition cannot be mounted. Don't know if other file systems are working because i have only one. Additional info: I'm using gnome with gdm login manager hal 0.5.11-7 policykit 0.9-7 policykit-gnome 0.9.2-2 consolekit 0.3.0-3 polkit-action --show-overrides -> no output |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 08 November 2009, 22:27 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 0.5.13-3 (testing)
Sunday, 08 November 2009, 22:27 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 0.5.13-3 (testing)
[benutzer@zepto ~]$ polkit-auth --explicit-detail
org.freedesktop.hal.storage.mount-fixed
Authorized: Yes
Scope: Indefinitely
Obtained: Tue Feb 3 23:38:51 2009 from benutzer (uid 1000)
[benutzer@zepto ~]$ gnome-mount -v -t -d /dev/sda10
gnome-mount 0.8
** (gnome-mount:7833): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_f1c66eec_8a22_4bcb_8b5e_971cf7fe4889
** (gnome-mount:7833): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_f1c66eec_8a22_4bcb_8b5e_971cf7fe4889 with mount_point='', fstype='', num_options=0
** Message: Mount failed for /org/freedesktop/Hal/devices/volume_uuid_f1c66eec_8a22_4bcb_8b5e_971cf7fe4889
org.freedesktop.Hal.Device.PermissionDeniedByPolicy : org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <-- (action, result)
But if I authorize every active session:
[benutzer@zepto ~]$ polkit-action --action org.freedesktop.hal.storage.mount-fixed
action_id: org.freedesktop.hal.storage.mount-fixed
description: Mount file systems from internal drives.
message: System policy prevents mounting internal media
default_any: no
default_inactive: no
default_active: yes (factory default: auth_admin_keep_always)
[benutzer@zepto ~]$ gnome-mount -v -t -d /dev/sda10
gnome-mount 0.8
** (gnome-mount:8006): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_f1c66eec_8a22_4bcb_8b5e_971cf7fe4889
** (gnome-mount:8006): DEBUG: Mounting /org/freedesktop/Hal/devices/volume_uuid_f1c66eec_8a22_4bcb_8b5e_971cf7fe4889 with mount_point='', fstype='', num_options=0
Mounted /dev/sda10 at "/media/disk"
kde mounting fails with error message:
org.freedesktop.Hal.Device.PermissionDeniedByPolicy: hal-storage-mount-removable-extra-options no <-- (action,result)
I use extra options to use ntfs-3g instead ntfs for ntfs volumes mounting.
I tried editing PolicyKit.conf to authorize extra-options but it does not work.
I can mount the ntfs partition only with root privileges.
org.freedesktop.Hal.Device.PermissionDeniedByPolicy: hal-storage-mount-removable-extra-options no <-- (action,result)
I solved adding these lines in /etc/PolicyKit/PolicyKit.conf :
<match user="$USER">
<match action="org.freedesktop.hal.storage.*">
<return result="yes"/>
</match>
<match action="hal-storage-mount-fixed-extra-options">
<return result="yes" />
</match>
<match action="hal-storage-mount-removable-extra-options">
<return result="yes" />
</match>
</match>
I forgot to put the action hal-storage-mount-removable-extra-options in PolicyKit.conf this morning.
thx!
The suggested workaround did not help.
I'm runnin i686 and KDE 4.2 (KDEmod), and the solution suggested by baghera didn't work for me.
"An error ocurred while accesing 'Volume (ntfs)', the system responded: org.freedesktop.Hal.Device.Volume.UnknownFilesystemType: Unknown file system 'ntfs-3g'"
@Sergio: Make sure the ntfs-3g package is installed from extra.
Now it's working fine, thank you very much!
yes, i did
I think that a good thing was policykit/hal to keep the old settings from hal 0.5.11-4.
the patch "ntfs-mount-fix.patch" used to build hal package adds an undefined policykit action.
If you try to mount an internal (fixed) partition, HAL will return "auth_admin_keep_always". GNOME then tries to authenticate the user, you have to enter root's password and you get authenticated in PolicyKit! But HAL just ignores this explicit authentication and still says you have to authenticate.
See also http://hal.freedesktop.org/docs/PolicyKit/model-theory-of-operation.html
I think it is a bug in HAL, as for other applications PolicyKit works fine. I would be very glad, if this bug could get fixed. I did some research but could not find what is causing this strange behaviour.