Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15277 - [policykit] Nautilus fails to unmount some external drives

Attached to Project: Arch Linux
Opened by Joël Schaerer (lardon) - Friday, 26 June 2009, 21:11 GMT
Last edited by Jan de Groot (JGC) - Thursday, 22 October 2009, 07:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Nautilus fails to unmount some external drives. When I click the eject button or select "Unmount" from the contextual menu, nothing happens.

Unmounting manually as a normal user gives the following error:

/sbin/umount.hal: Unmounting /media/disk-1 failed: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.unmount-others auth_admin_keep_always <-- (privilege, result)

Unmounting as root works. I'm guessing this might be a problem with policyKit, but I'm the only user logged currently on my machine, and the device was mounted automatically from my session when I plugged in the device.

It's interesting to note that I can unmount some devices: for instance, I can unmount the second filesystem on my removal HDD, but not the first one.

Steps to reproduce:

* Plug in removable media
* Click "eject" from nautilus
* Nothing happens
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 22 October 2009, 07:24 GMT
Reason for closing:  Deferred
Additional comments about closing:  Nautilus doesn't use hal anymore.
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 26 June 2009, 23:31 GMT
  • Field changed: Status (Unconfirmed → Waiting on Response)
Comment by Joël Schaerer (lardon) - Saturday, 27 June 2009, 07:43 GMT
I don't really see what giving a label to my external disks has to do with my problem? I have hal running, of course, and mounting works fine.
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 28 June 2009, 00:52 GMT
what are the perms of the drives in /dev (of both, working and not workking)? what are the udev rules related to these devices? how looks your PolicyKit.conf? what if the difference if you mount manually the device, can be umounted later?

No only this, from "About..." to "Perm..." http://wiki.archlinux.org/index.php/HAL#Permission_Denied
Comment by Jan de Groot (JGC) - Sunday, 28 June 2009, 14:07 GMT
How was the disk mounted, do you use consolekit to gain privileges, or do you use other methods?
Comment by Joël Schaerer (lardon) - Thursday, 09 July 2009, 21:38 GMT
Ok, I finally got the time to do some more testing. I'm testing with a usb key with one partition, /dev/sdb1, and an external HDD with two test partitions /dev/sdc1 and /dev/sdc2

Here are the device permissions:

joel@mouton ~$ ll /dev/sd*
brw-rw---- 1 root disk 8, 0 2009-07-09 21:54 /dev/sda
brw-rw---- 1 root disk 8, 1 2009-07-09 21:54 /dev/sda1
brw-rw---- 1 root disk 8, 2 2009-06-17 09:54 /dev/sda2
brw-rw---- 1 root disk 8, 3 2009-07-09 21:54 /dev/sda3
brw-rw---- 1 root disk 8, 4 2009-07-09 21:54 /dev/sda4
brw-rw---- 1 root storage 8, 16 2009-07-09 23:24 /dev/sdb
brw-rw---- 1 root storage 8, 17 2009-07-09 23:24 /dev/sdb1
brw-rw---- 1 root disk 8, 32 2009-07-09 23:35 /dev/sdc
brw-rw---- 1 root disk 8, 33 2009-07-09 23:35 /dev/sdc1
brw-rw---- 1 root disk 8, 34 2009-07-09 23:35 /dev/sdc2

Here are the permissions of the mounted directories:

joel@mouton ~$ ll /media/
drwxr-xr-x 20 root root 4096 2009-05-13 18:17 disk
drwxr-xr-x 3 root root 4096 2009-07-09 23:33 test1
drwxr-xr-x 3 root root 4096 2009-07-09 23:28 test2

Here's what happens when I try to unmount manually:

joel@mouton ~$ umount /media/disk/
/sbin/umount.hal: Unmounting /media/disk failed: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.unmount-others auth_admin_keep_always <-- (privilege, result)
joel@mouton ~$ umount /media/test1
/sbin/umount.hal: Unmounting /media/test1 failed: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.unmount-others auth_admin_keep_always <-- (privilege, result)
joel@mouton ~$ umount /media/test2

Unmounting through nautilus yields the same results, minus the error messages (unmounting fails silently for sdb1 and sdc1)

I have mounted the filesystems through nautilus. I don't know how it works (no idea what I'm using, sorry). Can't mount manually, it tells me "only root can do that".

Here is my PolicyKit.conf:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes"/>
</match>

<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes"/>
</match>
</config>
~

Loading...