[XFCE] Unable to mount USB

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?
 
First make sure both hal and dbus are running. They're needed. Then add this to /usr/local/etc/PolicyKit/PolicyKit.conf:
Code:
<?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.
 
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.
 
Back
Top