Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-02-2007, 04:16 PM   #1
Registered: May 2004
Posts: 31

Rep: Reputation: 15
Bad magic number in super-block


After a power failure, I can't mount one of my partitions anymore:

fsck.ext3 /dev/sdb1
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext3: Bad magic number in super-block while trying to open /dev/sdb1

The superblock could not be read or does not describe a correct ext2
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, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

I tried to give the suggested superblock (as well as some other guessed values) as parameter but I get the same error message. With dumpe2fs and tune2fs as well.

Anything I can try to mount the partition again?

Old 10-02-2007, 07:29 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,533

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Erk - instead of guesssing, use mkfs with the "-n" option. It'll tell you the actual superblock locations.
Then try a couple.

If all bad, reformat and restore might be your only option.
Old 10-03-2007, 01:50 AM   #3
Registered: May 2004
Posts: 31

Original Poster
Rep: Reputation: 15
For the records: I solved my problem. With fdisk -l I discovered that the partition I was trying to mount was a Windows partition. The weird thing is that /dev/sdb1 used to be a Linux partition. Thinking of it again, I had to pull apart my computer after the crash and I probably shuffled the disks around.
But in short, the partition I was looking for is now in /dev/sdc1 and updating the partition table solved it all.

Thanks & cheers


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
Bad magic number in super-block while trying to open /dev/hda6 Daddyfix Linux - Hardware 1 11-20-2006 10:05 PM
e2fsck: Bad magic number in super-block jamesdin Debian 3 04-25-2005 05:14 PM
Bad magic number in super-block kubokubik Linux - Newbie 4 01-26-2005 10:52 AM
Bad Magic Number joseph Linux - Software 1 01-05-2004 03:22 AM
Bad Magic Number? Thewyzewun Linux - General 17 10-19-2003 05:59 PM

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration