LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2006, 10:26 AM   #1
n6rob
LQ Newbie
 
Registered: Sep 2004
Location: Nor Cal
Distribution: FC2
Posts: 3

Rep: Reputation: 0
Kernel panic not syncing


Greetings,

I have a FC4 2.6.15-1.1831 based system that will not boot. Here is a summary of the boot sequence:

> It finds the file system type (ext2fs) partition type 0x83
> Kernel /vmlinuz-2.6.15..... etc. etc.
> Initrd (then it finds the initrd-2.6.15-1.1831_fc4.img)
> It uncompresses linux and boots the kernel
> Loads RH nash version 4.2.15
> Finds "volGroup00" using lvm metadata., 2 logical volumes in "VolGroup00" now active

Then we get the problelms:
/bin/sh: ro: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

I booted the FC resuce CD. when I mount the image <chroot /mnt/sysimage>, I can navigate the file system on the HDD. I can see the file names of my data, etc.

fsck says the superblock of /hda2 has a bad magic number. So does debugfs. /hda1 is my boot and seems to be fine. I ran partimage from Knoppix and it reads the file system from /hda1 just fine, but calls hda2 an unknown file system. Hence, I have been unable to get an image of the fail partition (I was hoping to get an image before trying to extract the data with surgical tools). And yes, I've tried the alternate superblock numbers with no success.

So you are probably asking yourself, "what the hell was he doing that made this happen?". Brace yourself; I was attempting to unload what I thought were obsolete kernels using a package manager. Instead it unloaded all the dependencies before I realized what it was doing and I gave it a control-C. Somehow the file system has been damaged to a point that I can't access it anymore.

Anyone know how to get an image of a HDD without a valid superblock? Or how to restore a superblock without blanking the drive? Or maybe to restore my lost data?

Thanks in advance for any help.
 
Old 02-14-2006, 01:04 PM   #2
guysoft
Member
 
Registered: Jun 2004
Location: israel
Distribution: mandrake, MEPIS and menny live-cds
Posts: 71

Rep: Reputation: 16
i am not an expert on LVM, but i came across a similar error with a RAID array.
i think the problem is the initrd is lacking of the right LVM modules.

you should try and make a new initrd, maybe try with mkinitrd.yaid or mkinitramfs (rather than the original mkinitrd).
 
Old 02-14-2006, 03:56 PM   #3
n6rob
LQ Newbie
 
Registered: Sep 2004
Location: Nor Cal
Distribution: FC2
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by guysoft
i am not an expert on LVM, but i came across a similar error with a RAID array.
i think the problem is the initrd is lacking of the right LVM modules.

you should try and make a new initrd, maybe try with mkinitrd.yaid or mkinitramfs (rather than the original mkinitrd).
Thank you guysoft. I have not been able to find these tools in my rescue disk but I suffer from extreme newbie-ism.

I will explain my solution as I have implemented it so far.

I don't know why, but the FC rescue disk is able to create an image of the failed system which may be mounted by typing chroot /mnt/sysimage. My file system was navigatable when mounting this. Using a separate OS from a liveCD did not allow me to do this since the hda2 was not mountable (though maybe there was another way I was not familiar with).

I had a spare HDD. I installed it, added a file system with fdisk, and formatted it. I booted the FC rescue CD and copied (cp) my desired files from the /mnt/sysimage to the new, blank HDD.

Then I booted in Knoppix and burned the files from the new HDD (hdb1 in my case) to DVD (my set up has one CD-R/RW burner and a DVD-R/RW burner).

With data in-hand, I will now attempt to revive my otherwise damaged system. Most likely I will save myself the headache and just reinstall the OS.

What a lesson.
 
Old 02-15-2006, 06:13 AM   #4
guysoft
Member
 
Registered: Jun 2004
Location: israel
Distribution: mandrake, MEPIS and menny live-cds
Posts: 71

Rep: Reputation: 16
As long that you didn't loose data, I'm happy
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic-not syncing PowersurgeX Linux - Newbie 5 09-14-2006 02:27 PM
Kernel Panic (!) - not syncing Andknig Linux - General 2 09-14-2006 12:15 PM
Kernel panic - not syncing carboncopy Slackware 9 12-13-2005 05:53 AM
Kernel panic-not syncing MRDucks Mandriva 2 11-04-2005 06:57 PM
Kernel panic - not syncing darkarcon2015 Slackware 7 11-01-2005 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 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
Open Source Consulting | Domain Registration