View previous topic :: View next topic |
Author |
Message |
Iced-Tux Apprentice
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Mon Feb 21, 2005 1:28 pm Post subject: Can't play Audio CD's |
|
|
Hello all.
My problem:
As a user I can't access /dev/hdc. So all my apps *xmms, gnome-cd, grip, vlc etc* cannot access any audio cds or dvds.
BTW any other format *data cd, data dvd* is working fine.
I am using gentoo-dev-sources-2.6.10-r6, udev50 , ivman 0.5_pre2.
My groups:
Code: |
-(christian@iced-book:1)-(80 files:196K@~)-(0 jobs)-(14:21)-
-(~:$)-> groups
disk wheel audio cdrom video games cdrw usb users
|
My /etc/security/console.perms:
Code: |
-(christian@iced-book:1)-(80 files:196K@~)-(0 jobs)-(14:21)-
-(~:$)-> cat /etc/security/console.perms
# /etc/security/console.perms
#
# This file determines the permissions that will be given to priviledged
# users of the console at login time, and the permissions to which to
# revert when the users log out.
# format is:
# <class>=list of regexps specifying consoles or globs specifying files
# file-glob|<class> perm dev-regex|<dev-class> \
# revert-mode revert-owner[.revert-group]
# the revert-mode, revert-owner, and revert-group are optional, and default
# to 0600, root, and root, respectively.
#
# For more information:
# man 5 console.perms
# file classes -- these are regular expressions
<console>=tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]\.[0-9] :[0-9]
<xconsole>=:[0-9]\.[0-9] :[0-9]
# device classes -- these are shell-style globs
<sound>=/dev/dsp* /dev/audio* /dev/midi* \
/dev/mixer* /dev/sequencer* \
/dev/sound/* /dev/snd/* /dev/beep \
/dev/admm* \
/dev/adsp* /dev/aload* /dev/amidi* /dev/dmfm* \
/dev/dmmidi* /dev/sndstat
<cdrom>=/dev/cdrom* /dev/rdvd /dev/ide/*/*/*/*/cd /dev/scsi/*/*/*/*/cd \
/dev/cdroms/* /dev/cdwriter* /mnt/cdrom* \
/dev/hdc #this was added by me
# permission definitions
<console> 0660 <serial> 0660 root.tty
<console> 0660 <floppy> 0660 root.floppy
<console> 0600 <sound> 0600 root.audio
<console> 0660 <cdrom> 0660 root.cdrom #changed from 0600 -> 0660
<console> 0600 <pilot> 0660 root.uucp
<console> 0600 <jaz> 0660 root.disk
<console> 0600 <zip> 0660 root.disk
<console> 0600 <ls120> 0660 root.disk
<console> 0600 <scanner> 0600 root
<console> 0600 <camera> 0600 root
<console> 0600 <memstick> 0600 root
<console> 0600 <flash> 0600 root
<console> 0600 <diskonkey> 0660 root.disk
<console> 0600 <rem_ide> 0660 root.disk
<console> 0600 <fb> 0600 root
<console> 0600 <kbd> 0600 root
<console> 0600 <joystick> 0600 root
<console> 0600 <v4l> 0600 root.sys
<console> 0700 <gpm> 0700 root
<console> 0600 <mainboard> 0600 root
<console> 0660 <burner> 0660 root.cdrw
<console> 0660 <usb> 0660 root.usb
<console> 0600 <rio500> 0600 root
<xconsole> 0600 /dev/console 0600 root.root
<xconsole> 0600 <dri> 0600 root
|
My /etc/udev/permissions.d/50-udev.permissions:
Code: |
-(christian@iced-book:1)-(80 files:196K@~)-(0 jobs)-(14:22)-
-(~:$)-> cat /etc/udev/permissions.d/50-udev.permissions
# /etc/udev/udev.permissions: permission/ownership map for udev
# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 2004/01/01 03:41:24 azarah Exp $
[...]
# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660
# optical devices
sr*:root:cdrom:660
scd*:root:cdrom:660
pcd*:root:cdrom:0660
cdrom*:root:cdrom:0660
dvd:root:cdrom:0660
rdvd:root:cdrom:0660
cdroms/*:root:cdrom:0660
[...]
|
As far as I can figure it out everything is as it is meant to be.
Every link to /dev/hdc is set to 777.
If I change the ownership of /dev/hdc, I can access audio cds and dvds.
iced-tux _________________ !! The road to hell is full of good intentions !!
Last edited by Iced-Tux on Mon Feb 21, 2005 1:43 pm; edited 1 time in total |
|
Back to top |
|
|
Fredde Tux's lil' helper
Joined: 08 Feb 2005 Posts: 98
|
Posted: Mon Feb 21, 2005 1:40 pm Post subject: |
|
|
What is the content of your /etc/fstab? What type of permissons is set for your cd(dvd) units.
Example:
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
The part in bold (user) make it possible for non-root to mount the optical unit |
|
Back to top |
|
|
Iced-Tux Apprentice
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Mon Feb 21, 2005 1:46 pm Post subject: |
|
|
/etc/fstab:
Code: |
[...]
/dev/hdc /media/cdrecorder auto exec,user,noauto,managed 0 0
[...]
|
This is working like a charm for everything else *data-cd/-dvd* _________________ !! The road to hell is full of good intentions !! |
|
Back to top |
|
|
Mustaavalkosta n00b
Joined: 28 Feb 2005 Posts: 23 Location: Finland
|
Posted: Wed Mar 09, 2005 9:38 pm Post subject: |
|
|
Try to add MODE="666" to /etc/udev/rules.d/10-local.rules or wherever your cdrom settings are. Like this:
Quote: | BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="cdrw cdroms/cdrom%n", MODE="666" |
I don't know if it's a security risk, but it works for me. Satan can control my cdrom now. _________________ Gentoo 2006.1 / kernel 2.6.18-gentoo |
|
Back to top |
|
|
transient l33t
Joined: 13 Jan 2005 Posts: 759
|
Posted: Thu Mar 10, 2005 1:46 am Post subject: |
|
|
The fstab doesnt matter for audio CDs, as they dont ever get mounted in order to be played.
The apps just read the data straight off the CD. |
|
Back to top |
|
|
kraij n00b
Joined: 26 Feb 2005 Posts: 11
|
Posted: Sat Mar 19, 2005 8:50 pm Post subject: well |
|
|
Quote: | The fstab doesnt matter for audio CDs, as they dont ever get mounted in order to be played |
yes he s right, you cannot mount an audiodisc because it it no iso9660 filesystem but no problem.
I solved the problem by emergeing xmms-plugins (xmms-cdread & xmms-cdaudio) & voila i was able to play my originals
so try a:
Code: |
moep@shell~ $ emerge xmms-cdaudio
|
if you want to check dependencies before:
Code: |
moep@shell~ $ emerge -vp xmms-cdaudio
|
regards kraij |
|
Back to top |
|
|
Iced-Tux Apprentice
Joined: 14 Apr 2004 Posts: 183 Location: Germany, Cologne
|
Posted: Sat Mar 19, 2005 11:15 pm Post subject: |
|
|
It is not that I am not ABLE to play audio cds or dvds.
It's more that as a user i don't have the right permissons. And I wonder why this is.
I think I mentioned it before, but if I set the permissions of e.g. the /dev/hdc to say 777 all is working like a charm.
But as soon as I reboot the setting is lost.
I tried to change the settings for udev, but also no persistent success.
So anyone another idea where I can tune my system ?? _________________ !! The road to hell is full of good intentions !! |
|
Back to top |
|
|
DidgeriDude Guru
Joined: 30 Jan 2005 Posts: 349
|
Posted: Fri Mar 25, 2005 10:03 am Post subject: |
|
|
Don't know if this could help, but, in console.perms, your audio section shows 600 permissions and not 660 for audio group to write into the device...
PS : Sorry for my english speaking... hope this would be comprehensive... |
|
Back to top |
|
|
|