DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd October 2009
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default hald(1) and nautilus(1) does not automount media

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.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #2   (View Single Post)  
Old 1st November 2009
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Hi Vermaden,

I checked your configuration (omitting devfs.conf as NetBSD doesn't have it) and it works- I can mount large volumes- I have 320 GB USB storage. Flip side of the coin is that under NetBSD I cannot mount CD's . But I can mount all USB pendrives, disks, SD cards etc.

Piotr
Reply With Quote
  #3   (View Single Post)  
Old 1st November 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by Pjoter View Post
Hi Vermaden,

I checked your configuration (omitting devfs.conf as NetBSD doesn't have it) and it works- I can mount large volumes- I have 320 GB USB storage. Flip side of the coin is that under NetBSD I cannot mount CD's . But I can mount all USB pendrives, disks, SD cards etc.

Piotr
You cannot mount CD's? music or data? only 1 kind can be mounted.. and it's not the former.
Reply With Quote
  #4   (View Single Post)  
Old 2nd November 2009
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Hi BSDfan666,

I cannot mount CD's by hal itself. Of course by normal command mount- yes. If you know how to enable that under Gnome/Nautilus please share- we talk about NetBSD.

Pjoter
Reply With Quote
Reply

Tags
automount, dbus, hal, hald, nautilus

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Popcorn Hour Media Box DraconianTimes Off-Topic 1 9th April 2009 06:18 PM
Mount removable Media Glitch shep FreeBSD General 3 14th February 2009 10:16 PM
Nautilus problem harisman FreeBSD General 2 20th October 2008 06:31 PM
Media error... are there any way to help this? Sunnz OpenBSD General 0 5th May 2008 06:45 AM


All times are GMT. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick