1678c [Solved] Automounting CD/DVD's doesn't work - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Window Managers > GNOME

GNOME The GNOME desktop environment

Reply
 
Thread Tools Display Modes
  #1  
Old March 10th, 2011, 11:30
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default 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 cdda://acd0
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.

Last edited by DutchDaemon; March 10th, 2011 at 11:39. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old March 10th, 2011, 11:44
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

You'll need to start Gnome using GDM.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old March 10th, 2011, 11:54
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Post

Well, is this the only way?
Reply With Quote
  #4  
Old March 10th, 2011, 12:05
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

No, the other is to edit /usr/local/etc/PolicyKit/PolicyKit.conf as indicated in the HAL FAQ.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old March 10th, 2011, 12:11
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default

Well thanks for the answer, but I already modified policykit.conf. It already works for USB and hard disk. That is what puzzles me!
Reply With Quote
  #6  
Old March 10th, 2011, 12:20
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Please post the output of ck-list-sessions (when Gnome has been started).
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #7  
Old March 10th, 2011, 14:25
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #8  
Old March 10th, 2011, 15:17
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

That means there's no PolicyKit session. Which basically means PolicyKit.conf doesn't work.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #9  
Old March 10th, 2011, 15:28
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #10  
Old March 10th, 2011, 15:38
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by x-com View Post
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.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #11  
Old March 10th, 2011, 16:10
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default

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?
Reply With Quote
  #12  
Old March 10th, 2011, 21:11
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default

Well I started the ck session manually by issuing

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 = ''
Reply With Quote
  #13  
Old March 15th, 2011, 10:58
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
  #14  
Old March 18th, 2011, 10:33
x-com x-com is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default 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.

Last edited by DutchDaemon; March 18th, 2011 at 18:05.
Reply With Quote
The Following User Says Thank You to x-com For This Useful Post:
Garrosh (May 11th, 2011)
Reply

Tags
automount, gnome, hal

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
Automounting Windows shares nitmd Web & Network Services 1 March 8th, 2011 02:36
automounting devices mitsumoto General 1 November 29th, 2010 08:59
[Solved] PF: can't get ftp to work graudeejs Firewalls 47 September 13th, 2009 22:50
Backup FreeBSD - On CD-R's or DVD's ? Ronaldr General 6 July 28th, 2009 07:41
watching movie dvd's/libdvdcss winbsdman Multimedia 4 April 6th, 2009 14:58


All times are GMT +1. The time now is 11:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0