Solved

can't boot kernel

Posted on 2000-02-21
7
287 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
Technology Partners: 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!

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
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…
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…

717 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