Discussion:
kernel panic after a kernel yum update
(too old to reply)
j***@hotmail.com
2009-04-30 23:27:26 UTC
Permalink
hello group, I have a centos server 4.7 running on init=3

this box has(had) 2.6.9-78.0.8.EL installed, when I tried to upgrade first
to 2.6.9-78.0.13.EL and later to 2.6.9-78.0.17.EL I always get
"Kernel panic: No init found. Try passing init=option" on reboot. I have
searched but not found why yet. This is the only error displayed.

Can someone tell me at least where else to look, please, I have gone from
reinstalling grub, recreating MBR (no dual boot here so I think I
did not need it) and recreating initrd.img. all failed to address the issue,
somehow the image gets corrupted. I ended up making a copy of
2.6.9-78.0.8.EL.img and renamed it 2.6.9-78.0.17.EL.copy-of-8.img

The system now boots and correctly displays uname -r as 2.6.9-78.0.17.EL but
I consider this a temporary solution. I am afraid when next kernel package
is released I will see myself in the same situation. Will the present fix
create bigger problems later on?

could this be a possible reason?
I removed all older kernel packages after the upgrade to 2.6.9-78.0.8.EL. At
the time there were no errors or signs of something wrong until I tried to
upgrade kernel as explained above to 13.EL.

I have provided below info I think you may need to help me. thank you for
your time.

grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-78.0.17.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.17.EL ro root=/dev/VolGroup00/LogVol00 rhgb
irqfixup
initrd /initrd-2.6.9-78.0.17.EL.copy-of-8.img
title CentOS (2.6.9-78.0.8.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.8.EL ro root=/dev/VolGroup00/LogVol00 rhgb
irqfixup quiet
initrd /initrd-2.6.9-78.0.8.EL.img

lvm version
LVM version: 2.02.37-RHEL4 (2008-06-06)
Library version: 1.02.25-RHEL4 (2008-04-11)
Driver version: 4.5.5


fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM


df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
ext3 73G 18G 53G 25% /
/dev/hda1 ext3 99M 20M 75M 21% /boot
none tmpfs 94M 0 94M 0% /dev/shm
jp464
2009-05-09 13:56:59 UTC
Permalink
Post by j***@hotmail.com
hello group, I have a centos server 4.7 running on init=3
this box has(had) 2.6.9-78.0.8.EL installed, when I tried to upgrade first
to 2.6.9-78.0.13.EL and later to 2.6.9-78.0.17.EL I always get
"Kernel panic: No init found. Try passing init=option" on reboot. I have
searched but not found why yet. This is the only error displayed.
Can someone tell me at least where else to look, please, I have gone from
reinstalling grub, recreating MBR (no dual boot here so I think I
did not need it) and recreating initrd.img. all failed to address the issue,
somehow the image gets corrupted. I ended up making a copy of
2.6.9-78.0.8.EL.img and renamed it 2.6.9-78.0.17.EL.copy-of-8.img
The system now boots and correctly displays uname -r as 2.6.9-78.0.17.EL but
I consider this a temporary solution. I am afraid when next kernel package
is released I will see myself in the same situation. Will the present fix
create bigger problems later on?
could this be a possible reason?
I removed all older kernel packages after the upgrade to 2.6.9-78.0.8.EL. At
the time there were no errors or signs of something wrong until I tried to
upgrade kernel as explained above to 13.EL.
I have provided below info I think you may need to help me. thank you for
your time.
grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-78.0.17.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.17.EL ro root=/dev/VolGroup00/LogVol00 rhgb
irqfixup
initrd /initrd-2.6.9-78.0.17.EL.copy-of-8.img
title CentOS (2.6.9-78.0.8.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.8.EL ro root=/dev/VolGroup00/LogVol00 rhgb
irqfixup quiet
initrd /initrd-2.6.9-78.0.8.EL.img
lvm version
LVM version: 2.02.37-RHEL4 (2008-06-06)
Library version: 1.02.25-RHEL4 (2008-04-11)
Driver version: 4.5.5
fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM
df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
ext3 73G 18G 53G 25% /
/dev/hda1 ext3 99M 20M 75M 21% /boot
none tmpfs 94M 0 94M 0% /dev/shm
Things I have done since posting:

I renamed /etc/modprobe.conf and /etc/sysconfig/hwconf and ran kudzu: it
recreated both files.

modprobe.conf
alias eth0 r8169
alias eth1 hisax
alias snd-card-0 snd-ymfpci
options snd-card-0 index=0
install snd-ymfpci /sbin/modprobe --ignore-install snd-ymfpci &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-ymfpci { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; };
/sbin/modprobe -r --ignore-remove snd-ymfpci
alias usb-controller uhci-hcd
alias scsi_hostadapter ata_piix

Kernel 2.6.9-78.0.22.EL has just been released and can test
again a kernel upgrade:

I upgraded with yum update, kernel and source were downloaded and installed,
upon reboot I received the same error again.

I then copied /initrd-2.6.9-78.0.8.EL.img and named it
/initrd-2.6.9-78.0.22.EL.img so I could reboot with old initrd.img (it
worked in the
past)
I created a new initrd: I ran /sbin/mkinitrd
/boot/initrd-2.6.9-78.0.22.EL.new.img 2.6.9-78.0.22.EL
and added a new line in grub.conf that would call
/initrd-2.6.9-78.0.22.EL.new.img

I received kernel panic again.

could it be /sbin/mkinitrd? I"ll reinstall the rpm. If that does not solve
it,
I"ll keep searching and will post results. thank you.

Loading...