3

I am trying to find the superblock with dumpe2fs command, but with this output there is no information about superblocks.

Ani
  • 31

1 Answers1

2

You can also find the superblock with

mkfs.ext4 -n /dev/sda
mkfs.ext2 -n /dev/sda

(pick ext4/ext2 if your system is ext4/ext2; REPLACE sda with your disk). From the manual:

-n Causes mke2fs to not actually create a filesystem, but display what it would do if it were to create a filesystem. This can be used to determine the location of the backup superblocks for a particular filesystem, so long as the mke2fs parameters that were passed when the filesystem was originally created are used again.

Repairing

fsck -b 11111 /dev/sda

where 11111 is the superblock, and sda the partition (REPLACE both with what you need).

Rinzwind
  • 309,379