How to fix APFS fsroot tree is invalid error on macOS Big Sur/Catalina/Mojave/High Sierra?

Updated by Tim to Mac Data Recovery Tips on May 26th, 2021

When doing a first-aid check on my macOS APFS volume, I get the following message in the details:

"Checking the container superblock.", 0
"Checking the fusion superblock.", 0
"Checking the space manager.", 0
"Checking the object map.", 0
"Checking the snapshots.", 0
"Checking the APFS volume superblock.", 0
"Checking the fsroot tree.", 0
"Checking the extent ref tree.", 0
"Checking the snapshot metadata tree.", 0
"Verifying allocated space.", 0
"Checking the EFI jumpstart record.", 0
"Checking the Fusion data structures.", 0
"Checking the fragmented metadata trees.", 0
"Checking snapshot %ld of %ld.", 0
"Container superblock is invalid.", 0
"Fusion superblock is invalid.", 0
"Space manager is invalid.", 0
"Most recent checkpoint is invalid.", 0
"Object map is invalid.", 0
"Snapshot is invalid.", 0
"Volume superblock is invalid.", 0
"fsroot tree is invalid.", 0
"Extent ref tree is invalid.", 0
"Snapshot metadata tree is invalid.", 0
"Space Verification failed.", 0
"EFI jumpstart record is invalid.", 0
"Fusion data structures are invalid.", 0
"Encryption Rolling data structures are invalid.", 0
"Fragmented metadata trees are invalid.", 0

What's worse, you cannot access APFS volume and the important data stored it when encountering "fsroot tree is invalid" on macOS Big Sur, Catalina, Mojave or High Sierra, how to fix APFS volume fsroot tree invalid and recover data?

Method 1: Recover data from corrupted APFS drive

APFS data recovery requires us to find a APFS data recovery software, there are a few software which can support APFS data recovery in market due to technical difficulty, M3 Mac Data Recovery is such a APFS data recovery software which can recover deleted or lost files from APFS hard drive and external hard drive on macOS 11 Big Sur/10.15 Catalina/10.14 Mojave/10.13 High Sierra/10.12 Sierra and Mac OS X 10.11/10.10/10.9/10.8.

M3 Data Recovery for Mac can undelete files from APFS drive, recover lost data from unreadable APFS drive, recover lost data from corrupted APFS drive, recover lost data from deleted/lost APFS partition, recover lost data from formattted APFS drive, recover lost data from unmountable AFPS drive, etc.

Tutorial to recover lost data from corrupted APFS drive

1. Download and install M3 Data Recovery for Mac on your Mac computer.

2. Run M3 Data Recovery for Mac.

APFS data recovery software

3. Select the corrupted APFS drive.

4. This APFS Data Recovery software is scanning the lost data from corrupted APFS drive.

5. Select the found data and then click Recover to save them.

Method 2: Fix APFS fsroot tree invalid error by reformatting

After data recovery is successfully done, you can reformat this corrupted APFS volume to fix "fsroot tree is invalid" error on macOS Big Sur/Catalina/Mojave/High Sierra with the following solution:

1. Launch Disk Utility from Utilities.

2. Click the icon for your hard drive in the sidebar on the left.

3. Click the Erase tab along the top of the window and enter the related information.

Erase the drive

4. Click the Erase button.

5. Click the Erase button to fix "fsroot tree is invalid" error. After the format completes, the corrupted APFS drive will be working again.