LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2010, 08:57 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Can't play audio CD!


When I try to play an audio CD, both VLC and mplayer complain that it can't open "cdda://".

I made sure that I'm a member of the "optical" group, but still nothing.
 
Old 06-09-2010, 09:05 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,335
Blog Entries: 1

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
apt-get install libcdio-cdda0

Or just install cdda2wav and it should grab the deps as needed. Compact Disc Digital Audio, or something like that. Just guessing at the acronym, aka unverified.
 
Old 06-09-2010, 09:35 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Arch Linux isn't debian-based. It uses it's own custom package manager and format.

Anyway:

Code:
~$ pacman -Ss libcdio
extra/libcdio 0.82-1
    GNU Compact Disc Input and Control Library
~$ pacman -Ss cdda
extra/tcdr 2.1-5
    TCDR is a dialog-based console frontend for mkisofs, cdrecord, cdrdao,
    mkzftree, cdparanoia, cdda2wav, bladeenc, lame, oggenc, ogg123, mpg123, and
    sox written in bash.
community/audex 0.72b1-1
    CDDA extraction tool with a ftp upload function for KDE 4.
I checked and libcdio is installed.
 
Old 06-09-2010, 07:36 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,335
Blog Entries: 1

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
is the user in the audio group? the cdrom group?

$ groups

Does /dev/cdrom exist?

$ ls -l /dev/cdrom
 
Old 06-09-2010, 08:18 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Code:
~$ groups
hal video audio users vboxusers
~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 21 Jun  9 09:49 /dev/cdrom -> /dev/cd/cdrom-1:0:0:0
 
Old 06-09-2010, 10:13 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,335
Blog Entries: 1

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
$ grep -i "cd" /etc/group

$ ls -l /dev/cd/cdrom-1:0:0:0
 
Old 06-10-2010, 07:31 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Code:
$ ls -l /dev/cd/cdrom-1:0:0:0
ls: cannot access /dev/cd/cdrom-1:0:0:0: No such file or directory
I have no "cd" group. I do have an "optical" group, though, and /dev/sr0 (my "DVD Burner" drive) belongs to it.

Code:
$ ls -l /dev/cd* /dev/sr*
lrwxrwxrwx 1 root root       21 Jun 10 07:24 /dev/cdrom -> /dev/cd/cdrom-5:0:0:0
lrwxrwxrwx 1 root root       21 Jun 10 07:24 /dev/cdrom0 -> /dev/cd/cdrom-5:0:0:0
lrwxrwxrwx 1 root root       20 Jun 10 07:24 /dev/cdrw -> /dev/cd/cdrw-5:0:0:0
lrwxrwxrwx 1 root root       20 Jun 10 07:24 /dev/cdrw0 -> /dev/cd/cdrw-5:0:0:0
brw-rw---- 1 root optical 11, 0 Jun 10 07:24 /dev/sr0

/dev/cd:
total 0
lrwxrwxrwx 1 root root 6 Jun 10 07:24 cdrom-5:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 Jun 10 07:24 cdrw-5:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 Jun 10 07:24 dvdrw-5:0:0:0 -> ../sr0
lrwxrwxrwx 1 root root 6 Jun 10 07:24 dvd-5:0:0:0 -> ../sr0

Code:
$ cat /etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:
network:x:90:
video:x:91:michael
audio:x:92:michael
optical:x:93:hal,michael
floppy:x:94:hal
storage:x:95:hal
power:x:98:
nobody:x:99:
users:x:100:
dbus:x:81:
hal:x:82:michael
avahi:x:84:
ntp:x:87:
mysql:x:89:
kvm:x:78:
vboxusers:x:101:michael
camera:x:97:
scanner:x:96:
deluge:x:125:
usbmux:x:140:

Last edited by MTK358; 06-10-2010 at 07:33 AM.
 
Old 06-10-2010, 07:36 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Yesterday I added myself to the "optical" group and it didn't work. Apperrantly it's because I had log log out and back in, because it works now!
 
Old 06-10-2010, 08:52 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,335
Blog Entries: 1

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
yes, when you change groups settings, you have to relogin to use the new perms. You could just su user i.e. su to yourself to make that happen via the CLI. exit being the equivalent of logging out / undo. Or reboot / relogin / and other means to an end. But it was basically a permissions issue, you weren't in the optical group. Which I guess fixed your problem when you were added and it took effect.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
audio cds won't mount/play but dvds in same drives play. Running SW12.2current. lestoil Slackware 6 05-28-2009 08:33 PM
smplayer: video+audio stutters with pulseaudio, audio files play fine GamerX Linux - Desktop 1 02-06-2009 09:53 PM
Burnt Audio CD by K3B CANNOT play on external CD playing device, but can play on comp robin.com.au Linux - Software 14 05-27-2007 05:30 AM
DVD plays but no audio (can play audio cd's though)? guitarnix Linux - Newbie 2 10-05-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration