LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-19-2006, 05:11 PM   #1
sfish777
LQ Newbie
 
Registered: Jul 2006
Distribution: Redhat 7.2 - 2.4.7-10
Posts: 9

Rep: Reputation: 0
Kernel Panic - please help


Hi I am experiencing a Kernel panic problem. Please help...

It is Redhat 7.2 Linux with kernel 2.4.7-10.

First I got a Journal Superblock error and mount error 22, so I used Linux Rescue in installation CD, ran e2fsck /dev/hda2, fixed and cleared all errors until it was clean.

After I reboot it, I have another error:
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed: 2
Freeing unused kernel memory: 220K freed
Kernel panic Kernal Panic: No init found. Try passing init= option to kernel.

Here is the file system (fdisk -l)
/dev/hda1 * 1 7 52888+ 83 Linux
/dev/hda2 8 742 5556600 83 Linux
/dev/hda3 743 776 257040 82 Linux swap

What should I do next?

Thanks.
 
Old 07-19-2006, 07:34 PM   #2
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
Are you sure there's a /dev/hda2 and a /dev/hda3? Doesn't seem right.
 
Old 07-20-2006, 05:13 AM   #3
tarvinder singh
LQ Newbie
 
Registered: Jun 2005
Location: india
Posts: 2

Rep: Reputation: 0
Do these steps to sort out your problem first check /etc/grub.conf file
to check patitions are in right or matching place and second check /etc/inittab file
to check booting runlevel of the system.
 
Old 07-20-2006, 05:14 AM   #4
tarvinder singh
LQ Newbie
 
Registered: Jun 2005
Location: india
Posts: 2

Rep: Reputation: 0
kernel panic

Do these steps to sort out your problem first check /etc/grub.conf file
to check patitions are in right or matching place and second check /etc/inittab file
to check booting runlevel of the system.
 
Old 07-20-2006, 09:47 AM   #5
sfish777
LQ Newbie
 
Registered: Jul 2006
Distribution: Redhat 7.2 - 2.4.7-10
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tarvinder singh
Do these steps to sort out your problem first check /etc/grub.conf file
to check patitions are in right or matching place and second check /etc/inittab file
to check booting runlevel of the system.
I tried to mount /dev/hda1 and /dev/hda2 after I ran linux rescue. And found out there is only one folder, lost+found, under hda2. I think that is the result of e2fsck.

What should I do? Reinstall linux? If so, How do I preserve the existing data?
 
Old 07-20-2006, 09:50 AM   #6
sfish777
LQ Newbie
 
Registered: Jul 2006
Distribution: Redhat 7.2 - 2.4.7-10
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Glennzo
Are you sure there's a /dev/hda2 and a /dev/hda3? Doesn't seem right.
Yes, I am pretty sure. I ran fdisk -l /dev/hda under linux rescue and got the table. I also mounted hda1 and hda2 and made sure they are boot and root directories.
 
Old 07-20-2006, 10:46 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
It looks like your root partition got pretty much hosed so you have limited options of which reinstalling Linux is the easiest one. But a couple notes:

(1) RH7.2 is ancient history. You really should use an up to date distro because of bug fixes and the like. If you must use RH7 at least apply all of the RH and Fedora Legacy patches.

(2) The real question is why the problem happened in the first place. Did your system shut down uncleanly? Is it possible your hard drive is on the way out?
 
Old 07-21-2006, 09:34 AM   #8
sfish777
LQ Newbie
 
Registered: Jul 2006
Distribution: Redhat 7.2 - 2.4.7-10
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by btmiller
It looks like your root partition got pretty much hosed so you have limited options of which reinstalling Linux is the easiest one. But a couple notes:

(1) RH7.2 is ancient history. You really should use an up to date distro because of bug fixes and the like. If you must use RH7 at least apply all of the RH and Fedora Legacy patches.

(2) The real question is why the problem happened in the first place. Did your system shut down uncleanly? Is it possible your hard drive is on the way out?
It looks like I might have to use RH7.2 for quite a while before I upgrade it. I will try to apply patches.

I did recall an unclean shutdown before this accident.

If reinstalling Linux is my only option, my concern would be how I can reinstall Linux while preserving existing data, which are all in the folder of lost+found?

Thanks.
 
  


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 01:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 05:13 AM.

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