Originally Posted by
Primefalcon
I'd recommend giving testdisk a spin
Thanks for the reply. I'm running it now but don't know what to do exactly - I'm just running the default scan (which I think is actually searching for lost partitions). I'll scout around the menus for a way to fix an ext4 partition. Thanks for the suggestion
EDIT: do I want to do this?
Code:
To repair the filesystem using alternate superblock, run
>fsck.ext4 -p -b superblock -B blocksize device
I have no idea what a superblock is... wiki time!
[snip]
Edit 5: OK, now we're seeing some of that lovely corruption it seems.
Code:
ubuntu@ubuntu:~$ sudo fsck.ext4 -p -b 32768 -B 4096 /dev/sdb4
/dev/sdb4: One or more block group descriptor checksums are invalid. FIXED.
/dev/sdb4: Group descriptor 0 checksum is invalid.
/dev/sdb4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
ubuntu@ubuntu:~$
Unexpected considering all fsck scans I do come back with no errors. How can I force a complete filesystem check (ext4)?
Edit again: tried
Code:
sudo fsck -pvcf /dev/sdb4
, which came back with the exact same output as the above. It really hates this filesystem
Edit: Tried the same as above without -p, it's fixed the "Group descriptor checksums" up to 9871. Seems like they were all corrupted to 9871. Now checking for bad blocks.
Bookmarks