Stephen Gran on 11 Dec 2003 19:45:05 -0500


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

Re: [PLUG] SCSI module not loading


On Thu, Dec 11, 2003 at 12:45:26PM -0500, eric@lucii.org said:
> I cannot figure out the /etc/modules.conf file or why I even need to...
> 
> Situation:  I've got an Exabyte external SCSI backup drive that I want
> to connect to my RH9 workstation.  On booting, I discover there are
> no valid SCSI tape devices.  lsmod gives me these relevant entries:
> 
> ide-scsi               12208   0 
> scsi_mod              107544   2  [ide-scsi]
> 
> I figured out that I can manually insert the correct module and viola! I
> can see the SCSI tape now:
> 
> $ insmod aic7xxx
> Using /lib/modules/2.4.20-20.9/kernel/drivers/scsi/aic7xxx/aic7xxx.o
> $
> 
> (it does this because I modified the modules.conf file to alias the
> aic7xxx module... otherwise, it does NOT load the aic7xxx module without
> the absolute path.)
> 
> My problem is, every time I reboot, I have to manually tell it to use
> that module.  How do I tell it (via modules.conf?) to load it
> automatically on boot?
> 
> Here is the current modules.conf:
> 
> alias eth0 tulip
> alias usb-controller ehci-hcd
> alias usb-controller1 usb-uhci
> alias sound-slot-0 i810_audio
> post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1
> pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 |
> alias scsi_hostadapter /lib/modules/2.4.20-20.9/kernel/drivers/scsi/aic7xxx/aic7xxx.o
> alias usb-controller ehci-hcd
> 
> Perhaps the "scsi_hostadapter" line causes me the problem?

Note that none of the other entries include the full path to the module.
Try just:

alias scsi_hostadapter aic7xxx

and see how that goes.

I prefer the /etc/modules.conf approach, as I think it's cleanest
(modules aren't loaded until the hardware access is requested, and under
2.6, they will be unloaded when no longer needed), but it's sometimes
difficult to set up just right.  If the aboce still doesn't work for
you, you can use /etc/modules instead - this just contains a list of
modules to load at boot time.  The advantage is that it's simple, the
only disadvantage is that they're always loaded, whether or not you want
to use that piece of hardware at the time.  Just \
echo aic7xxx >> /etc/modules

HTH,
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | It would be possible to optimize some   |
|  steve@lobefin.net             | forms of goto, but I haven't bothered.  |
|  http://www.lobefin.net/~steve | -- Larry Wall in                        |
|  			         | <199709041935.MAA27136@wall.org>        |
 --------------------------------------------------------------------------

Attachment: pgpoDFnMBLKqa.pgp
Description: PGP signature