[svlug] Linux and IDE CD-ROM RW

Bill Jonas bj at netaxs.com
Wed Sep 20 20:57:02 PDT 2000


Karl --

I was re-reading the thread just now and I realized that maybe the SCSI
modules aren't loaded.  (Although this might not be the case if you're
using a stock kernel, but I don't know.  Output from some of your
commands might be helpful.)

Anyway, here's a transcript of a session, where I start with all modules
unloaded.  (I did not build SCSI support into my kernel.)

morpheus:~# lsmod
Module                  Size  Used by
morpheus:~# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
morpheus:~# lsmod
Module                  Size  Used by
sg                     15844   0  (autoclean) (unused)
scsi_mod               59536   1  (autoclean) [sg]
morpheus:~# insmod ide-scsi
Using /lib/modules/2.2.16/scsi/ide-scsi.o
morpheus:~# lsmod
Module                  Size  Used by
ide-scsi                7412   0 
sg                     15844   0  (autoclean) (unused)
scsi_mod               59536   2  (autoclean) [ide-scsi sg]
morpheus:~# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0:
	0,0,0	  0) 'PHILIPS ' 'PCRW404         ' '1.06' Removable CD-ROM
	0,1,0	  1) *
	0,2,0	  2) *
	0,3,0	  3) *
	0,4,0	  4) *
	0,5,0	  5) *
	0,6,0	  6) *
	0,7,0	  7) *
morpheus:~# lsmod
Module                  Size  Used by
ide-scsi                7412   0 
sg                     15844   0  (autoclean)
scsi_mod               59536   2  (autoclean) [ide-scsi sg]
morpheus:~# exit

Once it detects the drive, I can issue the following command and it will
work perfectly:
# cdrecord -v speed=4 dev=0,0,0 -data <image-filename>.iso

Oh, also note that I have the kernel module loader enabled.  If you
don't, you'll just need to load the modules properly by hand.  Or, going
on what Jeffrey B. Siegal said, I attempted the following with success:

morpheus:~# lsmod
Module                  Size  Used by
morpheus:~# modprobe ide-scsi
morpheus:~# lsmod
Module                  Size  Used by
ide-scsi                7412   0 
scsi_mod               59536   1  [ide-scsi]
morpheus:~# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0:
	0,0,0	  0) 'PHILIPS ' 'PCRW404         ' '1.06' Removable CD-ROM
	0,1,0	  1) *
	0,2,0	  2) *
	0,3,0	  3) *
	0,4,0	  4) *
	0,5,0	  5) *
	0,6,0	  6) *
	0,7,0	  7) *
morpheus:~# lsmod
Module                  Size  Used by
sg                     15844   0  (autoclean)
ide-scsi                7412   0 
scsi_mod               59536   2  [sg ide-scsi]
morpheus:~# exit

...so it would appear that scsi_mod would need to be loaded before
ide-scsi, and that sg gets loaded there at some point.

Hope this helps.

Bill
-- 
>Ever heard of .cshrc?             | "Linux means never having to delete
That's a city in Bosnia. Right?    |  your love mail." -- Don Marti
(Discussion in comp.os.linux.misc  |  http://www.billjonas.com/
on the intuitiveness of commands.) |  http://www.harrybrowne.org/





More information about the svlug mailing list