LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-09-2007, 05:53 PM   #1
slayne678
LQ Newbie
 
Registered: Apr 2007
Location: Chelmsford Massachusetts, USA
Distribution: Debian 5.0 lenny
Posts: 10

Rep: Reputation: 0
problem with superblock recovery, e2fsck.


I was attempting to access the level editor in supertux when my system halted. I then re-booted and my filesystem got a little screwed up. so I ran e2fsck and got the following error:

The superblock could not be read or does not describe a correct ext2filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblockis corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

so duh, it doesnt appear as ext2 because I am running ext3 on Mandriva 2007.0. so how can I route it to ext3 if its even possible?
 
Old 04-09-2007, 06:18 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
ext3 is pretty much the same thing as ext2, only it has an added journal; you would use the same command for both file systems.
 
Old 04-09-2007, 06:20 PM   #3
slayne678
LQ Newbie
 
Registered: Apr 2007
Location: Chelmsford Massachusetts, USA
Distribution: Debian 5.0 lenny
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jay73
ext3 is pretty much the same thing as ext2, only it has an added journal; you would use the same command for both file systems.

added journal?
 
Old 04-09-2007, 06:37 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, a journal. That is an advanced technique for keeping track of any changes that were made to the file system, on purpose or by accident. It makes things easier (and faster) when you're trying to recover after a power failure or similar incidents.

Last edited by jay73; 04-09-2007 at 06:38 PM.
 
Old 04-09-2007, 06:39 PM   #5
slayne678
LQ Newbie
 
Registered: Apr 2007
Location: Chelmsford Massachusetts, USA
Distribution: Debian 5.0 lenny
Posts: 10

Original Poster
Rep: Reputation: 0
so how do i apply this journal or better yet how do I locate where it is to add it?
 
Old 04-09-2007, 06:53 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
No need to add a journal. ext3 already has one, by definition.

The real cause of your issue is a damaged superblock. A superblock, btw, is a place that stores information about the file system as a whole. When it gets damaged, the system can't any longer read from the file system so it produces the sort of error message that you received .

Such damage can be extremely tricky but quite often it is possible to recover by having the system read one of the backups of the superblock, which are located all over the file system at 8192 block intervals. That is the whole point of the suggestion made by the system:

e2fsck -b 8193 <device>

i.e. read the backup located 8192 blocks from the (presumably damaged) original superblock. In order to recover from the damage, you'll have to boot up and issue the that command when the system requests it, replacing <device> with the proper reference (e.g. /dev/hda1 if we're talking about the first partition on an IDE disc). If you prefer a command that targets ext3 more specifically, you could use

e3fsck -b 8193 <device>

but as I said, it doesn't make all that much of a difference.

If you had a liveCD, that would even be better. You would then boot off that cd and run the fsck command from there.
 
  


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
RAID 0 crash, I/O error, e2fsck cant find superblock kennedy01 Linux - General 3 12-27-2006 09:36 AM
Corrupt Superblock, e2fsck bootup problems. purelithium Mandriva 3 10-19-2005 11:39 PM
e2fsck startup problem abattoir Mandriva 2 09-25-2005 10:00 AM
e2fsck failed Corrupt superblock gasparov Linux - General 1 02-21-2005 08:16 AM
e2fsck superblock boot error dezert_fox Linux - Hardware 10 03-20-2004 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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