[Solved] fsck can't repair APFS volume
Just after upgrading to High Sierra for few days and running with APFS auto-conversion. Everything went OK, but after a few days my iMac got stuck after power outage and I can't use it. When checking the APFS volume with fsck, I got the following results (Disk Utility.app says the same what fsck does):
bash-3.2# fsck_apfs -d -l /dev/disk5
fletcher64_init:58: Selecting AVX2 implementation of fletcher64
Checking the container superblock.
Checking the EFI jumpstart record.
Checking the space manager.
Checking the object map.
Checking the APFS volume superblock.
warning: apfs_sb at apfs_fs_index (0): apfs_features has unrecognized features (2)
Checking the object map.
Checking the fsroot tree.
error: btn: key (2) compare error: 22
fsroot tree is invalid.
The volume /dev/disk5 could not be verified completely.
APFS is being developed as the replacement of HFS+, which addresses the shortcomings of HFS+ and includes new features to provide better support for all Apple products. But no file system can be immune for all potential damage or implementation bugs. When your APFS drive starts to fail, if Disk Utility doesn't get it done for you, you can try fsck to check the specified APFS containers/volumes and repair all detected inconsistencies.
However, there are times when fsck can't repair APFS volume. You might receive error messages like APFS object map is invalid or APFS fsroot tree is invalid. Have you experienced fsck APFS check error? How to solve if fsck fails to repair an APFS volume? Just keep reading.
What to do if fsck can't repair an APFS volume?
If something can't be fixed by fsck, then there really is no chance to repair the APFS volume. Like it or not, the most effective way is to reformat.
Back up now!
Before attempting anything, you should back up your disk contents at first. Because reformatting will wipe all data stored on the APFS volume. It's a good news that you have made a backup. But for people who haven't develop this good habit, there is no need to be desperate. iBoysoft Mac Data Recovery can help you to get all lost data back.
iBoysoft Mac Data Recovery is the best APFS data recovery software that can recover lost data from encrypted APFS volume, recover deleted/lost data from APFS volume, recover lost data from formatted APFS drive, recover lost data from unmountable APFS drive, recover lost data from inaccessible APFS drive, recover lost data from corrupted APFS drive, recover deleted/lost APFS volume, etc.
Moreover, iBoysoft Mac Data Recovery also performs efficient and reliable data recovery from drives formatted as other file system (such as HFS, HFS+, FAT32 and exFAT) on hard drive, SSD, fusion dirve, external hard drive, USB flash drive, SD card, memory card, etc. The program works well in different data loss situations. It is compatible with macOS Catalina 10.15/Mojave 10.14/High Sierra 10.13/Sierra 10.12 and Mac OS X 10.11/10.10/10.9/10.8/10.7.
Tutorial to recover lost data from APFS volume with iBoysoft Mac Data Recovery:
Step 1: Free download, install and launch iBoysoft Mac Data Recovery.
Step 2: Select the APFS volume and click "Next" to scan lost files on the it.
Step 3: Preview the searching results, choose files we need, and click "Recover" to get them back.
Step 4: Have a check to ensure we have got all lost files back.
Fix fsck APFS check error by reformatting
Step 1: Launch Disk Utility.
Step 2: Click the icon of the APFS volume on the left part of the window.
Step 3: Click the Erase on the top of the Disk Utility window.
Step 4: Complete related information (name, format, scheme, etc.), and then click Erase button.
Still have questions?