Cant read superblock while mount disk in linux

22. maijs, 2022

I have mechanical disk which runs 24/7. This night something happend in electricity grid after that my pc wont boot. Boot disk which is ssd and storage disk both where somehow damaged.

I tried to mount hdd and got error: mount /dev/sda1 can’t read superblock

Its scary because I dont know if it can be fixed or is it toast

Found one way to try and fix it

Solution was found here http://erikimh.com/linux-recover-corrupted-partition-from-a-bad-superblock/

Bash
dumpe2fs /dev/sda1 | grep superblock

Output would be something like this

Bash
Primary superblock at 0, Group descriptors at 1-6
Backup superblock at 32768, Group descriptors at 32769-32774
Backup superblock at 98304, Group descriptors at 98305-98310
...

Now you can try to fix it with this command

Bash
fsck -b 32768 /dev/sda1

It took a while and I was lucky and disk was repared and I was able to mount disk