wrong fs, bad operation, bad superblock

September 20, 2022



These old hard drives...

Superblock and codepage error when mounting.

You might find yourself in a situation, when you cannot mount a hard drive, seeing an error like the following:

mount: /mnt/test: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.

A possible approach for ext4 filesystems would be the following:

$ sudo mke2fs -n /dev/mapper/sda1
$ sudo e2fsck -b <block_number> /dev/mapper/sda1

I have done this a few times with old drives with corrupt superblocks, and it worked quite well.

Note: