I have just discovered opensuse & installed it on my machine & I am trying to configure it. I have an external hard drive & when I plug it in to the usb I receive a message ‘failure to mount to removable volume’. I found a thread on this forum from Wise Penguin
who said to enter ‘cat /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy’ into the terminal. I received ’ <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>
Just a guess, but I note you edited the “org.freedesktop.hal.storage.crypto-setup-removable” section. The relevant section for removable devices is “org.freedesktop.hal.storage.mount-removable”. It should look like
<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>
There are 2 possible approaches. You can either edit /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy directly, or try a policykit command to do the same.
Edit directly:
You will need to edit this file as root. From a terminal command prompt, type
su
to become root. Enter root password when prompted. I prefer CLI editors. For example
Hiy Whits. After checking online, I found that Gnome has a GUI authorisations tool for PolicyKit called ‘polkit-gnome-authorization’. I’m not a Gnome user, but you should be able to launch this from main menu, or type
polkit-gnome-authorization
from terminal as user. Navigate to ‘hal’ > ‘storage’. Here you will find you should be able to adjust authorisations for removable drives etc. Hope this helps.
FWIW, I’ve discovered that KDE 4.3 now has an equivalent authorisation manager as described here. Not before time either.
Hey Deano
I install policy kit-I don’t know if i’m using gnome, i installed opensuse with Xfce. I can now access my hard drives but i cannot eject or unmount them. I get a message 'Failure to eject volume - Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL.
Also i not sure about navigating to a file, i typed in what you said & i got ‘linux-ag1s:/home/glenn # ‘hal’ > ‘storage’
bash: hal: command not found’ back. Am i doing it wrong?
Sorry i know absolutely nothing about command line stuff.
I also have a problem when i shut down it just restarts, any ideas?
Ok, I had no idea you were using Xfce. A false assumption on my part. Most users (and especially new users) choose Gnome or KDE desktops.
I can now access my hard drives but i cannot eject or unmount them. I get a message 'Failure to eject volume - Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL.
What did you do to get access to your hard drives? Edit the file directly? Or via PolicyKit command?
Also i not sure about navigating to a file, i typed in what you said & i got ‘linux-ag1s:/home/glenn # ‘hal’ > ‘storage’
bash: hal: command not found’ back. Am i doing it wrong?
Yes, you misunderstood me. The idea was to start a graphical desktop tool called ‘polkit-gnome-authorization’. The rest was mouse navigation. However, if you don’t have Gnome desktop installed (as I assumed), then you may not have this tool installed either.
I recommend you have a read of this openSUSE guide first. It will help with linux concepts.