PDA

View Full Version : [Solved] [XFCE] Unable to mount USB


nu2fbsd
August 20th, 2010, 06:31
I get Unable to mount "CANON":
org.freedesktop.hal.storage.mount-removable no <--(action, result) dialog on plugging in my removable USB pen-drive. I use FBSD-8.1, and Xfce4-4.6
What to do?

SirDice
August 20th, 2010, 07:35
First make sure both hal and dbus are running. They're needed. Then add this to /usr/local/etc/PolicyKit/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 user="root">
<return result="yes"/>
</match>
<define_admin_auth group="wheel"/>
<match action="org.freedesktop.hal.storage.mount-removable">
<match user="dice">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="dice">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.eject">
<match user="dice">
<return result="yes"/>
</match>
</match>
</config>


Change the match user accordingly.

nu2fbsd
August 26th, 2010, 13:36
Thank you. I have hal and dbus running also I have PolicyKit.conf in place and now I can mount and unmount the pen drive.

demirpla
December 27th, 2010, 13:25
SirDice,

Thank you so very much. This helped a lot.