You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't Remove Free Space partition in Disk Utility.

Problem description:

I accidentally delete the Bootcamp partition for windows10 and now I got a Free Space (45.7Gb) which can't be removed or allocated to my macOS Partition.


What I've tried:

  1. Run First Aid (as Disk Utility suggested when removing Free Space Partition is failed) but no good luck.
  2. Refer to Mistake deleting Bootcamp, now lost parti… - Apple Community, however, BC assistant says "Unable to read the Windows partition", and no remove option is available. (SIP and FileVault are turned off)



MacBook Pro with Touch Bar

Posted on Oct 9, 2021 5:40 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 14, 2021 4:45 AM

You have APFS corruption.


  • Boot into Local Recovery and temporarily disable SIP
  • Boot into Internet Recovery
  • Run diskutil list internal and find the APFS container. The disk should be named diskN with the number N
  • Run
    • diskutil unmountDisk diskN
    • fsck_apfs -s -o -y /dev/rdiskN
    • Check that the corruption has been corrected
  • Boot normally and run
    • diskutil apfs resizeContainer disk1 0g

Similar questions

5 replies
Question marked as Top-ranking reply

Oct 14, 2021 4:45 AM in response to Eric2i

You have APFS corruption.


  • Boot into Local Recovery and temporarily disable SIP
  • Boot into Internet Recovery
  • Run diskutil list internal and find the APFS container. The disk should be named diskN with the number N
  • Run
    • diskutil unmountDisk diskN
    • fsck_apfs -s -o -y /dev/rdiskN
    • Check that the corruption has been corrected
  • Boot normally and run
    • diskutil apfs resizeContainer disk1 0g

Oct 13, 2021 7:22 AM in response to Loner T

Thanks for your reply, My output is:

dev/disk0 (internal, physical):
  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   GUID_partition_scheme            *251.0 GB  disk0
  1:            EFI ⁨EFI⁩           314.6 MB  disk0s1
  2:         Apple_APFS ⁨Container disk1⁩     205.0 GB  disk0s2
          (free space)             45.7 GB  -

/dev/disk1 (synthesized):
  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   APFS Container Scheme -           +205.0 GB  disk1
                 Physical Store disk0s2
  1:        APFS Volume ⁨Macintosh HD - Data⁩   82.8 GB  disk1s1
  2:        APFS Volume ⁨Preboot⁩         822.8 MB  disk1s2
  3:        APFS Volume ⁨Recovery⁩        1.1 GB   disk1s3
  4:        APFS Volume ⁨VM⁩           6.1 GB   disk1s4
  5:        APFS Volume ⁨Macintosh HD⁩      15.5 GB  disk1s5
  6:       APFS Snapshot ⁨com.apple.os.update-...⁩ 15.5 GB  disk1s5s1


Oct 13, 2021 9:22 PM in response to Loner T

Started APFS operation
Aligning grow delta to 45,685,575,680 bytes and targeting a new physical store size of 250,685,575,168 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 250,684,547,072 bytes
Resizing APFS Container designated by APFS Container Reference disk1
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
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 the encryption key structures
Checking volume /dev/rdisk1s1
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the document ID tree
Checking the fsroot tree
error: extended attribute (id 49614545): invalid dstream.default_crypto_id (4) on unencrypted volume, given apfs_fs_flags (0x1)
error: extended attribute (id 49614545): invalid dstream
fsroot tree is invalid
The container /dev/disk0s2 could not be verified completely
Storage system check exit code is 8
Error: -69716: Storage system verify or repair failed

Can't Remove Free Space partition in Disk Utility.

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