[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading SCSI CDROM driver by demand



On Wed, 11 Feb 1998, Udi Finkelstein wrote:

> Hi,
> 
> I have a SCSI CD-RW unit (RICOH MP6200S) I'm trying to mount as a
> CDROM. I'm using the default 2.0.31 kernel installed by RH 5.0 . I
> also have an HP DAT on the same SCSI chain, driven by an Adaptech
> AHA1522.
> 
> If I access the DAT (mt -f /dev/st0 status) before trying to mount the
> cd (mount -t iso9660 /dev/scd0 /mnt/cd0) The CD is mounted fine.
> (Because the adaptec module is loaded before by the tape).
> 
> If the SCSI module (aha152x.o) has not been loaded before, mouning the
> CD will fail. Now, I want that mounting the CD will automatically load
> the adaptec module, the same way it works for the SCSI DAT!
> 
> Notice that the default RedHat kernel is compiled with SCSI CDROM
> built in (_not_ as a module), while the SCSI driver is compiled as a
> module. The SCSI Tape support, however, _is_ conpiled as a module.

I don't think that the kerneld can resolve this kind of problem, i.e. an
external dependency for an internally resolved module. It just does not
generate the necessary callback probably. 

> 
> So, it seems that automatically loading the SCSI adapter module works
> for my SCSI DAT but not for my SCSI CDROM, because SCSI CDROM support
> is compiled into the kernel, while SCSI DAT is a module.

Looks like it.

> 
> Is there a way to make this work, without recompiling a new kernel? I
> am quite sure this will fix the problem, but I really want to
> understand WHY this DOESN'T work at the moment!

Why not load the SCSI module permanently using insmod and instruct kerneld
to leave it alone (i.e. not unload it). I don't know if it can be done but
one can try. RTFM insmod, option 'NOT' -k ;)

> 
> I read the Kerneld-Mini-HOWTO and all the other related documents I
> know, but couldn't get it to work. My /etc/conf.modules just contains
> the necessary flags for the aha152x module, the necessary flags for my
> soundblaster, and the line defining the adaptec as the default scsi
> host adapter.

You may have to change this to prevent kerneld from trying to remove it (I
don't know which one has priority).

> 
> N.B. thanks for all of you who helped me with my previous modules
> problem! (changing the unload timeout).
> 
> Udi
> 

Peter