troubleshooting Question

Corrupt ext4 - what are my choices ?

Avatar of Alexandre Takacs
Alexandre TakacsFlag for Switzerland asked on
Linux* File Recovery
8 Comments1 Solution18 ViewsLast Modified:
Hello

I have situation with a corrupt ext4 partition from which I’d like to salvage some files (no need to repair it but simply to access whatever is still accessible there).

I have tried

alex@ubuntu:/mnt$ sudo fsck.ext4 -v /dev/sdb1
e2fsck 1.45.7 (28-Jan-2021)
/dev/sdb1: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Run journal anyway<y>? yes
fsck.ext4: Input/output error while recovering journal of /dev/sdb1
fsck.ext4: unable to set superblock flags on /dev/sdb1




/dev/sdb1: ********** WARNING: Filesystem still has errors **********
mke2fs 1.45.7 (28-Jan-2021)
/dev/sdb1 contains a ext4 file system
    last mounted on / on Mon May 10 09:55:17 2021
Proceed anyway? (y,N) Y
Creating filesystem with 28282624 4k blocks and 7077888 inodes
Filesystem UUID: 8cd4b641-10f9-48d4-a40a-200c97cdb5a2
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872

Then fail with any of those SB, which seems strange:

alex@ubuntu:/mnt$ sudo e2fsck -f -b 23887872 /dev/sdb1
[sudo] password for alex:
e2fsck 1.45.7 (28-Jan-2021)
Superblock needs_recovery flag is clear, but journal has data.
Recovery flag not set in backup superblock, so running journal anyway.
/dev/sdb1: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Recovery flag not set in backup superblock, so running journal anyway.
e2fsck: Input/output error while recovering journal of /dev/sdb1
Superblock needs_recovery flag is clear, but journal has data.
Recovery flag not set in backup superblock, so running journal anyway.
e2fsck: unable to set superblock flags on /dev/sdb1


/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****


/dev/sdb1: ********** WARNING: Filesystem still has errors **********


Am I missing something or is this disk corrupt beyond any recovery ?


ASKER CERTIFIED SOLUTION
Alexandre Takacs
CTO

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros