Solved

can't boot kernel

Posted on 2000-02-21
7
282 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
  • 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
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.

760 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

21 Experts available now in Live!

Get 1:1 Help Now