Unable to mount internal partitions with Dolphin

I have two systems, one running 11.2 x64, and the other running 11.3 x64. on both systems, I’ve lost the ability to mount internal partitions “on-the-fly” from the Dolphin panel. When I try, I get the following error that shows up at the bottom of the Dolphin window:

An error occurred while accessing 'Backup', the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy:
org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <--(action, result)

The problem is identical to what is listed in this bug report, but it is marked as resolved.

Trying to mount via Dolphin has always given me this error on the 11.3 system, but only recently started happening in the 11.2 system after a recent “zypper dup” (using the “Stable” KDE 4.4 repo).

Any suggestions would be appreciated. If others are experiencing this same issue, please let me know so I can file a bug report. Please note that the error only occurs for internal partitions, and external drives work fine.

As mentioned in the bug report I tried:

/usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy
for fixed-storage
allow_active –> yes

It works perfectly, only dolphin is not asking for a password. I hope someone else has the final solution, otherwise it is indeed a bug returning…

Hello queequeg,

You could also change it into “auth_admin_keep_always” instead of “yes”.
In this case dolphin will ask for your root password.

Good luck!:wink:

This is how it is currently…
It does not ask for my password, and instead gives me the error above.

Thank you, but it didn’t seem to work for me. Could you please confirm I did it correctly? I opened the file and changed this:

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action> 

to this:

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action> 

Does that look correct? Do I need to reboot?

Hello queequeg,

When taking a closer look at the bug report I discovered you’re right.
Dolphin doesn’t support root authentication.

It looks ok and AFAIK you need to reboot.

Good luck!

As I have already commented in the other thread.
I have no issue with this in 11.2 or 11.3
And the absence of any physical evidence here to support your issue is confusing.

Other than my installation partitions I have other ext4 and ntfs partitions - all work perfectly.

Thanks for the link. I’m glad that it’s an open bug that’s being worked on.

Unfortunately, the modification I made per my post above did not work. Curiously, I get the same error message. (Even after rebooting). I don’t know how this is possible, but I’ve verified that the file is indeed modified. Is there something I’m missing that you can think of?

In the other thread it sounded like all your internal partitions were mounted at boot (via fstab entries). If so, this bug does not pertain to you.

If not, and if you are able to mount them “on-the-fly” using Dolphin, could you please post your org.freedesktop.hal.storage-policy file here to see if there is something different?

Also, what do you mean by “physical evidence”? I would be happy to post any information you request. If you’d like a screenshot of the error, I would be happy to oblige.

You mean this:

<policyconfig>

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.unmount-others">
    <description>Unmount file systems mounted by other users.</description>
    <message>System policy prevents unmounting media mounted by other users</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.eject">
    <description>Eject removable media.</description>
    <message>System policy prevents ejecting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
    <description>Set up decryption for encrypted fixed storage devices.</description>
    <message>System policy prevents accessing encrypted fixed media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
    <description>Set up decryption for encrypted removable storage devices.</description>
    <message>System policy prevents accessing encrypted removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>

I have entries to fstab because all my partitions were added there automatically during install or in some cases I manually set a mount point.
I have for example this entry:

/dev/disk/by-id/ata-Maxtor_6Y160P0_Y454TYNE-part1 /Maxtor              ntfs-3g    defaults 0 0

This was added by the system during install, but I edited the part: /Maxtor defaults 0 0
But it does not auto mount, you have to actually click on it in Dolphin for it to mount. I know that for sure, because I have Virtual Box HD’s on there and can’t use them until I open it up in Dolphin.

If you don’t have an entry for a disc in fstab, I’m not sure about that… All my partitions always have an entry. Unless, I guess, if you create them later on? Let me work on my sandbox and see what I can come up with.

==================================================================

OK
Further to the above.
New install 11.3 gnome - with a internal partition not in /etc/fstab = All works fine. Password requested for mounting (ext4)… blah…blah

New Install 11.3 kde4 - with the same internal partition not in /etc/fstab = Try to open in dolphin and I get the error you all report.

