?
Solved

can't boot kernel

Posted on 2000-02-21
7
Medium Priority
?
288 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, left to enroll

777 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