Automatically loading modules with Red Hat 7.1

Rasjid Wilcox rasjidw at bigpond.com
Tue Jan 15 22:06:50 EST 2002


On Tue, 15 Jan 2002 11:42, Everard Edwards wrote:
> Mandrake does have an /etc/modules file (obviously as well as
> /etc/modules.conf) and is still pretty closely based on Red hat so perhaps
> creating a /etc/modules file with a list of modules you want started up at
> boot will work?
>   I can't remember which script uses /etc/modules but I guess you could
> have a look through rc.local and the like for any sign of /etc/modules
>   Ev

<snip>

> >>> Andrew Pollock <andrew at andrew.net.au> 01/15/02 10:41am >>>
>
> Alas my employer is pro Red Hat and I'm more familiar with Debian than Red
> Hat.
>
> I'm currently stumped as to how to do the equivalent of /etc/modules in Red
> Hat.
> I want to make the system automatically load a module on bootup.
>
> In this particular case, it's the module for my SCSI card. kudzu picked it
> up
> and added
>
> alias scsi_hostadapter initio
>
> to my /etc/modules.conf, but this doesn't actually load the module on
> bootup,
> which is what I want.
>
> I've rummaged through all the startup files and can't really see any
> reference
> to anything that looks like it does what I want, but I can't believe I have
> to
> modprobe the sucker every time, or otherwise rely on the kernel to modprobe
> it
> for me when I happen to try and access something.
>
> Any suggestions?
>
> Andrew

# grep -r '/etc/modules' /etc

only yields references to /etc/modules.conf, so I don't think RedHat uses 
/etc/modules.

I know that a common solution is simply to put
modprobe <module>
into /etc/rc.d/rc.local.

It may not be quite as elegant as having a defined file for it, but it will 
work.

Rasjid.




More information about the linux mailing list