I will look in to this and get back. Sorry for the misunderstanding. And thanks for bringing this important issue to our attention.

If you are interested. I grabbed this from an Ub* install, just by way of comparison. But my knowledge on this subject is next to Zero and I do wonder why a global policy would be involved in the issue that seems desktop based.

In SUSE:Gnome works
Kde does not

<defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>

However it uses udisks not hal
From; /usr/share/polkit-1/actions/org.freedesktop.udisks.policy

More checking taking place…

This came from PCLinuxOS which uses hal and dolphin works there for me

<action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

Thank you caf4926. I like the way you’re thinking, and added lines to my fstab for the three partitions I would like to be able to dolphin-mount.

However, when I used:

/dev/disk/by-id/ata-ST31000333AS_6TE0D582-part1 /fullbackup          ext3       defaults            0 0
/dev/disk/by-id/ata-Maxtor_6L300S0_L62CV33G-part1 /games               ext3       defaults            0 0
/dev/disk/by-id/ata-ST3500320AS_5QM2DKK3-part6 /music               ext3       defaults            0 0

for the three partitions, it appears they were auto-mounted when I rebooted and do not show up in the dolphin “places” menu.?.?

I instead changed them to:

/dev/disk/by-id/ata-ST31000333AS_6TE0D582-part1 /fullbackup          ext3       noauto,acl            0 0
/dev/disk/by-id/ata-Maxtor_6L300S0_L62CV33G-part1 /games               ext3       noauto,acl            0 0
/dev/disk/by-id/ata-ST3500320AS_5QM2DKK3-part6 /music               ext3       noauto,acl            0 0

and thought that it worked (they showed up the the dolphin “places” menu again and were not mounted at boot), but now when I click on them in dolphin I get this error:

An error occurred while accessing 'Backup', the system responded: mount: only root can mount /dev/sdd1 on /fullbackup

It seems like this is part of the same problem as before, which is that Dolphin doesn’t properly prompt for a password when trying to mount.

Any ideas?

EDIT: Sorry caf, I posted this response prior to seeing your last couple. I’ll try that and see if it works…

I think it should be:

/dev/disk/by-id/ata-ST31000333AS_6TE0D582-part1 /fullbackup          ext3       defaults            1 2
/dev/disk/by-id/ata-Maxtor_6L300S0_L62CV33G-part1 /games               ext3       defaults            1 2
/dev/disk/by-id/ata-ST3500320AS_5QM2DKK3-part6 /music               ext3       defaults            1 2

You may have to chown the mount directory. Or use super user dolphin to alter it

Thank you, but making the modification above appears to mount these partitions at boot.
I tried modifying the owner on the mount directories, and still got the same error I listed above.

Thanks again.

Sorry - yes, I did mean

/dev/disk/by-id/ata-ST31000333AS_6TE0D582-part1 /fullbackup          ext3       noauto,acl            1 2
/dev/disk/by-id/ata-Maxtor_6L300S0_L62CV33G-part1 /games               ext3       noauto,acl            1 2
/dev/disk/by-id/ata-ST3500320AS_5QM2DKK3-part6 /music               ext3       noauto,acl            1 2

Try going to the folder /games & /music & /fullbackup

and right click on each and
ImageBam - Fast, Free Image Hosting and Photo Sharing

I modified per your suggestion above, and they now do not mount at boot. However, when trying to mount in Dolphin I still get the:

An error occurred while accessing 'Backup', the system responded: mount: only root can mount /dev/sdd1 on /fullbackup

error. I’ve checked the mount folders and I own all of them and should have full read-write access. I think this is still related to the policykit issue. Are you able to mount them through Dolphin when your fstab is setup this way?

Thanks again for all your help. I know this is more of an annoyance than a deal-killer since these partitions can still be mounted by “normal” means, but it can be very annoying when a functionality goes away that you’ve grown accustomed to. I appreciate your time and suggestions.

No - I just tried editing my fstab.
Same error as you

Bummer. I found an open bugzilla report:

https://bugzilla.novell.com/show_bug.cgi?id=615730

so hopefully it is being worked on.

Thanks again.