LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-17-2003, 12:03 PM   #1
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
Kernel Panic


I dual boot with Windows XP pro, and things were running fine, but something happened when I tried to reboot into linux. I had been using it for like a week and I do not know what happened, but I get a kernel panic saying that it can't find the init. I was told it's because I have Partition magic on my system, but I havent used it since my install. How can I fix this panic without reinstalling, and I have a knoppix cd so i think I should be able to mount the partition in there to make any changes (/boot/grub.conf)
 
Old 11-18-2003, 09:58 AM   #2
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
You don't need Knoppix for that. The first Fedora Core CD contains a very helpful "rescue" mode option which you can use to boot into your system and repair it. What it is necessary to repair it depends on the level of damage and your familiarity with Linux in general. You didn't quote the error message. Reinstalling GRUB could be enough. Checking the root partition for damaged packages could find damage. A missing /initrd directory could be the culprit, and many other reasons. Most of them are easy to fix.
 
Old 11-19-2003, 12:17 AM   #3
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Original Poster
Rep: Reputation: 30
kernel panic: could not load the init

something along those lines. I have tried the rescue cd's before, and they really have not gotten me too far. i'd appreciate some help and a better understanding of why they happen and how to prevent them.
 
Old 11-19-2003, 06:11 AM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
Quote:
Originally posted by wldkos
[B]kernel panic: could not load the init

something along those lines.
That doesn't help, because it's not the original error message. The term "init" has several meanings.

Quote:
I have tried the rescue cd's before, and they really have not gotten me too far.
That is not enough information and hence doesn't help either.

You need to understand that the rescue mode provides an independent working system which you can boot into to get a working set of utilities. Certainly enough tools to examine and mount your partitions or re-install GRUB. One of the optional features of the rescue mode is to search for your installed system and "chroot" into it. Whether the rescue mode is of good use depends on how you use it.

Quote:
i'd appreciate some help and a better understanding of why they happen and how to prevent them.
Wo is "they"?
 
Old 11-19-2003, 07:03 AM   #5
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Most probably the kernel couldn't find the root partition, hence the error couldn't find init etc.. check your grub.conf and fix the root directory.

Here is mine:
..
splashimage=(hd1,7)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd1,7)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
..

The root partition should be whatever the number (in sequence, not literally the device number itself) .. and for my example above, I've linux in my 2nd HD in the 7th partition.

Last edited by wiraone; 11-19-2003 at 07:04 AM.
 
Old 11-20-2003, 08:49 PM   #6
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Original Poster
Rep: Reputation: 30
MKrootdev: label / not found
Mounting Root Filesystem
Mount : Error 2 mounting Ext3
Pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed 2
Umount : /initrd/proc failed :2
Kernel panic: No init found: Try passing init= option to kernel
 
Old 11-20-2003, 09:14 PM   #7
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
Quote:
MKrootdev: label / not found
This is the error, the rest is a result of this error as it doesn't find your root partition. To fix it, boot into rescue mode (or knoppix, whatever you're familiar with). Examine your partition table to find out which one is the root partition. E.g with

parted /dev/hda print

assuming that /dev/hda is your primary IDE hard disk drive. Substitute /dev/hdaX in

e2label /dev/hdaX /

with your partition device to re-create the missing partition label on your root partition. They try a reboot.
 
Old 11-21-2003, 12:07 PM   #8
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by misc
This is the error, the rest is a result of this error as it doesn't find your root partition. To fix it, boot into rescue mode (or knoppix, whatever you're familiar with). Examine your partition table to find out which one is the root partition. E.g with

parted /dev/hda print

assuming that /dev/hda is your primary IDE hard disk drive. Substitute /dev/hdaX in

e2label /dev/hdaX /

with your partition device to re-create the missing partition label on your root partition. They try a reboot.
e2label is the program I would use to do that? I have never heard of that one.

I will try this when I get home, thanks.
 
Old 11-21-2003, 12:08 PM   #9
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Original Poster
Rep: Reputation: 30
Quote:
Who is "they"? [/B]
I was referring to kernel panics, hence the topic of this thread, meaning I should not have to explain what "they" are since it is the whole idea of this thread.
 
  


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 05:35 AM.

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