Module loaded into kernel at Boot
i have a module hpt374.ko
how do i get it to load at boot? |
put them in your rc.local file.
pico /etc/rc.d/rc.local modprobe <moduleName> save it and reboot! |
thats too late in the boot
i want it too load with the other modules not in the rc skripts hpt374 is a raid device and nead to be up and running before the disks are mounted |
Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload
Does RedHat have /etc/init.d? |
Quote:
only one thing is specified in the modprobe in he file it says scsi_hostadapter but how do i insert my hpt374.ko do i just write the path and name? |
Just type the name of the module, without the ending .ko. You're running Mandy 10? Put it in
Code:
/etc/modprobe.preload |
okay, i didn't realize. sry bout that.
use /etc/module.conf - loads all the modules for slackware! i don't know about mandrake |
Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.
|
Actually, if you're booting from a RAID, you should have that compiled into the kernel.
|
Quote:
Quote:
don't you have to put it somewhere special? |
See if you have the file /etc/modules.autoload.d/kernel-2.x (replace X with 4 or 6, depending on your kernel)
If you do have that file, open it up and just write the name of the module, save, and reboot. If not, ignore this post as I can't help... |
If you had to compile the module already, you'd already have it in the list in /etc/modules.autoload.d/kernel-2.x anyhow. That's why there's a defined file structure in *nix - so you can find stuff in predictable places (if you know where these places are, of course). You may also find that particular file in /lib/modules/kernel-2.x
/etc/modprobe.preload is one of the files that modprobe will look for modules to load. That's why the developers put the file there. |
All times are GMT -5. The time now is 05:27 PM. |