Automount flash drive on FreeBSD
The problem with automount flash drives on FreeBSD 8.1 and KDE4:
An error occurred while accessing ‘My_flash’, the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable no <– (action, result)
or
Could not mount the following device:
My_flash
Solution:
add to PolicyKit config file(/usr/local/etc/PolicyKit/PolicyKit.conf) your user:
<?xml version="1.0" encoding="UTF-8"?> <!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"/> <!-- You should add the following strings --> <match action="org.freedesktop.hal.storage.mount-removable"> <match user="slim"> <return result="yes"/> </match> </match> </config>
where slim – your user.
and finally restart hald:
howtobsd#/usr/local/etc/rc.d/hald restart
Posted on November 28th, 2010 by admin
Filed under: Solutions
Thank you very much, I searched in the man, handbook, etc., without results.
Thank you again I’m going crazy