LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-19-2001, 11:08 AM   #1
LenkaNguyen
Member
 
Registered: Nov 2001
Location: Denver, Colorado
Posts: 37

Rep: Reputation: 15
Unhappy Fail to boot newly upgraded Kernel 2.4.4


Hi,


Recently I have bought the SuSE Linux 7.1 kernel 2.4 and installed it on a single, large drive. Everything works just fine. However, I have experienced difficulty to upgrade from the
Kernel 2.4 to the 2.4.4. Here were my steps:

logged in as a root user:
* After I have downloaded the kernel 2.4.4 from
Kernel.org, I then moved it to /usr/src then un-tar
it.

tar zxvf linux-2.4.4.tar.gz (it creates a directory

named linux in here containing the new kernel). I
moved this to a new directory the reflects the Linux
kernel version and set up a symlink named linux to
point to this new directory.

mv linux linux-2.4.4
ln -s linux-2.4.4 linux (has been corrected instead of ls -s linux-2.4.4 linux)

* in linux-2.4.4, I created a configuration to use for
the kernel compile

make menuconfig

*As a new user of Linux, so I leave the options
selected by dedault and simply go ahead and compile
the kernel.
*After saving my configuration, I then run a

make dep.

*In order to remove and old object files that may be
have been left over from a previous version, I then
run

make clean.

make modules

make modules_install

* to start the kernel compile, I executed

make bzImage

* I made a new lilo entry for the new kernel

pico /etc/lilo.conf

* I replaced

image = /vmlinuz
label = linux
root = /dev/hda1

with

image = /usr/src/linux/arch/i386/boot/bzImage
label = new
root = /dev/hda1

* I then saved the file then run /sbin/lilo

cd /sbin

lilo

Up to this point, there were no error messages so far.

* finally, I rebooted my machine and at the lilo prompt enter "new" to boot the new kernel. Here was the prolem. Another screen entered and a message appeared:

Loading new
uncompressing Linux... ok, booting the kernel

then it hung on me forever. Please help.

(please note: I can boot my system with old kernel version 2.4 smoothly but not the newly upgraded one).

I am very frustrated. Need help so badly.

Last edited by LenkaNguyen; 11-19-2001 at 04:42 PM.
 
Old 11-19-2001, 11:18 AM   #2
optiactive
LQ Newbie
 
Registered: Jun 2001
Posts: 1

Rep: Reputation: 0
Now, I'm guessing it's just a typo, but you said you typed:

ls -s linux-2.4.4 linux

And, you should have typed:

ln -s linux-2.4.4 linux

I've only recompiled my kernel once, so I'm not so sure about the rest of your procedure. But, for the most part, it looks okay to me.
 
Old 11-19-2001, 12:53 PM   #3
LenkaNguyen
Member
 
Registered: Nov 2001
Location: Denver, Colorado
Posts: 37

Original Poster
Rep: Reputation: 15
Fail to boot newly upgraded kernel 2.4.4

Thanks for your quick response. I had just fixed the command and started all steps over again from there, but problem booting the system still hung on me. Everything has stayed the same still. Anyone has gone through the same problem? Please help. I have been struggling to finish my project at work, but can not figure out how to fix it so far.

 
Old 11-19-2001, 01:23 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
why are you trying to get 2.4.4 working? if you're having troubles, just get the newest kernel, 2.4.14 and compile that...

to rescue your system, bot from your distro cd's and edit the lilo.conf that you messed up. then re run lilo. you'll need to copy the lilo file, and change all locations in the file, and the system will be mounted in a different place, eg /mnt/sysimage in redhats case.

you shouldn't ever just replace a kernel, always just ADD it as another option in lilo.conf and then when you're sure it works, remove the old one

Last edited by acid_kewpie; 11-19-2001 at 01:28 PM.
 
Old 11-19-2001, 02:28 PM   #5
LenkaNguyen
Member
 
Registered: Nov 2001
Location: Denver, Colorado
Posts: 37

Original Poster
Rep: Reputation: 15
Chris,

Thanks for your response. I do not have any problems to boot my old kernel vesion 2.4.0 at all. My system is working fine except for the newly upgraded kernel 2.4.4. The reason why I wanted to upgrade my kernel is because I need to install Oracle 9i which is certified on Suse 7.1, kernel 2.4.4.

Please help.

Lenka.
 
Old 11-19-2001, 03:46 PM   #6
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
two things you can try.



1.) move the kernel from /usr/src/linux/arch/i386/boot/bzImage to /bzImage (or /boot/bzImage if you prefer).



2.) also copy /usr/src/linux/System.map to /boot





Alex

P.S. btw, you may want to try doing make dep; make clean; make bzImage; make modules; make modules_install

i don't know if it makes much of a difference but if you are stuck then you could give it a go. (the semi colons tell bash to execute each of the commands one after the other. allows you to go watch a bit of tele while the computer does its thing!)

Last edited by webtoe; 11-19-2001 at 03:49 PM.
 
Old 11-19-2001, 04:25 PM   #7
LenkaNguyen
Member
 
Registered: Nov 2001
Location: Denver, Colorado
Posts: 37

Original Poster
Rep: Reputation: 15
Need Help badly.

Thanks for your response, Alex. I did give it a try twice but it did not work and make nothing different.

Lenka.
 
Old 11-19-2001, 05:16 PM   #8
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
maybe something wrong with your config?

i have no clue other than that.

my expertise is exhausted. try updating the kernel to a newer version. it should be backwards compatible with 2.4.4

There were security issues with pre 2.4.10 anyway (and since you want this for an Oracle database im assuming this is for a company where you want security)

Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly-Built Kernel Won't Boot, Old One Fails Kenji Miyamoto Slackware 6 05-27-2005 11:30 PM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 10:10 AM
Kernel 2.6.6 upgraded - fails to boot Eux Debian 3 06-30-2004 03:51 AM
HELP upgraded kernel to 2.6.0, can't boot fobius Linux - Software 6 02-02-2004 03:04 AM
uh-oh; boot problem in newly compiled 2.6.0 kernel with GRUB tombomb300 Linux - Newbie 10 01-28-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration