-   Linux - Kernel (
-   -   Newly compiled kernel won't boot (

nivantha 09-07-2006 04:51 AM

Newly compiled kernel won't boot

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

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?


Lenard 09-08-2006 06:34 AM

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;

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;

nivantha 09-08-2006 01:59 PM

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.


vikashb 09-14-2006 04:02 AM

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

Vikash Bhakta
Mweb Zimbabwe
Customer Support

All times are GMT -5. The time now is 06:57 PM.