DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st May 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default fstab and CD/DVD device

Hi guys,
I have FreeBSD + KDE. I am trying to play CDs and DVDs on my machine. After I insert a music CD I have access to it only as root. Probably I need to edit /etc/fstab. Here is my fstab
Code:
# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad4s1b		none		swap	sw		0	0
/dev/ad4s1a		/		ufs	rw		1	1
/dev/ad4s1e		/tmp		ufs	rw		2	2
/dev/ad4s1f		/usr		ufs	rw		2	2
/dev/ad4s1d		/var		ufs	rw		2	2
/dev/acd0		/cdrom		cd9660	ro,noauto	0	0
What should I do to have access to the device as normal user?
Thanks in advance,
Corneliu

Last edited by corneliu; 21st May 2008 at 03:49 AM.
Reply With Quote
  #2   (View Single Post)  
Old 21st May 2008
FBSDin20Steps FBSDin20Steps is offline
Port Guard
 
Join Date: May 2008
Location: nl
Posts: 21
Default

Read man devfs...is one of them
Reply With Quote
  #3   (View Single Post)  
Old 21st May 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Audio CDs cannot be mounted and Video DVDs do not need to be mounted to watch the video, so changing /etc/fstab won't help. You need to set the permissions for the device.
Reply With Quote
  #4   (View Single Post)  
Old 21st May 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Thank you both for your help.
I know that audio CDs and DVDs cannot be mounted.
I just want to pop a CD and be able to listen to the music.
I tried to use a command line cd player called cdcontrol and It refused to play unless I was root.
After I changed the owner of /cdrom, cdcontrol does not complain anymore. But there is no sound. The green light of the CD device is flashing like CD is being played but there is no sound.
The same thing happened before changing the owner of /cdrom when I started cdcontrol as root.
The sound card seems to be configured properly.

Last edited by corneliu; 21st May 2008 at 11:43 PM.
Reply With Quote
  #5   (View Single Post)  
Old 22nd May 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Unless you have an audio cable running from your CD drive in the sound card, you will not hear any sound using cdcontrol. All cdcontrol does is starts the drive and it streams the audio directly to the sound card through the audio cable.

It would seem you don't have an audio cable, so if you want to listen to CDs on your computer, you will need to use a program capable of digital audio extraction. Programs that I use that can do this: Amarok and XMMS. KsCD cannot do this (since you use KDE).
Reply With Quote
  #6   (View Single Post)  
Old 22nd May 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Thank you BSDKaffee,
I had no idea about this cable stuff. It's good to know. Amarok is a little bit too bloated for my taste, I'd prefer MPlayer. Do you know if MPlayer will be able to play audio CDs and DVDs?
Reply With Quote
  #7   (View Single Post)  
Old 22nd May 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

MPlayer can handle both CDs and DVDs. For me CD playback is choppy. You can run:
$ mplayer cdda://
to play a CD

DVD playback is pretty good, but the interface is clunky. There is no DVD menu support, so you have to know which titles you want to play. This isn't so bad for a full length movie, but for DVDs with multiple episodes it is a little annoying trying to find the one you want.

Xine and ogle offer DVD menu support and there are KDE frontends available for both.
Reply With Quote
  #8   (View Single Post)  
Old 24th May 2008
corneliu corneliu is offline
Port Guard
 
Join Date: May 2008
Posts: 19
Default

Thank you BSDKaffee,
It took me a while to answer because I managed to thrash my system and I had to reinstall FreeBSD.
I installed MPlayer but I'm still not able to play Cds. This is what I get when I run the command you suggested.
Code:
freebsd# mplayer cdda://
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) D  CPU 2.66GHz (Family: 15, Model: 4, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing cdda://.
No stream found to handle url cdda://


Exiting... (End of file)
freebsd#
Update: I am able to play mp3, ogg, mpeg, avi files with MPlayer. I am able to play DVDs too. Only the audio CDs are not behaving.

Last edited by corneliu; 24th May 2008 at 02:33 AM.
Reply With Quote
Reply

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
Help with some more sensible fstab defaults maxrussell FreeBSD General 4 18th July 2009 02:44 PM
C F Card and fstab terryd FreeBSD General 1 3rd December 2008 05:26 PM
Mounting ext2 in fstab latorion FreeBSD General 3 6th August 2008 04:56 PM
mount fusefs (sshfs) from fstab elon FreeBSD General 4 29th July 2008 06:41 PM
identifying device associated with USB device? spiderpig OpenBSD General 2 7th July 2008 05:18 AM


All times are GMT. The time now is 06:46 PM.


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