LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't play audio CD! (https://www.linuxquestions.org/questions/linux-newbie-8/cant-play-audio-cd-813130/)

MTK358 06-09-2010 07:57 AM

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.

Shadow_7 06-09-2010 08:05 AM

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.

MTK358 06-09-2010 08:35 AM

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.

Shadow_7 06-09-2010 06:36 PM

is the user in the audio group? the cdrom group?

$ groups

Does /dev/cdrom exist?

$ ls -l /dev/cdrom

MTK358 06-09-2010 07:18 PM

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


Shadow_7 06-09-2010 09:13 PM

$ grep -i "cd" /etc/group

$ ls -l /dev/cd/cdrom-1:0:0:0

MTK358 06-10-2010 06:31 AM

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:


MTK358 06-10-2010 06:36 AM

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!

Shadow_7 06-10-2010 07:52 AM

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.


All times are GMT -5. The time now is 03:34 AM.