Help - Search - Members - Calendar
Full Version: Kernel Panic While Booting With Kernel 2.6.5
Linuxhelp > Support > Technical Support
I compiled the new kernel linux-2.6.5,but when i want to boot the new
kernel is halting with this messge:
mountig root file system
mount error 19 mounting ex3
pivootroot:pivot_root(/sysroot,/sysroot,/initrd) failed:2
freeing unused kernel memory:124k freed
kernel panic:No init found.Try passing init=option to kernel
the grub menu.lst is as:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/hda10
# initrd /initrd-version.img
title Red Hat 9 (2.4.20-8)
root (hd0,4)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ devfs=mount
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1

title new linuxs
root (hd0,4)
kernel /vmlinuz-2.6 ro root=LABEL=/ devfs=mount
initrd /initrd-2.6.5.img
plz help me.
i moved this topic from tips/tricks section...bumping it to top
Did you create a new boot partition when you installed the 2.6 kernel? Anaconda seems to imply that you have a boot partition that you mount into the /boot directory and load from there. My guess is that grub isn't getting pointed to the right place for the boot partition.

Does you 2.4 kernel boot? If it does that might not be the problem. In this case go to your /boot folder and make sure that your new initrd-<kernel-verions> exactly matches your grub entry. That might be the problem. However, I am inclined to believe that its a problem with the mounting of the boot partitioin

Write back and tell me how your drive is set up and if you can or can't get into 2.4.
thanks for reply,there is /boot partation and the initrd.img of both the old and new kernels are in the /boot ,the grub entry for the new iamge is
exactly as is in the /boot 'initrd.2.6.5.img' it can boot with the old kernel
the problem is with the new kernel.
Ok, are you sure you got the kernel compiled correctly?

Next are you using anything like RAID that might need drivers compiled in order to get the system to boot?

Try changing your initrd /initrd-2.6.5.img line to initrd /boot/initrd-2.6.5.img
How did you create the initrd image for the new kernel?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.