fsroot root tree is invalid

Running First Aid on “Macintosh HD” (disk1s1)



NOTE: First Aid will temporarily lock the startup volume.



Verifying file system.

Volume could not be unmounted.

Using live mode.

Performing fsck_apfs -n -l -x /dev/rdisk1s1

Checking the container superblock.

Checking the EFI jumpstart record.

Checking the space manager.

Checking the space manager free queue trees.

Checking the object map.

Checking volume.

Checking the APFS volume superblock.

The volume Macintosh HD was formatted by hfs_convert (748.41.3) and last modified by apfs_kext (945.200.129).

Checking the object map.

Checking the snapshot metadata tree.

Checking the snapshot metadata.

Checking the extent ref tree.

Checking the fsroot tree.

error: btn: invalid btn_btree.bt_key_count (expected 3268553, actual 3268604)

fsroot tree is invalid.

The volume /dev/rdisk1s1 could not be verified completely.

File system check exit code is 0.

Restoring the original state found as mounted.



Installed Mojave 10.14 (upgrade from El Capitan) and now I have this fsroot tree is invalid. Can anyone shed some light on this ? Is this a serious problem or an issue known to Mojave upgrade ? I'm not sure what to do here. System seems to be working OK although my Safari is getting hung up if I don't close out after using. I ran utility disk first aid but it keeps coming back with the same error(s).


Thank You for any help.

MacBook Pro (13-inch, Late 2016, 2 TBT3), Mojave 10.14

Posted on Oct 14, 2018 11:37 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 20, 2018 9:23 PM

Hi I had the same problem. Following a method from a similar High Sierra question I solved mine (also "error: btn : invalid btn_tree.bt_key_count..."). Boot into Recovery with Command (⌘)-R, run Disk Utility, mount main drive, run First Aid on that drive. This did some repairs. Then a normal reboot, run First Aid again: error gone - there was a message about doing deferred repairs. Hope this helps for you too.

10 replies
Question marked as Top-ranking reply

Oct 20, 2018 9:23 PM in response to R_C100

Hi I had the same problem. Following a method from a similar High Sierra question I solved mine (also "error: btn : invalid btn_tree.bt_key_count..."). Boot into Recovery with Command (⌘)-R, run Disk Utility, mount main drive, run First Aid on that drive. This did some repairs. Then a normal reboot, run First Aid again: error gone - there was a message about doing deferred repairs. Hope this helps for you too.

Nov 12, 2018 12:21 PM in response to R_C100

HI Guys,

Not a noob (30+yrs Win,Mac); but haven't had any issues with any MacOS before now.

Running First Aid on “MyDriveName_3TB” (disk3s1)


Repairing file system.

Volume is already unmounted.

Performing fsck_apfs -y -x /dev/rdisk3s1

Checking the container superblock.

Checking the space manager.

Checking the space manager free queue trees.

Checking the object map.

Checking volume.

Checking the APFS volume superblock.

The volume MyDriveName_3TB was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext compiled @ Jun 21 201.

Checking the object map.

Checking the snapshot metadata tree.

Checking the snapshot metadata.

Checking the extent ref tree.

Checking the fsroot tree.

error: (oid 0x404) apfs_root: btn: _omap_lookup_obj(0x404, 0x0): No such file or directory


fsroot tree is invalid.

The volume /dev/rdisk3s1 could not be verified completely.


Operation successful.


Now I get that APFS creates a APFS Container, called in this case disk3


but then it won't even mount the drive that has been working fine for a couple of years.


The difference here is that when I plugged the Drive, a WD My Passport Ultra 3TB, external drive into the newly updated Mojave OS the drive disappeared from the desktop. Running Disk Utility, trying to remount the drive looks like its going to start but then doesn't mount.


I run a 10TB external G-Drive Pro without any errors or problems of mounting, but it uses Extended Journaling.


Even my IPOD Nano appears!


Anyone have this issue or has resolved it successfully?


Many thanks if you can shed some light.


Steve

Jan 7, 2019 5:13 AM in response to Theartofshred

I thought this had worked for me, but the problem resurfaced as soon as I exited single-user mode and ran first aid on the disk again. I'll try it again and just immediately reboot afterward. Hopefully some combination will knock things into place. I saw several warnings about extents, so maybe there are some phantom extents or something that keep messing everything up. I'll try to pay attention to the difference in expected vs. actual extents as well...if it's always the same, that might be a hint.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

fsroot root tree is invalid

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.