Superblock problem.


Recommended Posts

To make a long story short.

I have one ext2 drive with a corrupt superblock (trusted partition magic too much :angry:).

I have another ext2 drive with linux on, as well as a ntfs drive with Windows.

But I have some really important data on the corrupt drive.

fdisk -l

Disk /dev/hda: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1           4       32098+  de  Dell Utility
/dev/hda2   *           5       12497   100350022+   7  HPFS/NTFS
/dev/hda3           12498       14589    16803990    f  W95 Ext'd (LBA)
/dev/hda5           12498       13060     4522266   83  Linux
/dev/hda6           13061       14334    10233373+  83  Linux
/dev/hda7           14335       14398      514048+  82  Linux swap
/dev/hda8           14399       14589     1534176    b  W95 FAT32

mount /dev/hda6 /media/hda6 -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/hda6,
       or too many mounted file systems

e2fsck -b 8193 /dev/hda6
e2fsck 1.35 (28-Feb-2004)
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>

Please help! And...don't leave any sarcastic comments :whistle:.

Link to comment
https://www.neowin.net/forum/topic/285232-superblock-problem/
Share on other sites

You could try a mke2fs -S on that partition which will rebuild the superblock. This may be a bit dangerous. Or, you could do a mke2fs -n on the drive which will display what the program would do if it created a new filesystem, but it doesn't write anything to disk. This would tell you the most likely place that the superblock backups are stored (yes, there are multiple copies of the superblock on an ext2/3 partition). You can use this info to then do a e2fsck -b <location of superblock backup>

mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1281696 inodes, 2558343 blocks
127917 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16224 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

So...what do I do to restore a backup superblock now?

e2fsck -b 32768 /dev/hda6

e2fsck 1.35 (28-Feb-2004)

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>

When I run e2fsck -n /dev/hda6 gives me lots of errors, for example.

Inode 545 was part of the orphaned inode list. IGNORED.

Deleted inode 546 has zero dtime. Fix? no

Deleted inode 547 has zero dtime. Fix? no

Deleted inode 548 has zero dtime. Fix? no

Inode 549 has imagic flag set. Clear? no

Inode 550 is in use, but has dtime set. Fix? no

Inode 550 has imagic flag set. Clear? no

Inode 550 has compression flag set on filesystem without compression support. Clear? no

Inode 550 has INDEX_FL flag set but is not a directory.

Clear HTree index? no

Illegal block #0 (4261413117) in inode 597. IGNORED.

Illegal block #1 (16580671) in inode 597. IGNORED.

Illegal block #2 (4193792) in inode 597. IGNORED.

Illegal block #3 (4261413117) in inode 597. IGNORED.

Illegal block #4 (16580671) in inode 597. IGNORED.

Illegal block #5 (4193792) in inode 597. IGNORED.

Illegal block #6 (4261413117) in inode 597. IGNORED.

Illegal block #7 (16580671) in inode 597. IGNORED.

Illegal block #8 (4193792) in inode 597. IGNORED.

Illegal block #9 (4261413117) in inode 597. IGNORED.

Illegal block #10 (16580671) in inode 597. IGNORED.

If I run e2fsck on the selected device, will this fix my problem? This won't format or remove anything..right?

Please help, as I have really important data on the disk.

dumpe2fs to a text file give me the following:

Filesystem volume name: <none>

Last mounted on: <not available>

Filesystem UUID: d6700100-510d-450f-9936-2268e4685f49

Filesystem magic number: 0xEF53

Filesystem revision #: 1 (dynamic)

Filesystem features: filetype sparse_super

Default mount options: (none)

Filesystem state: clean with errors

Errors behavior: Continue

Filesystem OS type: Linux

Inode count: 1281696

Block count: 2558343

Reserved block count: 127917

Free blocks: 2518114

Free inodes: 1281696

First block: 0

Block size: 4096

Fragment size: 4096

Blocks per group: 32768

Fragments per group: 32768

Inodes per group: 16224

Inode blocks per group: 507

Filesystem created: Thu Feb 17 20:12:46 2005

Last mount time: n/a

Last write time: Thu Feb 17 20:12:46 2005

Mount count: 0

Maximum mount count: 30

Last checked: Thu Feb 17 20:12:46 2005

Check interval: 15552000 (6 months)

Next check after: Tue Aug 16 21:12:46 2005

Reserved blocks uid: 0 (user root)

Reserved blocks gid: 0 (group root)

First inode: 11

Inode size: 128

Default directory hash: tea

Directory Hash Seed: afff1a91-eb12-42fe-b094-98480e5e5b27

and then lots of numbers, if it would help, I will uplaod it somewhere. but the text-file is 10 mb.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I'm not aware of this issue, but to help the other guys.  What version of Android are you using? Did you try a different browser? To see if Edge is the issue here.
    • I agree when are you going to read this (really poor BTW) article? Here is a better article so you actually know what is going on and answers questions you had in other comments --> https://arstechnica.com/gadgets/2026/05/speed-boosting-low-latency-profile-is-one-of-the-improvements-coming-to-windows-11/ It is unclear if one will be able to disable the new profile at this point but I am not seeing any reason why one would.
    • I disagree; they come off very "bitchy" and "whiny". Make a great product and combine that with a great price (free) and people will come over to your side. Or build it and they will come as they say. Constantly trying to get attention by complaining all the time, will turn people off to your product.
    • It use to be a nightmare, with LibreOffice supporting a newer draft ODF standard by default, and Microsoft Office supporting the older non-draft standard. Now that they both support the same version of ODF, they should be interoperable.
    • Brave Browser 1.91.171 by Razvan Serea Brave Browser is a lightning-fast, secure web browser that stands out from the competition with its focus on privacy, security, and speed. With features like HTTPS Everywhere and built-in tracker blocking, Brave keeps your online activities safe from prying eyes. Brave is one of the safest browsers on the market today. It blocks third-party data storage. It protects from browser fingerprinting. And it does all this by default. Speed - Brave is built on Chromium, the same technology that powers Google Chrome, and is optimized for speed, providing a fast and responsive browsing experience. Brave Browser also features Brave Rewards, a system that rewards users with Basic Attention Tokens (BAT) for viewing opt-in ads. This innovative system provides an alternative revenue model for content creators and a way to support the Brave community. SlimBrave Neo takes all the good things about Brave and makes them even better by keeping everything clean, light, and privacy-focused. It removes the extra clutter, turns off features you might not need, and cuts down on anything that could slow you down or collect unnecessary data. Because it relies on simple settings and policies instead of modifying the browser itself, you still get full Brave compatibility—just in a smoother, lighter, and more privacy-friendly package. Brave Browser 1.91.171 changelog: General Fixed Cardano not being disabled on upgrade to Brave Origin. Upgraded Chromium to 149.0.7827.103. Origin Removed “Survey Panelist” setting from brave://settings/privacy. Fixed P3A and usage ping under brave://settings/privacy being displayed on first launch on Linux. Upgraded Chromium to 149.0.7827.103. Download: Brave Browser 64-bit | 1.2 MB (Freeware) Download: Brave Browser 32-bit View: Brave Homepage | Offline Installers | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
    • One Year In
      slackerzz earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      517
    2. 2
      PsYcHoKiLLa
      189
    3. 3
      +Edouard
      156
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!