Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cdparanoia+2.6.12r10+udev stops working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ew
n00b
n00b


Joined: 28 Aug 2004
Posts: 47

PostPosted: Tue Sep 13, 2005 9:37 am    Post subject: cdparanoia+2.6.12r10+udev stops working Reply with quote

Since the upgrade from 2.6.x+devfs to 2.6.12r10+udev cdparanoia stops working. cdparanoia say that I don't have a CDROM and that's the problem. (I'm talking about a real SCSI device and not some ATAPI emulation.)

I copied the kernelconfigs from the last working release to the current release of my kernel so I don't think I'm missing any modules here. Mounting a data cd is working perfectly:

% df | grep cdrom
/dev/cdrom 699M 699M 0 100% /tmp/cdrom

Reading from the CD is okay too:

% xxd /dev/cdrom
[...]

Using cdparanoia on an audio CD is not working:

cdparanoia -vsB wrote:
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty@xiph.org> and Xiphophorus

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Checking /dev/cdrom for cdrom...
Testing /dev/cdrom for cooked ioctl() interface
/dev/sr0 is not a cooked ioctl CDROM.
Testing /dev/cdrom for SCSI interface
No generic SCSI device found to match CDROM
device /dev/sr0

Checking /dev/cdroms/cdrom0 for cdrom...
Could not stat /dev/cdroms/cdrom0: No such file or directory
[...]


cdparanoia -v -B --force-cdrom-device=/dev/sr0 wrote:
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty@xiph.org> and Xiphophorus

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Checking /dev/sr0 for cdrom...
Testing /dev/sr0 for cooked ioctl() interface
/dev/sr0 is not a cooked ioctl CDROM.
Testing /dev/sr0 for SCSI interface
No generic SCSI device found to match CDROM
device /dev/sr0


The device node is the same:
% dir -al /dev/sr0
brw-rw---- 1 root cdrom 11, 0 Sep 7 2005 /dev/sr0

cdparanoia don't support any use flags so I can't do a wrong thing here!

I've tried all the stuff as root.

What is the problem here? Is this a known issue (https://bugs.gentoo.org says no)? Any alternatives to cdparanoia?
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Sep 14, 2005 10:14 am    Post subject: Reply with quote

Maybe this is your problem: http://www.xiph.org/paranoia/trouble.html#gendev?
Back to top
View user's profile Send private message
ew
n00b
n00b


Joined: 28 Aug 2004
Posts: 47

PostPosted: Thu Sep 15, 2005 8:58 am    Post subject: Reply with quote

Thanks for the answer!

http://www.xiph.org/paranoia/trouble.html#gendev wrote:

1) The kernel has generic SCSI support compiled in (or the generic module available). Generic SCSI support does *not* mean only SCSI or SCSI CDROM.

2) Those using ATAPI CDROM drives with IDE-SCSI emulation must *not* have ATAPI CDROM support included. ATAPI IDE-SCSI emulation users must have all the appropriate SCSI support selected.

3) The generic SCSI devices (/dev/sg*) must exist and be accessible. Check that permissions on the device entries allow user or group read *and* write access (it's safest to grant user or group access only to the device matching the cdrom).

1) I don't know which kernel modules are really necessary. The SCSI-CDROM is working fine with data CDs so I think I the kernel is fine. Are there any extra modules for audio cds?

2) My CD is not an ATAPI CDROM. It's a real scsi device and I'm working as root.

3) /dev/sr0 is in good condition:

% mount /dev/sr0 /tmp/cd
mount: block device /dev/sr0 is write-protected, mounting read-only

Any other hints?
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Thu Sep 15, 2005 9:24 am    Post subject: Reply with quote

ew wrote:
http://www.xiph.org/paranoia/trouble.html#gendev wrote:

1) The kernel has generic SCSI support compiled in (or the generic module available). Generic SCSI support does *not* mean only SCSI or SCSI CDROM.

As far as I understand, even if you've got a genuine SCSI cdrom, you still have to enable "Device Drivers->SCSI device support->SCSI generic support". This will make sure that a /dev/sgX device is created for your cdrom, which is needed for cdparanoia to work.


Last edited by chrbecke on Thu Sep 15, 2005 9:27 am; edited 1 time in total
Back to top
View user's profile Send private message
ew
n00b
n00b


Joined: 28 Aug 2004
Posts: 47

PostPosted: Thu Sep 15, 2005 9:24 am    Post subject: cdparanoia+2.6.12r10+udev stops working [SOLVED] Reply with quote

'/usr/share/doc/cdparanoia-3.9.8-r2/README.gz' gave me the answer. The not loaded module 'sg' was the solution to the problem. After a 'insmod sg' everything was fine.
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Thu Sep 15, 2005 9:28 am    Post subject: Re: cdparanoia+2.6.12r10+udev stops working [SOLVED] Reply with quote

ew wrote:
'/usr/share/doc/cdparanoia-3.9.8-r2/README.gz' gave me the answer. The not loaded module 'sg' was the solution to the problem. After a 'insmod sg' everything was fine.


So, different source, same solution. :)
Back to top
View user's profile Send private message
ew
n00b
n00b


Joined: 28 Aug 2004
Posts: 47

PostPosted: Thu Sep 15, 2005 12:04 pm    Post subject: Re: cdparanoia+2.6.12r10+udev stops working [SOLVED] Reply with quote

Thanks for pushing me in the right direction! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum