LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel Panic after yum update in FC3 (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-panic-after-yum-update-in-fc3-482807/)

emf 09-12-2006 12:53 PM

Kernel Panic after yum update in FC3
 
Hello,

I was running kernel 2.6.9-1.667smp and did a yum update. Now it is trying to boot with kernel 2.6.12 but has Kernel Panic.

This is what I see when it boots:

Quote:

Booting 'Fedora Core (2.6.12-1.1381_FC3smp)'
root (hd0,2)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.12.1.1381_FC3smp ro root=LABEL=/ rhgb quiet
[Linux-bzImage, setup=0x1e00, size 0x180747]
initrd /initrd-2.6.12-1.1381_FC3smp.img
[Linux-initrd @ 0x37f8e000, 0x619ce bytes]

Uncompressing Linux... Ok, booting the kernel.
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Red Hat nash version 4.1.18.1 starting
mkrootdev: label / not found
mount: error 2 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
I am still able to load with the old kernel. This is my grub.conf file:

Quote:

# 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,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=4
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.12-1.1381_FC3smp)
root (hd0,2)
kernel /vmlinuz-2.6.12-1.1381_FC3smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1381_FC3smp.img
title Fedora Core (2.6.12-1.1381_FC3)
root (hd0,2)
kernel /vmlinuz-2.6.12-1.1381_FC3 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1381_FC3.img
title Fedora Core (2.6.9-1.667smp)
root (hd0,2)
kernel /vmlinuz-2.6.9-1.667smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667smp.img
title Fedora Core-up (2.6.9-1.667)
root (hd0,2)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows XP
rootnoverify (hd0,1)
chainloader +1
And here's my fstab file:

Quote:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda6 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
Where could the problem be? I am using a Dell Latitude d820, and don't have the option of changing to another Fedora due to work related reasons. Can you please help me?

odcheck 09-12-2006 01:07 PM

I had this kind of problem when I decided to use e2label...
Cause I missed to adjust grub and fstab as well.
So the files you posted must give us a hint.
Cause if you still can boot with the old kernel...?


Your fstab says LABEL=/ /
But the error says mkrootdev: label / not found
e2label could be a fix but you could change to LABEL=root / for e.g
but don't forget to change within grub and fdisk as well.

emf 09-13-2006 02:04 AM

I think I misunderstood your advice.

I changed fstab so that it says /root instead of /. I used e2label so that /dev/hda5 had /root as the label. I changed grub.conf as well to match the other two.

Is it necessary to run any command after changing grub.conf? Now it is too late anyway, I can't boot with my old kernel and the new one has the same error I commented on my first post.

What I get when trying to boot with the old kernel is:

Quote:

Checking root filesystem
fsck.ext2: Is a directory while trying to open / [Failed]

***An error occurred during the file system check
***Dropping you to a shell; the system will reboot
***when you leave the shell
I am downloading a knoppix live CD to be able to boot and return to the original settings. After I do this, what should I check?

odcheck 09-13-2006 02:14 AM

But you could of course boot to rescue
and setup grub again.
after its finished and you fianlly reach a prompt enter grub then
root (hd0,2)
find (hd0,2)/grub/stage1
setup (hd0)

emf 09-13-2006 01:40 PM

I followed your suggestion, loaded with Knoppix, ran grub with your commands.

Now it won't even start on Windows, it just freezes on a black screen that says GRUB Loading stage1.5**** (some characters I can't reproduce here, such as arrows).

It is getting worse with every change I make, what can I do next???

vikashb 09-14-2006 03:32 AM

I have a similar problem with kernal panic error Redhat 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. (I know OLD )
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
Desperate to rescue server ..pressured by my clients to fix their server....

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


All times are GMT -5. The time now is 12:15 AM.