Lost Space after Removing Windows using BootCamp

After removing Bootcamp from the Mac (MacBook Air, 2020), the space is showing up as "free space". Also tried to resize the disk to get the space back, and it showed an error.


Here's the output for "diskutil apfs resizeContainer disk1 0g":


"...

The volume /dev/rdisk1s6 appears to be OK


Verifying allocated space


Performing deferred repairs


error: doc-id tree record exists for doc-id 27697, but no inode references this doc-id


Skipped 2/2 repairs of this type in total


Deferred repairs skipped


The container /dev/disk0s2 could not be verified completely


Storage system check exit code is 8


Error: -69716: Storage system verify or repair failed

..."


MacBook Air (2018 – 2020)

Posted on Nov 4, 2023 3:47 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 4, 2023 8:45 PM

Did you use a non-BCA program to remove the partition? This commonly happens when that is attempted.


The easiest way to fix this, and any partition issues, is to back up your Mac with Time Machine, then erase it and restore from the backup.


  1. Back up your Mac with Time Machine - Apple Support
  2. Use Disk Utility to erase an Intel-based Mac - Apple Support
  3. Restore your Mac from a backup - Apple Support

Similar questions

2 replies
Question marked as Top-ranking reply

Nov 4, 2023 8:45 PM in response to RPUltra

Did you use a non-BCA program to remove the partition? This commonly happens when that is attempted.


The easiest way to fix this, and any partition issues, is to back up your Mac with Time Machine, then erase it and restore from the backup.


  1. Back up your Mac with Time Machine - Apple Support
  2. Use Disk Utility to erase an Intel-based Mac - Apple Support
  3. Restore your Mac from a backup - Apple Support

Nov 5, 2023 7:08 PM in response to RPUltra

Also, if the file system of the main partition has issues, then you probably won't be able to join the two partitions. You can try running First Aid while booted into Recovery Mode to see if the errors can be repaired, then try again to merge the partitions.


Unfortunately if the old Windows partition is showing as "Free Space", then it seems @__Bubba__ is correct and you did not use Bootcamp Assistant to remove Windows & remerge the partitions.....that is the only reliable method to do so. Otherwise, if it is showing as "Free Space", then you could try using one of the built-in macOS command line utilities (most likely "diskutil") to merge the Free Space into the macOS partition/Container. I've seen it done once, but I don't recall the command needed or the options to that command. The correct command was posted on this forum several years ago.


Before you do anything else, make sure to have a good backup since modifying partitions is extremely risky.

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.

Lost Space after Removing Windows using BootCamp

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