Modules Setup
This guide assumes you are using RedHat 5.1, although it will apply to
other versions and brands of Linux.
This is what I did to solve the problem related to the boot-up message:
"Cannot open /lib/modules/preferred/modules.dep" This problem appears to
occur mainly when loadlin is used.
-
Type uname -r This will give you the version number
-
Have a look in the directory /lib/modules There should be a directory
with a name resembling the version number you found above, but often with
something on the end (-0.6 in my case). This is your modules directory.
-
Make a symbolic link to the modules directory with the exact same name
as the version number. i.e. ln -s <modules directory> <version
number>
-
Now change into the directory where the modules are via the symbolic link.
/lib/modules/<version number>
-
Run the command depmod -a
-
Edit the file /etc/conf.modules using your favourite text editor.
I use pico
-
Add the line depfile=/lib/modules/<version number>/modules.dep
-
Save and quit
-
Edit the file /etc/rc.d/rc.sysinit
-
Find the line with the command depmod -a preferred You can use the
ctrl+W command in pico for this.
-
A few lines below the first occurence of this command should be an identical
one. There is the first depmod command, an else statement, then the second
depmod command.
-
Remove the word preferred from the second depmod statement. It should now
read depmod -a
-
Save the file
-
Reboot and hope for the best!
[Geocities] [Home]
[Email]