LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-20-2006, 10:21 AM   #1
Daddyfix
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
Bad magic number in super-block while trying to open /dev/hda6


I can't seem to fix a partition on my HD.
When I try to mount it I get this error

Code:
[root@server ~]# mount /home
mount: wrong fs type, bad option, bad superblock on /dev/hda6,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[root@server ~]# dmesg | tail
 [<c04068bf>] do_IRQ+0x9e/0xbc
 =======================
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
VFS: Can't find ext3 filesystem on dev hda6.
VFS: Can't find ext3 filesystem on dev hda6.
VFS: Can't find an ext2 filesystem on dev hda6.
VFS: Can't find an ext2 filesystem on dev hda6.
VFS: Can't find ext3 filesystem on dev hda6.
VFS: Can't find ext3 filesystem on dev hda6.
I tried to fix it with

Code:
[root@server ~]# mke2fs -n /dev/hda6
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
3312960 inodes, 6622788 blocks
331139 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
203 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

[root@server ~]# e2fsck -f -b 32768 /dev/hda6
e2fsck 1.39 (29-May-2006)
e2fsck: Bad magic number in super-block while trying to open /dev/hda6

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>
Anything else I can try? I accidentally changed the partition extent start point but everything was fine until I rebooted.
 
Old 11-20-2006, 10:05 PM   #2
Daddyfix
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Ok.. I had a hell of a time bringing this partition back up.. It seems like there were 117 errors. For how long? Who knows.

Anyways, I hope this helps someone..
This is what I used to fix those errors and rewrite the partition, WITHOUT loosing data!

http www<dot>cgsecurity<dot>org<slash>wiki<slash>TestDisk

TestDisk is a powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting your Partition Table). Partition table recovery using TestDisk is really easy.

Last edited by Daddyfix; 11-20-2006 at 10:08 PM.
 
  


Reply

Tags
fedora 6, linux, partitioning, superblock


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??? Acej Linux - Newbie 4 10-07-2008 08:33 AM
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 - Hardware

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