Solved

Recovering Kernel Modules

Posted on 1998-06-27
5
297 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
5 Comments
 
LVL 2

Expert Comment

by:mlev
Comment Utility
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
Comment Utility
You forgot to make "make modules" and "make modules_install" after "make zImage"

0
 

Author Comment

by:radx2
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now