No matter what setups I have tried I am not able to get
nautilus(1) to automount media with
hald(1), thats strange since I have got working setup in the past ...
Below is my setup, config files, ...
/etc/rc.conf
Code:
font8x14="iso02-8x14"
font8x16="iso02-8x16"
font8x8="iso02-8x8"
keymap="pl_PL.ISO8859-2"
keyrate="fast"
scrnmap="NO"
allscreens_flags="MODE_34"
moused_enable="YES"
sshd_enable="YES"
powerd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
polkitd_enable="YES"
hostname="mavio"
devd_enable="YES"
devfs_system_ruleset="devfsrules_common"
/etc/sysctl.conf
Code:
hw.syscons.bell=0
kern.coredump=0
vfs.usermount=1
/etc/devfs.conf (taken from PC-BSD 7.1.1)
Code:
# Commonly used by many ports
link cd0 cdrom
link cd0 dvd
# Allow a user in the wheel group to query the smb0 device
#perm smb0 0660
# Allow all users to access CD's
perm /dev/acd0 0666
perm /dev/acd1 0666
perm /dev/cd0 0666
perm /dev/cd1 0666
# Allow all USB Devices to be mounted
perm /dev/da0 0666
perm /dev/da1 0666
perm /dev/da2 0666
perm /dev/da3 0666
# Misc other devices
perm /dev/pass0 0666
perm /dev/xpt0 0666
perm /dev/agpart 0666
perm /dev/uscanner0 0666
/etc/devfs.rules (taken from PC-BSD 7.1.1)
Code:
[devfsrules_common=7]
add path 'ad*' mode 666 group operator
add path 'acd*' mode 666 group operator
add path 'cd*' mode 666 group operator
add path 'pass*' mode 666 group operator
add path 'xpt*' mode 666 group operator
add path 'ugen*' mode 666 group operator
add path 'usb*' mode 666 group operator
add path 'fd*' mode 666 group operator
add path 'uscan*' mode 666 group operator
/usr/local/etc/PolicyKit/PolicyKit.conf (none of these versions work)
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">
<config version="0.1">
<define_admin_auth group="operator"/>
<match action="org.freedesktop.hal.storage.mount-removable">
<match user="vermaden">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="vermaden">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.eject">
<match user="vermaden">
<return result="yes"/>
</match>
</match>
</config>
/usr/local/etc/PolicyKit/PolicyKit.conf (none of these versions work)
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">
<config version="0.1">
<define_admin_auth group="operator"/>
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes"/>
</match>
</config>
/usr/local/etc/hal/fdi/policy/preferences.fdi (added from PC-BSD 7.1.1)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="vfat">
<match key="volume.size" compare_ge="128000000000">
<merge key="volume.policy.mount_option.large" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
/usr/local/share/hal/fdi/policy/20thirdparty/10-mouse-sysmouse.fdi (added from PC-BSD 7.1.1)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="freebsd.driver" string="ums">
<match key="freebsd.unit" int="0">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
mavio# mount
Code:
/dev/ad4s2a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad4s2e on /usr (ufs, local, soft-updates)
/dev/ad4s2d on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)
/etc/fstab
Code:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad4s2b none swap sw 0 0
/dev/ad4s2a / ufs rw 1 1
/dev/ad4s2e /usr ufs rw 2 2
/dev/ad4s2d /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0
Output of
hald --verbose=yes --daemon=no command:
http://pastebin.com/f330ca20f
dmesg(1) output with pendrive in:
http://pastebin.com/f5bf9d125
Output of:
gnome-mount --block --no-ui --verbose --hal-udi /org/freedesktop/Hal/devices/storage_model_DataTraveler_2_0
Code:
gnome-mount 0.8
** Message: Drive /org/freedesktop/Hal/devices/storage_model_DataTraveler_2_0 does not contain media.
During the output gathering, pendrive was connected (KINGSTON), then it was disconected, then, again connected.
All I want to achieve is to get
nautilus(1) (standalone without GNOME) automount media with
hald(1).
I have read HAL FAQ again and again but that still does not helps:
http://www.freebsd.org/gnome/docs/halfaq.html
PC-BSD 7.1.1 automounts media without any problems on that box, but nautilus(1) is no go, even after
portmaster -r -p nautilus.
Thanks in advance for any input.