Solved

Recovering Kernel Modules

Posted on 1998-06-27
5
299 Views
Last Modified: 2013-12-15
I am running Caldera OpenLinux 1.2 (kernel 2.0.33) and I wanted to make some changes in the kernel configuration.  I did a make config, make dep, and make clean as advised.  Then I did a make zImage and make zLilo.  I then booted the new kernel, and everything was fine, except I had NO kernel modules loaded whatsoever.  This is a problem.  I figured I could possibly restore everything by booting back to the old kernel.  Unfortunately, when I did the make zLilo, that replaced my old boot image.  Is there any way I can get my modules back without individually reloading each one (I'd have to know all the parameters, which I don't!)?  I tried reading Caldera's docs, but they were mostle tech babble that I didn't understand.  Please help!  Thanks.
0
Comment
Question by:radx2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:mlev
ID: 1628122
Once it happened to me because "depmod -a" at boot time failed.
Try running "depmod -a" to see if that's your case. There may be a missing soft link somewhere in /lib/modules or something.
Hmm, now that I reread your question, did you actually do
"make modules" and "make modules_install"? That might help.
0
 
LVL 10

Expert Comment

by:rbr
ID: 1628123
You forgot to make "make modules" and "make modules_install" after "make zImage"

0
 

Author Comment

by:radx2
ID: 1628124
hmm...I did not do a make modules and make modules_install.  So I tried that.  And then Linux crashed when it did the partition check on booting.  So I restored an older copy of the linux boot image and redid the whole process, including a make modules and make modules_install however I STILL don't have any modules.  When I do a depmod -a, I get unresolved symbols in modules that were created when the make modules and make modules_install were performed.  What can I do??
0
 
LVL 3

Accepted Solution

by:
marcelofr earned 60 total points
ID: 1628125
You should use modules built for the kernel you are using... It's extrange that it failed with th partition check... anyway you should:

remove bad modules [rm /lib/modules/kernel_version/]
reintall original version
depmod -a shouldn't complain...

but MOST IMPORTANT:

make sure you are running kerneld !!!

killall -v -0 kerneld

because it is in charge of the auto load of modules...

Good Luck..

-- Marcelo
0
 

Expert Comment

by:lianne
ID: 1628126
Consult your directory where are sources of the kernel (in RedHat /usr/src/linux).
Then search modules object (ex. drivers/char/*.o).
If you cannot find them, there is a problem in compiling modules.
However try to consult the right makefile for modules.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question