LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   all modules have stopped loading (https://www.linuxquestions.org/questions/slackware-14/all-modules-have-stopped-loading-647463/)

mylqname 06-06-2008 12:31 PM

all modules have stopped loading
 
Hello, I've run into some trouble and am having no luck finding an answer.
I'm running slack 12.0, and the other day I did an update with slackpkg. I did not update any kernel packages, and am still running stock kernel. I had slackpkg keep the old config files, and save the new ones with .new.

Now when I boot up, I see a lot of FATAL: Module X not found.
Once I login, lsmod shows no modules loaded. I've tried using modprobe to maunually add a module, and I get the FATAL not found message. depmod -V shows module-init-tools 3.2.2. I tried reinstalling the module-init-tools package from the install disc, with no luck. /etc/rc.d/rc.modules points to rc/modules-2.6.21.5-smp which is the kernel I am running.

I'm not sure of any other relevant info that might be need, but will list anything else that will help. Any ideas on what could prevent modules from loading like this?

T3slider 06-06-2008 12:35 PM

Check your /lib/modules/$(uname -r) directory. It should exist. In a default installation, this is located in the kernel-modules-smp-2.6.21.5_smp-i686-2 package for the SMP kernel, and kernel-modules-2.6.21.5-i486-2 for the non-SMP kernel.

mylqname 06-06-2008 09:20 PM

It looks like the modules are there, just not loading.
ls -l /lib/modules/$(uname -r) returns
Code:

total 40
lrwxrwxrwx  1 root root  23 2007-12-29 06:09 build -> /usr/src/linux-2.6.21.5/
drwxr-xr-x 11 root root 264 2007-06-12 16:51 kernel/
drwxr-xr-x  2 root root  88 2007-12-24 03:54 misc/
-rw-r--r--  1 root root  45 2008-06-05 17:28 modules.alias
-rw-r--r--  1 root root  69 2008-06-05 17:28 modules.ccwmap
-rw-r--r--  1 root root  0 2008-06-05 17:28 modules.dep
-rw-r--r--  1 root root  73 2008-06-05 17:28 modules.ieee1394map
-rw-r--r--  1 root root 141 2008-06-05 17:28 modules.inputmap
-rw-r--r--  1 root root  81 2008-06-05 17:28 modules.isapnpmap
-rw-r--r--  1 root root  74 2008-06-05 17:28 modules.ofmap
-rw-r--r--  1 root root  99 2008-06-05 17:28 modules.pcimap
-rw-r--r--  1 root root  43 2008-06-05 17:28 modules.seriomap
-rw-r--r--  1 root root  49 2008-06-05 17:28 modules.symbols
-rw-r--r--  1 root root 189 2008-06-05 17:28 modules.usbmap
lrwxrwxrwx  1 root root  23 2007-12-29 06:09 source -> /usr/src/linux-2.6.21.5/


T3slider 06-06-2008 09:39 PM

What does `uname -r` output? (It should be 2.6.21.5-smp)
I think your problem is here:
Code:

-rw-r--r--  1 root root  0 2008-06-05 17:28 modules.dep
Your modules.dep file is empty, and so no modules will load. You should run `depmod -a` as root to fix the problem. If that still doesn't fix the problem, you could try reinstalling the kernel-modules-smp-2.6.21.5_smp-i686-2 package (download it from your favourite mirror [or use the CD/DVD] and type `upgradepkg --reinstall kernel-modules-smp-2.6.21.5_smp-i686-2).

mylqname 06-06-2008 09:56 PM

Great, depmod -a fixed it!
I'm not sure how that file got blanked.
Thank you very much for the help.


All times are GMT -5. The time now is 02:28 PM.