Yes, I should have had backups and what I did was stupid. I couldn’t find threads regarding my situation and I was too afraid to try random tips found on other threads regarding corruption/unmountable partitions, to not make the situation worse.
Situation:
I shrinked an ext4 partition from my secondary HDD with KDE Partition Manager to make space, the partition was unmounted and it was mostly empty. The operation ended with a “failed check”. I then tried mounting the partition, but Dolphin simply gave this error: Error mounting /dev/sdc1 at /run/media/[USER]/d4840cc7-b60f-4fcf-a759-566b2e276a6e: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error
I ran fsck, which gave the following:
$ LANG=C sudo fsck /dev/sdc1
fsck from util-linux 2.36
e2fsck 1.45.6 (20-Mar-2020)
The filesystem size (according to the superblock) is 488378368 blocks
The physical size of the device is 435949568 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
So for some reason the superblock claims the partition to be the size it was before resizing it despite the partition now being smaller than that. I don’t know what that means nor where to continue in troubleshooting this.
What I’ve tried:
- I tried making KDE Partition Manager to “check and repair” the partition several times but it ended with the same error as above.
- I also tried following this advice, but it didn’t work (i didn’t test all of the superblocks, only 4-5).
How can I recover my data or troubleshoot this issue?