Click to See Complete Forum and Search --> : Modules to load during boot
Is there someway to make a module to load during boot, before fstab is run? I need to load a module (dpt_i2o) for hardward raid but i don't need to boot from it. I tried to include it in initrd (its a scsi raid), but it said something about failing to initialize memory, not being able to free memory to it.
sans-hubris
12-03-2001, 06:18 AM
What distro are you using? For most distros I know, the modules are alway loaded first. It seems pointless to first try to mount everything, when certain devices require a module to be mounted.
The easy option I can think of is to compile the module right into the kernel itself.
Also, you might want to check out the modultils (http://www.kernel.org/pub/linux/utils/kernel/modutils/v2.4/) package.
Right, forgot the distribution. Using RedHat7.1.
I don't need to load more than one module. I know that it doesn't seem to need anything else, since when loading it manually after boot, it doesn't add anything else (using modprobe). I just need to get it to load before mounting averything in fstab.
[ 03 December 2001: Message edited by: Hena ]
Ok, got it now. After reading rc.sysinit and messages log through nad comparing them, i found that if there is a file called rc.modules in /etc/ then that is run before mounting anything in fstab. So then create that with right command to mount my hardware raid in it and voila. Everything is goes just nice during boot now :)