LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Module loaded into kernel at Boot (https://www.linuxquestions.org/questions/linux-software-2/module-loaded-into-kernel-at-boot-216141/)

Wolf_Assassin 08-11-2004 05:42 AM

Module loaded into kernel at Boot
 
i have a module hpt374.ko
how do i get it to load at boot?

djgerbavore 08-11-2004 07:25 AM

put them in your rc.local file.
pico /etc/rc.d/rc.local
modprobe <moduleName>
save it and reboot!

Wolf_Assassin 08-11-2004 10:15 AM

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

vectordrake 08-11-2004 10:24 AM

Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload

Does RedHat have /etc/init.d?

Wolf_Assassin 08-11-2004 10:41 AM

Quote:

Originally posted by vectordrake
Try for 2.4 kernels, /etc/modules.conf and for 2.6 kernels /etc/modprobe.preload

Does RedHat have /etc/init.d?

ok that sounds right but how do the kernel read the file
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?

vectordrake 08-11-2004 10:45 AM

Just type the name of the module, without the ending .ko. You're running Mandy 10? Put it in
Code:

/etc/modprobe.preload
All alone, on its own solitary line...

djgerbavore 08-11-2004 10:50 AM

okay, i didn't realize. sry bout that.

use /etc/module.conf - loads all the modules for slackware! i don't know about mandrake

vectordrake 08-11-2004 10:52 AM

Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.

LavaDevil94 08-11-2004 10:53 AM

Actually, if you're booting from a RAID, you should have that compiled into the kernel.

Wolf_Assassin 08-11-2004 01:07 PM

Quote:

Originally posted by LavaDevil94
Actually, if you're booting from a RAID, you should have that compiled into the kernel.
you don't have to recompile the entire kernel to get the modules loaded at boot do you?



Quote:

Originally posted by vectordrake
Oh yeah, that file is commented with an explanation of what I just psosted anyways. You'll be fine.
how is it supposed to know where the hpt374.ko file is?
don't you have to put it somewhere special?

black hole sun 08-11-2004 01:23 PM

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...

vectordrake 08-11-2004 05:57 PM

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.