Using cdparanoia on a PATA cdrom drive with kernel 2.6.20.11 gives me
errors if I don't have access to the associated generic device.
More information about /dev/cdrom:
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
$ ls -l /dev/cdrom /dev/sr0
lrwxrwxrwx 1 root root 3 2007-05-03 07:27 /dev/cdrom -> sr0
brw-rw---- 1 root cdrom 11, 0 2007-05-03 07:27 /dev/sr0
I'm part of the cdrom group. However,
$ ls -l /sys/block/sr0/device/scsi_generic\:sg2
lrwxrwxrwx 1 root root 0 2007-05-03 07:27
/sys/block/sr0/device/scsi_generic:sg2 ->
../../../../../../../class/scsi_generic/sg2
$ ls -l /dev/sg2
crw-rw---- 1 root root 21, 2 2007-05-03 07:26 /dev/sg2
If I change /dev/sg2 to group cdrom, I get access through cdparanoia
(and other CDDA needing apps):
$ ls -l /dev/sg2
crw-rw---- 1 root cdrom 21, 2 2007-05-03 07:26 /dev/sg2
$ cdparanoia -Q
...
Table of contents (audio tracks only):
track length begin copy pre ch
===========================================================
1. 12900 [02:52.00] 0 [00:00.00] no no 2
2. 16937 [03:45.62] 12900 [02:52.00] no no 2
...
A couple questions:
1. Should the generic devices be getting the same permissions as the
non-generic devices? E.g, /dev/sr0 -> group cdrom, then /dev/sg2 ->
group cdrom? I don't think so, but I thought I should ask.
2. Is something possibly misconfigured in the kernel? I'm still
getting used to using the SCSI layer for everything with libata. I
have all the SCSI support stuff turned on, but maybe it conflicts with
something. I can send my kernel config if anyone would like to take a
look.
Thanks for any info here.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page