LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-12-2008, 07:27 AM   #1
wherewaterflows
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
switched off at plug, Kernel panic


WHen trying to start Linux I get this error and cannot get on Fedora core 6 at all. The error started after I accidently switched the computer off at the plug as it was just starting to shut down. Do you have any idea how I can solve this? I'm using an Ubuntu live cd at the moment.

ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: (BMDMA stat 0x20)
ata1.00: tag 0 cmd 0xc8 Emask 0x9 stat 0x51 err 0x40 (media error)
EXT3-fs: can't read superblock on 2nd try
mount: error mounting /dev/root on /sysroot as ext3: Invalid argument
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!
 
Old 03-12-2008, 12:32 PM   #2
wherewaterflows
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
anyone able to help me? thanks.
 
Old 03-12-2008, 12:39 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Load your Fedora installer CD in rescue mode and fsck the partitions? A list of partitions you should be able to get with 'fdisk -l'. Might also need a list of other superblocks per partition. Example for the first IDE partition: 'dumpe2fs /dev/hda1 | awk '$2 == "superblock" {print $4}''. BTW don't be the first one to tack on a post since it destroys the threads 0-reply status. BTW[1] the libsata errors remind me of crappy hardware SATA controllers. You're sure you didn't have any before the accident?
 
Old 03-18-2008, 03:48 PM   #4
wherewaterflows
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Ok thanks for that.
the dumpe2fs command didn't work, it said dumpe2fs command not found.

I have two partitions.

When I ran efsck
for the first partition i got
/boot:clean, 37/26104 files, 20325/104388 blocks

and for the second partition i got

Coudln't find ext2 superblock, trying backup blocks...
fsck.ext2: bad magic number in super-block while trying to open /dev/sda2

The superblock could not be read or does not describe a correct ext filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt.

After getting this I used this command

badblocks -sv /dev/sda2

and got

badblocks (read-only test)
192 192/ 156183930
193 193/ 156183930
194 194/ 156183930
195 195/ 156183930

done
pass completed, 4 bad blocks found.


Any advice now? is there any possible way of fixing them?
thanks a lot, adam
 
Old 03-19-2008, 05:33 AM   #5
wherewaterflows
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Please can somebody help, i'm completely unsure weither to format the drive and lose everything, or weither i should keep on trying? I'm not sure what to do and I don't understand why the dumpe2fs command wouldn't work.
 
  


Reply



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 puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM
RH8 kernel update lost sound and Moz plug-ins... freemanx Linux - Newbie 2 10-22-2003 02:09 AM
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

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

All times are GMT -5. The time now is 06:45 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