I'm trying to get my CDROM to emulate a SCSI drive by emulation and I'm running into errors.
Here's what my modules.conf looks like:
Now, when I try opening a CD, nothing happens. /dev/scd0's group is cdrom so I naturally added myself to it. I also tried doing "cat /dev/scd0" which gave me "no medium found"
options ide-cd ignore=hdc
alias block-major-11 sr_mod
add above sr-mod ide-scsi
Finally, I looked inside my kernel and found this info.
/var/log/kern.log: cdrom open failed
I'm using kernel 2.4.22.
Check what "cat /proc/ide/hdc/driver" says. I take it your CD-ROM is hdc?
Is the module ide-cd supposed to be loaded? If so, I get this error when I try to load it:
/etc/modules.conf is more recent than lib/modules/2.4.22/modules.dep
It shouldn't matter whether ide-cd is loaded or not. If you don't have any IDE CD drivers that you wish to access through the common IDE interface, you can just as well leave it unloaded. ide-cd is simply a userspace interface layer.
That's not really an error, but a warning, that tells you that the dependency information is out of date. Just run "depmod -ae" and it should disappear.
Anyway, the ide-scsi driver has hooked itself to the IDE drive. Check /proc/scsi/scsi if it's registered there. If it is, try to cat it again and check if "dmesg | tail" gets some more details on why the open failed. The kernel log file sometimes leave out some messages of less importance.
cat /proc/scsi/scsi gives me info about my CDRW.
dmesg | tail gives me info about my CDRW but it also gives me this:
I/O error: dev 0b:00, sector 0
Dolda, would it help if I put exactly what I see?
Strange... I've looked through the kernel source, and I just can't seem to find any good condition that would cause that. Of course, those sections are big and complicated, and I may well have missed something, but are you sure that the disk actually works?
I really wish I saved my old kernel. I might try to compile it in 2.4.21 and see if it works there. Other than that, I don't know what I'm doing wrong.
After doing some research with XMMS and my cdrom drive, I found this information:
Device /dev/cdrom OK
device has 13 tracks
Total Length: 67:28
digital audio extraction test failed:inappropriate ioctl for device
I'm sorry to say so, but I really have no idea what would be causing this. It almost seems like a bug in 2.4.22, but that still just seems so unlikely.