How to fix/repair 'APFS snapshot metadata tree is invalid' error?

Posted by Juno to Mac Data Recovery on January 20th, 2018

I'm chasing down a couple of issues that have popped up on my 2015 MBP post High Sierra. Currently, the symptom is that my laptop will crash overnight when I close the lid instead of sleeping properly. I attempted to do a First Aid on my boot disk. This is a 500G SSD AFPS Encrypted volume. After First Aid checking finished, I got "APFS snapshot metadata tree is invalid" error message in details.

"APFS snapshot metadata tree is invalid" means the snapshot of some files have already been damaged or missing. Under that condition, file system can't perform as usual and we will get this error when checking with First Aid. This error can make our history files on the drive inaccessible and the APFS drive crashes.

Fix/repair 'APFS snapshot metadata tree is invalid' error with two steps

When we have useful files on the APFS drive, we are very possible to cause unnecessary data loss if we directly fix the APFS drive. So for the sake of our files, we should firstly perform data recovery from the drive which has "APFS snapshot metadata tree is invalid" error, and then fix it.

Step 1: Recover data from APFS drive whose snapshot metadata tree is invalid with iBoysoft Mac Data Recovery

iBoysoft Mac Data Recovery is a professional Mac data recovery software that can recover data from APFS drive whose snapshot metadata tree is invalid, recover deleted/lost files from APFS drive, recover data from formatted APFS hard drive, recover data from unmountable APFS drive, recover data from unreadable APFS drive, recover data from corrupted APFS drive, recover lost data from encrypted APFS volume, recover deleted/lost APFS partition, etc.

Besides, iBoysoft Mac Data Recovery can also recover data from FAT32 drives, exFAT drives, HFS+ drives, recover data from formatted, unmountable, inaccessible, corrupted hard drive, external hard drive, USB flash drive, SD card, pen drive, etc. on macOS 10.14/10.13/10.12 and 10.11/10.10/10.9/10.8/10.7.

Tutorial to recover data from APFS drive whose snapshot metadata tree is invalid with iBoysoft Mac Data Recovery

1. Launch iBoysoft Mac Data Recovery.

2. Select the APFS drive which has "APFS snapshot metadata tree is invalid" error and click "Next" to start scanning.

Recover data from APFS drive whose snapshot metadata tree is invalid

3. Preview scanning results, choose files we need, and click "Recover" to get them back.

4. Have a check to ensure we have got all lost data back.

Step 2: Fix "APFS snapshot metadata tree is invalid" error by reformatting

1. Launch Disk Utility.

2. Select the APFS drive which has "APFS snapshot metadata tree is invalid" error on the left part of the window.

3. Click Erase on the top of the window.

4. Complete related information (name, format, scheme), then click Erase.

This tutorial is not only helpful to fix the error "APFS snapshot metadata tree is invalid", it can also fix APFS drives errors like "fsroot tree is invalid", "checking APFS fsroot tree stuck", "invalid B-tree node size" and much more.

Still have questions?