I've been stuck in a conundrum with trying to play audio CD's as a normal user (works perfect as root). Recently I had to change the way my ATAP CD/RW was probed at boot time. I am now using SCSI emulation, whereby /dev/cdrom now points to sr0 rather than /dev/hdd.
lrwxrwxrwx 1 root root 3 Apr 24 19:37 /dev/cdrom -> sr0 brw-rw---- 1 root disk 11, 0 Apr 13 1999 sr0 brw-rw---- 1 root disk 11, 0 Apr 24 19:25 scd0
The user in question *is* a member of the disk group, so the read/write permissions are correct. Is there another reason why I get the following error with cdparanoia:
/dev/cdrom exists but isn't accessible. By default, cdparanoia stops searching for an accessible drive here. Consider using -sv to force a more complete autosense of the machine.
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
*The same error still occurs if /dev/cdrom points to /dev/sdc0 too
-John Freeman-
What modules are loaded? You should see at least the following items:
ide-cd ide-scsi cdrom
Make sure that you have hdd=ide-scsi as a option after the kernel in your boot loader.
What do you see when you ls the /proc/scsi/ directory? you should see an ide-scsi directory.
what do you get when you cat the scsi entry in the /proc/scsi/ directory? You should see someting like the following.
Attached devices: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: SAMSUNG Model: CD-ROM SC-148S Rev: SS09 Type: CD-ROM ANSI SCSI revision: 02
On Thu, 2002-04-25 at 11:35, John Freeman wrote:
I've been stuck in a conundrum with trying to play audio CD's as a normal user (works perfect as root). Recently I had to change the way my ATAP CD/RW was probed at boot time. I am now using SCSI emulation, whereby /dev/cdrom now points to sr0 rather than /dev/hdd.
lrwxrwxrwx 1 root root 3 Apr 24 19:37 /dev/cdrom -> sr0 brw-rw---- 1 root disk 11, 0 Apr 13 1999 sr0 brw-rw---- 1 root disk 11, 0 Apr 24 19:25 scd0
The user in question *is* a member of the disk group, so the read/write permissions are correct. Is there another reason why I get the following error with cdparanoia:
/dev/cdrom exists but isn't accessible. By default, cdparanoia stops searching for an accessible drive here. Consider using -sv to force a more complete autosense of the machine.
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
*The same error still occurs if /dev/cdrom points to /dev/sdc0 too
-John Freeman-
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
On Thursday 25 Apr 2002 2:51 pm, Douglas Willis wrote:
What modules are loaded? You should see at least the following items:
ide-cd ide-scsi cdrom
/sbin/modprobe scsi_mod /sbin/modprobe sg /sbin/modprobe sr_mod /sbin/modprobe loop /sbin/modprobe ide-scsi /sbin/modprobe sd_mod /sbin/modprobe cdromlilo
Make sure that you have hdd=ide-scsi as a option after the kernel in your boot loader.
Indeed, its there. Incidentally I have 2 CD Drives, so I have
append="hdd=ide-scsi, hdb=ide-scsi"
What do you see when you ls the /proc/scsi/ directory? you should see an ide-scsi directory.
dr-xr-xr-x 2 root root 0 Apr 25 15:54 ide-scsi -r--r--r-- 1 root root 0 Apr 25 15:54 scsi dr-xr-xr-x 2 root root 0 Apr 25 15:54 sg
what do you get when you cat the scsi entry in the /proc/scsi/ directory? You should see someting like the following.
Attached devices: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: SAMSUNG Model: CD-ROM SC-148S Rev: SS09 Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: HITACHI Model: CDR-7930 Rev: 1023 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: _NEC Model: NR-7700A Rev: 1.01 Type: CD-ROM ANSI SCSI revision: 02
<-------------SNIP------------->
Ok, I have fixed one small issue, I noticed that /dev/sg1 and /dev/sg2 were both owned by root and only were read/writable by root. I've added these to the disk group and given them both rw permissions by disk and root.
I can now rip audio from CD :-)
but....I *still* cannot hear audio when I try and play from CD, and yes the cd player will read the disk.
-J-
On Thursday 25 Apr 2002 3:55 pm, John Freeman wrote:
On Thursday 25 Apr 2002 2:51 pm, Douglas Willis wrote:
What modules are loaded? You should see at least the following items:
ide-cd ide-scsi cdrom
/sbin/modprobe scsi_mod /sbin/modprobe sg /sbin/modprobe sr_mod /sbin/modprobe loop /sbin/modprobe ide-scsi /sbin/modprobe sd_mod /sbin/modprobe cdromlilo
Make sure that you have hdd=ide-scsi as a option after the kernel in your boot loader.
Indeed, its there. Incidentally I have 2 CD Drives, so I have
append="hdd=ide-scsi, hdb=ide-scsi"
What do you see when you ls the /proc/scsi/ directory? you should see an ide-scsi directory.
dr-xr-xr-x 2 root root 0 Apr 25 15:54 ide-scsi -r--r--r-- 1 root root 0 Apr 25 15:54 scsi dr-xr-xr-x 2 root root 0 Apr 25 15:54 sg
what do you get when you cat the scsi entry in the /proc/scsi/ directory? You should see someting like the following.
Attached devices: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: SAMSUNG Model: CD-ROM SC-148S Rev: SS09 Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: HITACHI Model: CDR-7930 Rev: 1023 Type: CD-ROM ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: _NEC Model: NR-7700A Rev: 1.01 Type: CD-ROM ANSI SCSI revision: 02
<-------------SNIP------------->
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
John Freeman admin@layla-studios.co.uk wrote:
but....I *still* cannot hear audio when I try and play from CD, and yes the cd player will read the disk.
Sorry if this has been asked, but is there a link between the CD drive and your sound card? With IDE drives, you need a cable, but I don't know if SCSI ones do, as I only read software from them.
Also, can you please trim quoted messages and reply beneath? There are enough people on the list that the transfer saving is very useful, not to mention the time of others in the discussion.
MJ Ray wrote:
Sorry if this has been asked, but is there a link between the CD drive and your sound card? With IDE drives, you need a cable, but I don't know if SCSI ones do, as I only read software from them.
Also, can you please trim quoted messages and reply beneath? There are enough people on the list that the transfer saving is very useful, not to mention the time of others in the discussion.
Aye, there is a cable, and my drive isn't SCSI. Anyway, I've found the solution by doing a whole bunch of web site queries. Here are my findings.
If a CD drive is emulated as SCSI, then the audio channel isn't available, you can only read data tracks, and rip audio tracks. If this is a genuine case, why? If I get time, I may trawl through the SCSI emulation code in the kernel and find a workaround.
The solution is for me to comiple SCSI code and IDE code as modules, they won't co-exist together if compiled into the kernel. I can then have my cd burner as SCSI and my other CD drive as IDE so I can both burn and play music.
Damn silly way of doing things if you ask me, but I've spoken to a few people, and they all agree that cd drives are SCSI emulated, they can not play audio. Maybe if I get my butt around to it and write a patch, I'll be famous for 5 minutes.
As to the other issue, it's no problem. Each "list" has it's own etiquette, now I'm familiar with this list's etiquett...etc.etc and so on and so forth.
John Freeman admin@layla-studios.co.uk wrote:
If a CD drive is emulated as SCSI, then the audio channel isn't available
[...]
The solution is for me to comiple SCSI code and IDE code as modules, they
I suspect if you configured the modules.conf / modutils files correctly, you could get it to autochange the modules for the drive and play audio back and burn as needed.
Another possibility might be to play the audio back through the computer using the cd wav mounter doodah. Messy.
(Oh, and "reply beneath" might have been better as "reply amongst".)