LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2007, 11:55 AM   #1
talpa_sai
LQ Newbie
 
Registered: Dec 2004
Location: Vijayawada
Distribution: Fedora core 4
Posts: 18

Rep: Reputation: 0
kernel panic


Dear friends,
I have a system whose configuration is as hereunder:
AMD Sempron processor 2800+ with 1 GB of RAM and two hard disks, one of
120 GB and the other of 320GB.
The partitions are as follows:

Device Boot Start End Blocks Id System
/dev/hda1 1 2432 19535008+ 83 Linux
/dev/hda2 2433 4864 19535040 83 Linux
/dev/hda3 * 4865 7296 19535040 c W95 FAT32 (LBA)
/dev/hda4 7297 14593 58613152+ 5 Extended
/dev/hda5 7297 7420 995998+ 82 Linux swap / Solaris
/dev/hda6 7421 9852 19535008+ b W95 FAT32
/dev/hda7 9853 12284 19535008+ b W95 FAT32
/dev/hda8 12285 14593 18547011 83 Linux

Disk /dev/hdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/hdc2 25497 38913 107772052+ 7 HPFS/NTFS

I have three operating systems in the partitions mentioned below:

/dev/hda1 RedHat Enterprise Linux 5
/dev/hda2 Fedora Core 7
/dev/hda3 Windoze XP

Today, while trying to boot into Fedora Core 7, the system could not boot and the following message was spit out.

mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
kernel panic - not syncing: Attempted to kill init!

The kernel version of Fedora Core 7 is 2.6.21-1.3194.fc7. Is there any way to set the system right and boot into Fedora Core 7 ? Thanks in advance.

Yours faithfully,

talpa_sai
 
Old 11-01-2007, 02:26 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Linux Mint 18
Posts: 7,809

Rep: Reputation: 294Reputation: 294Reputation: 294
I suggest that you boot into Red Hat, mount /dev/hda2 on a spare mountpoint and fix Fedora from within Red Hat. Be sure that any changes you make are to Fedora and not to the equivalent Red Hat files.

Check /dev/root. It should be a symbolic link to /dev/hda2.

Check /etc/fstab. It should contain an entry mounting /dev/hda2 as root.

Then check the /boot/grub/menu.lst file that grub is actually using when you boot. You may have a /boot/grub/menu.lst in both Red Hat and Fedora but grub only uses one of them when you boot. Check the active menu.lst to see if the root partition for Fedora is correctly specified as hd0,1.

-----------------
Steve Stites
 
Old 11-02-2007, 10:29 AM   #3
talpa_sai
LQ Newbie
 
Registered: Dec 2004
Location: Vijayawada
Distribution: Fedora core 4
Posts: 18

Original Poster
Rep: Reputation: 0
kernel panic

Dear jailbait,

Forgive me for addressing you without the prefix Mr./Miss/Mrs., as I don't
know whether you are a man or woman.

Further, your reply/suggestions proved infructuous. As you know, only active OS's, i.e. OS's that've booted will only have entries in the /dev
directory. Consequently, after mounting /dev/hda2 on /mnt/fedora, I
cd to /mnt/fedora/dev/ and I don't find any entries in /mnt/fedora/dev/.
As regards the entry in /etc/fstab, I did not understand what you meant by
"It should contain an entry mounting /dev/hda2 as root". Assuming that this /etc/fstab you talked about refers to /mnt/fedora/etc/fstab, there is no such entry. I request you to enlighten me as to how to make an entry in /mnt/fedora/etc/fstab "mounting /dev/hda2 as root".

Regarding entries in /boot/grub/menu.ist file, they're given hereunder.

title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/1 rhgb quiet crashkernel=128M@16M
initrd /boot/initrd-2.6.18-8.el5.img
title Fedora-base (2.6.21-1.3194.fc7)
root (hd0,1)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3194.fc7.img
title Win XP
rootnoverify (hd0,2)
chainloader +1

I hope they're correct and in order.

I also ran the command "fsck.ext3 -fv /dev/hda2 after ensuring that /dev/hda2 is unmounted. Still, there is no salvation for me with this problem. Please give your views/suggestions. I hope I am not troubling you.

Yours faithfully,

talpa_sai
 
Old 11-02-2007, 09:24 PM   #4
neelendhar
LQ Newbie
 
Registered: Feb 2007
Posts: 28

Rep: Reputation: 15
hi sai garu

Quote:
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
title Fedora-base (2.6.21-1.3194.fc7)
root (hd0,1)
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.21-1.3194.fc7.img

change the LABEL=/ to /dev/hda2

after mounting your fedora / partition into /mnt/fedora

u should find /mnt/fedora/etc/fstab
which looks like

Quote:
LABEL=/ / ext3 defaults 1 1
now change LABBEL=/ to /dev/hda2

and boot into it

if this is not fixed

see what is there in /boot/grub/device.map file in RHEL5 .....

Last edited by neelendhar; 11-02-2007 at 09:25 PM.
 
Old 11-03-2007, 01:18 AM   #5
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 182

Rep: Reputation: 21
Did your multi-OS setup use to allow you to boot into each individual OS before?
If so, what changed?
What OS did you previously boot into, before you tried FC 7?

The reason I ask is because I too had a multi-OS setup where I had a problem (awhile back) where I booted into XP and I had a problem that required a hard reset.
My problem was that the hard reset or XP (more likely) did something to the partition table that prevented me from booting into anything other than XP.
Unfortunately, I do not recall what I did to fix it (as it happened several years ago).
But it was a simple fix that did not require a re-install of anything!

I take it you tried booting off a linux rescue disc and running fsck?
How about qtparted (??) to see if there is anything funny about the partitions?
Tried "SystemRescueCd" at http://www.sysresccd.org/Main_Page, it has alot of utilities!
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM


All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration