LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2007, 04:16 PM   #1
Cadmium
Member
 
Registered: May 2004
Posts: 31

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


Hi,

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?

Cd
 
Old 10-02-2007, 07:29 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,253

Rep: Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160Reputation: 4160
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
Cadmium
Member
 
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
Cd
 
  


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
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

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

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