LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-12-2006, 12:53 PM   #1
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Rep: Reputation: 0
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?
 
Old 09-12-2006, 01:07 PM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
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.
 
Old 09-13-2006, 02:04 AM   #3
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 09-13-2006, 02:14 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
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)
 
Old 09-13-2006, 01:40 PM   #5
emf
LQ Newbie
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian/FC3
Posts: 14

Original Poster
Rep: Reputation: 0
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???
 
Old 09-14-2006, 03:32 AM   #6
vikashb
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
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
 
  


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
fc3: removing old kernel/stuff after yum update pcandpc Fedora 3 05-13-2006 07:05 AM
fc3:yum won't update - selinux conflict logo Linux - Software 2 09-18-2005 03:14 PM
FC3, 64-bit multilib, with many yum update conflicts sgl Fedora 2 06-04-2005 09:42 PM
FC3 KDE not loading after yum update aerlinn Fedora 1 03-20-2005 06:41 PM
Trying to update FC2 to FC3 using Yum, and getting error message Rockgod2099 Linux - Software 0 12-13-2004 03:22 PM


All times are GMT -5. The time now is 10:25 PM.

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