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

    • Because of the EU (a good thing) newer android devices been getting 5 years worth of security patches. Except some Motorola which found the loop hole, and offer ZERO updates. In addition, Google for years have been making where it can patch some stuff by updating the core Google Play Store itself.  As echoed earlier,  you take the security risk in to your own hand beyond supported.
    • Win11Debloat 06.11.2026 by Razvan Serea Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly declutter and customize your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. The script also includes many features that system administrators and power users will enjoy. Such as a powerful command-line interface, support for Windows Audit mode and the option to make changes to other Windows users. All changes made by Win11Debloat can be easily reversed, and most removed apps can be restored via the Microsoft Store. A full guide on how to undo the changes is available here. Win11Debloat features: Below is an overview of the key features and functionality offered by Win11Debloat. Please refer to the wiki for more information about the default settings preset. Remove a wide variety of preinstalled apps. Click here for more info. Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. Disable tips, tricks, suggestions & ads across Windows. Disable Windows location services & app location access. Disable Find My Device location tracking. Disable 'Windows Spotlight' and tips & tricks on the lock screen. Disable 'Windows Spotlight' desktop background option. Disable ads, suggestions and the MSN news feed in Microsoft Edge. Hide Microsoft 365 ads on the Settings 'Home' page, or hide the 'Home' page entirely. Disable & remove Microsoft Copilot. Disable Windows Recall. Disable Click to Do, AI text & image analysis tool. Prevent AI service (WSAIFabricSvc) from starting automatically. Disable AI Features in Edge. Disable AI Features in Paint. Disable AI Features in Notepad. Disable the Drag Tray for sharing & moving files. Restore the old Windows 10 style context menu. Turn off Enhance Pointer Precision, also known as mouse acceleration. Disable the Sticky Keys keyboard shortcut. Disable Storage Sense automatic disk cleanup. Disable fast start-up to ensure a full shutdown. ...and more. Once you’ve downloaded the Win11Debloat file (Get.ps1), just follow these quick steps: Locate the Get.ps1 script file. Right-click the file and select Run with PowerShell from the context menu. If prompted by User Account Control (UAC), select Yes to grant the script the necessary administrative permissions. Win11Debloat 06.11.2026 fixes: Fix lock screen spotlight option being disabled when disabling the start recommended section by @Raphire in #619 Fix log message formatting by @Raphire Note The -RemoveCommApps and -RemoveW11Outlook command-line parameters for uninstalling a few specific apps have been removed with this release. If you previously relied on these parameters, please see this wiki page for alternative methods of removing these apps. Download: Win11Debloat 06.11.2026 | Open Source View: Win11Debloat Home Page | Screenshots 1| 2 Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Yes for me, I installed 'old calculator' (Windows 7 calculator) in its place since it is more useful to me. I think paint is the only one I left installed
  • Recent Achievements

    • Rookie
      restore went up a rank
      Rookie
    • Very Popular
      AndrewSteel earned a badge
      Very Popular
    • Veteran
      Taliseian went up a rank
      Veteran
    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      +Edouard
      162
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      ATLien_0
      83
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!