Solved

can't boot kernel

Posted on 2000-02-21
7
286 Views
Last Modified: 2010-04-20
I have the Redhat 6.0 distribution.  It comes with kernel 2.2.5-15.

Several weeks ago, I downloaded and compiled 2.2.14.  That worked.

This weekend, I tried to recompile with several changes in the configuration.  But now, when I try to boot with the newly compiled kernel, it fails.  I use LILO, and it looks like:

LILO boot:  linux
loading linux.............

LILO boot:


or something like that.  It never says 'Uncompressing kernel blablabla...'  I am using the bzImage file just like I did the first time when it worked.

Any ideas?
0
Comment
Question by:red5
[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
  • 3
  • 3
7 Comments
 

Expert Comment

by:yngguru
ID: 2544012
Did you type 'make mrproper' in the kernel source tree before you recompiled?  This command cleans all the object files that the compiler links and forces the compiler to recompile the WHOLE source tree.  This will also insure that the code does not conflict with any old code left by your previous compilation of the kernel.  After you enter this command though, you will have to reconfigure your kernel.
0
 

Author Comment

by:red5
ID: 2546226
I used 'make clean'.  Maybe that's not enough.

Can I copy the .config file before I run this and then copy it back so I don't have to redo all the setup?
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2547519
if you do 'make xconfig', a set of buttons is to allow you to save config to a file or load config from a file. Then you can save the config to somewhere safe. I guess 'make menuconfig' will have some switches to allow you to do the same thing.

'make clean' would be enough.

/usr/src/linux/arch/i386/boot/bzImage should be used.
also, did you run lilo after put new kernel into place??



0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:red5
ID: 2548027
I did use /usr/src/linux/arch/i386/boot/bzImage

I did *not* run lilo, but I thought I didn't have to since no filenames changed.  (I just replaced the old vmlinuz with the new one)

Maybe I still need to run lilo.
0
 
LVL 3

Expert Comment

by:jyu_88
ID: 2548110
I think you need to.

also, it is always a good idea to keep the old trusted kernel in the LILO until you are really sure the new one is working for you. You know that:-)
0
 

Author Comment

by:red5
ID: 2548192
Well, I still have the original 2.2.5-15 kernel that came with linux (fortuneately).

I've learned a little about LILO in the last few hours and I definitely need to rerun LILO.

jyu_88 answered this question.  Please submit your comment to run lilo as an answer.

Thanks everyone.
0
 
LVL 3

Accepted Solution

by:
jyu_88 earned 100 total points
ID: 2551052
here is the answer again,
from LILO's user_guide.ps in /usr/doc/
"You have to rerun lilo everytime you change kernel or lilo.conf or anything mentioned in lilo.conf, you cannot run too many times of LILO:-)"
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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

733 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