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.
 

  1. Type uname -r This will give you the version number
  2. 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.
  3. 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>
  4. Now change into the directory where the modules are via the symbolic link. /lib/modules/<version number>
  5. Run the command depmod -a
  6. Edit the file /etc/conf.modules using your favourite text editor. I use pico
  7. Add the line depfile=/lib/modules/<version number>/modules.dep
  8. Save and quit
  9. Edit the file /etc/rc.d/rc.sysinit
  10. Find the line with the command depmod -a preferred You can use the ctrl+W command in pico for this.
  11. 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.
  12. Remove the word preferred from the second depmod statement. It should now read depmod -a
  13. Save the file
  14. Reboot and hope for the best!
[Geocities] [Home] [Email]