Automounting CD/DVD's doesn't work

Hello everyone,

I've installed FreeBSD 8.2 a few days ago and tried to get Gnome working. So far I've followed the instructions from here http://www.freebsd.org/gnome/docs/halfaq.html and got Automount working for harddrives and even USB sticks. But still CD's and DVD's won't get mounted automatically. I can mount them by
mount -t cd9660 /dev/acd0 /<somewhere>
and even by
gvfs-mount [url=cdda://acd0]cdda://acd0[/url]
for AudioCD's.

Applications like xine can play all types of media, video dvd's, audio cd's and so on. But all "pure" Gnome applications won't even find a DVD drive. I spen5tsome time searching the net, but only found threads dating back to 2004. They modified files and daemons that aren't present today.

Does anyone have a hint for me? The drive is a SATA drive labeled Sony DRU 875S, and is detected. It is visible in dmesg, and I can mount manually (as described above).

Thanks in advance.
 
No, the other is to edit /usr/local/etc/PolicyKit/PolicyKit.conf as indicated in the HAL FAQ.
 
Well thanks for the answer, but I already modified policykit.conf. It already works for USB and hard disk. That is what puzzles me!
 
Please post the output of [cmd=]ck-list-sessions[/cmd] (when Gnome has been started).
 
Sorry for the response time, but I had some work to do, before I could launch BSD. Your last statement brought me to a trail. The ouput you demanded is empty. I tried as user and as root.
 
That means there's no PolicyKit session. Which basically means PolicyKit.conf doesn't work.
 
Are you sure? I mean, I followed the hal-faq to the letter, and I do not use GDM for starting gnome, I use the startx-command. One thing I noticed is that there is no polkitd in FreeBSD, while Gnome uses it in Debian Squeeze (which I'm running right now for research). I installed Gnome not from ports but from the packages available via pkg_add -r.
 
x-com said:
I do not use GDM for starting gnome, I use the startx-command.
That's the reason why you don't have a ConsoleKit/PolicyKit session.
 
Well in conclusion that means, if I want to enable automount for cd/dvd I need gdm. But why does it work right now on USB sticks and hard disks, they shouldn't be working either?
 
Well I started the ck session manually by issuing
[CMD="ck-launch-session"][/CMD]
Now I can post the desired output:
Code:
Session1:
	unix-user = '1001'
	realname = 'User ThomasNeugebauer'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = 'ttyv0'
	display-device = 'pts/0'
	remote-host-name = ''
	is-local = FALSE
	on-since = '2011-03-10T20:07:36.523325Z'
	login-session-id = ''
 
maybe no gnome problem

Ok, as far as I have researched, I can tell, that it is no problem of the gnome gui, it is hal related. My PolyciKit settings are allright and I don't need the ck sessions according to the hal FAQ (otherwise automount of USB sticks or harddisks wouldn't be possible). I've found out that lshal doesn't list my DVD drive (lshal under Debian Linux shows it), so it may be caused by some permission problems (although I acd0 is readable, writeable and executable for everyone) or an special config hal itself needs.
 
atapicam solved it

Well, as I stated before: Running Gnome without ConsoleKit Session is possible. My mistake was not to load atapicam at startup. Adding
Code:
atapicam_load="YES"
to the loader.conf lead to lshal suddenly listing the DVD Drive. It works perfectly.
 
Back
Top