Solved

Recovering Kernel Modules

Posted on 1998-06-27
5
300 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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