LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-07-2006, 03:51 AM   #1
nivantha
LQ Newbie
 
Registered: Apr 2006
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
Newly compiled kernel won't boot


Hi,

I recently did my first kernel recompilation on an old 200Mhz box with Redhat 9. But I don't seem to be able to boot it up. It is giving the following error.


povotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc/failed:2
Freeing unused kernel memory: 116k freed
Kernel panic: No init found. Try passing init=option to kernel

My grub.conf file looks like thsi s

default=0
timeout=60
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.4.20-8-26aug2006) Matrix
root (hd0,0)
kernel /bzImage.matrix.26aug2006 ro root=/dev/hda1 init=3
initrd /initrd-2.4.20-8-26aug2006
~

The second enry of this referes to the new kernel. Any Ideas?

Nivantha.
 
Old 09-08-2006, 05:34 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
From the looks of the grub.conf file you did not compile the kernel correctly for the Red Hat family. The clue (bzImage);

kernel /bzImage.matrix.26aug2006 ro root=/dev/hda1 init=3
initrd /initrd-2.4.20-8-26aug2006

FYI: this init=3 is not correct a simple space followed by the number 3 works

With the Red Hat family the steps in order are(thinking back to RHL9);

make mrproper
make menuconfig
make bzImage
make modules
make modules_install
make install

Yes this differs from the Kernel Rebuild Guide a bit, but they are the proper steps to use. Please review;

http://www.redhat.com/docs/manuals/l...om-kernel.html


FYI: Red Hat quit supporting RHL9 well over two years ago. Fedora Legacy is ending any support on October 1, 2006 please consider this as basically a dead OS.

If nothing else please bring the system current, learn how to install and use apt and/or yum for this; http://www.fedoralegacy.org/
 
Old 09-08-2006, 12:59 PM   #3
nivantha
LQ Newbie
 
Registered: Apr 2006
Distribution: Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks Lenard it worked.

I was actually doing it according to the instructions given in a website titled

The Linux Kernel HOWTO
By : Al Dev (Alavoor Vasudevan) .

The only part I skipped from the instructions you've given was make install. I went through all the other steps. The copying of the kernel image was done manually as well as editing the grub.conf file. Something must have gone wrong there.

I'm quite aware that Redhat 9 is almost a dead OS. Since the hardware configuration in the machine I have is quite low (it doesn't even have enough RAM to run X desktop in RHL9) I was thinking of putting RHL9. I'm doing this for learning purposes. Even the kernel recompilation was done with the expectation of optimizing the kernel to the hardware I have in that machine.

Taking your advice into consideration I'll be thinking of bringing the system up to date.


Thanks
 
Old 09-14-2006, 03:02 AM   #4
vikashb
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
kernal panic in 7.3

Running a text based email / www server.. for a company on dial up...on and old ACER 333Mhz 32Mb box 4gigbyte HD with Redhat 7.3.
It has been running fine 2 years..Suddenly... I don't seem to be able to boot it up. It is giving the following error.



Loading jbd Module
Journaled Block Device loaded
Loading ext3 module
Mounting /proc filesystem
Crewating root device
Mounting root filesystem
ext3: No journal on filesystem on ide0(3,2)
Mount : error 22 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
Freeing unused kernel memory: 280 k freed
Kernel panic: No init found. Try passing init= option to kernel


server loaded grub boot

I use a rpm to load / compile server to our isp config

so am really a newbie not a real linux programmer

I need help to rescue server ..have seen similar error on new linux 9 load..too

Regards
Vikash Bhakta
Mweb Zimbabwe
Customer Support
vikash@mweb.co.zw
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newly Compiled Linux does not seem to Boot binarybob0001 Linux - Newbie 2 12-02-2004 07:05 PM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 09:10 AM
Newly compiled kernel behaves as if it was the old one? grayFalcon Linux - Software 4 06-03-2004 04:52 AM
uh-oh; boot problem in newly compiled 2.6.0 kernel with GRUB tombomb300 Linux - Newbie 10 01-28-2004 11:58 AM
Newly compiled 2.6-test11 Does not boot Xylon Slackware 3 12-26-2003 12:18 AM


All times are GMT -5. The time now is 10:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration