> On Wed, 31 May 2000 10:28:30 -0700, Duane
> [much snippage]
> >insmod ide-scsi
> >insmod sg
> >Also, rather than issue those commands, have you tried putting this into
> >your /etc/conf.modules:
> >options ide-cd ignore=hdc <- assuming your CD is hdc
> >alias scd0 sg
> A CD-ROM is a block device. The generic SCSI driver is a character
> device. Take a look at the results of "ls -l /dev/scd0 /dev/sg0" for
> confirmation. Attempting to use /dev/sg0 as a read-only CD-ROM interface
> will not work-- mount reports "/dev/sg0 is not a block device" which is
> what it should be saying.
> The correct module for accessing an IDE-SCSI emulated CD-ROM is sr_mod,
> and the device name is /dev/scd[0-15] depending on how many CD-ROMs you
> have. /dev/sg[0-15] is used by the sg module, and scanners and CD-R(W)s
> also use it.
> # insmod ide-scsi (IDE-SCSI emulation)
> # insmod scsi_mod (if you have SCSI support as a module)
> # insmod sr_mod (SCSI CD-ROM support)
> # insmod sg (SCSI Generic support)
> It shouldn't be this difficult-- just put
> alias scsi_hostadapter ide-scsi
> in /etc/conf.modules, and the right stuff should get probed automatically
> when you try to access /dev/scd0 or /dev/sg0, assuming you've passed
> "hdX=ide-scsi" to the kernel at boot time.
Unfortunately, judging by all the posts on this subject, it IS this
difficult. Those of us using Redhat are working with a system that is
apparently just enough different from others that instructions such as
the HOW-TO cause a lot of confusion. I am a newcomer to this, but after
much struggle I think I have absorbed just enough info to be dangerous!
So to to address your points:
alias scd0 sg
does not mean use the sg device for mounting the cd. It simply means (I
think) load the sg module when an attempt is made to access scd0 (or
something like that). I was in fact mounting the CDROM using the device
/dev/scd0. On a stock Redhat 6.1 system, the line "alias scd0 sg" does
in fact work. I know, because I have tried it.
So why did I use the line "alias scd0 sg"? Well, the latest CD-Writing
HOWTO (dated 05 May 2000) says to use "alias scd0 sr_mod". There is that
sr_mod again, as you mention above. Unfortunately, a stock Redhat system
doesn't have sr_mod as a module. So us Redhat folks are already
confused. So I tried "alias scd0 ide-scsi". Again, no dice. I tried
several other combinations until stumbling on one that worked:
options ide-cd ignore=hdc
alias scd0 sg
pre-install sg modprobe ide-scsi
And again I will emphasize that on my system it really does work. And
again, judging by other postings I have seen since, it has worked for
other people, too.
But I figured I would try your advice, so I tried the "alias
scsi_hostadapter ide-scsi" method. Interesting, that works fine too. So
I go back and look at the CD-Writing HOWTO.
I can't find any mention of this command. I do a text search on the file
for "hostadapter". Nope, doesn't appear to be there. Oddly enough, I
find (elsewhere) an old version dated 7 August 1999, and it IS there.
Well, that is just a tad odd.
In any case, for me it works absolutely no different from the method I
posted, so aside from a slightly smaller conf.module, I am not sure I
see what the difference is.
I realize that some non Redhat people would like for those of with
Redhat to stay off this list. But I think that is not a going to happen,
so the confusion will likely continue.