Remove Free Space partition in Disk Utility

I deleted the Bootcamp partition of windows10 (pressed 'Restore' from BC assistant). It pops up an error somehow and now I got a Free Space (150 Gb) which can't be removed or allocated to my macOS Partition.


Here is my diskutil list log:


/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         350.0 GB   disk0s2
                    (free space)                         150.0 GB   -

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


And after some google searching, I also tried this command: 'diskutil apfs resizeContainer disk1 0g' but still it doesn't work and gives an error. Here it is:


Started APFS operation
Aligning grow delta to 1,49,96,21,62,176 bytes and targeting a new container size of 4,99,96,31,74,912 bytes
Determined the maximum size for the APFS Container to be 4,99,96,21,46,816 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 document ID tree
Checking the fsroot tree
error: dstream (id 1393733) does not have an associated dstream id object
error: alloced_size (4096) of dstream (id 1393733) does not match calculated size (0)
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s1 was found to be corrupt and needs to be repaired
Checking volume /dev/rdisk1s2
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s2 appears to be OK
Checking volume /dev/rdisk1s3
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s3 appears to be OK
Checking volume /dev/rdisk1s4
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s4 appears to be OK
Checking volume /dev/rdisk1s5
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1 (com.apple.os.update-F7EF6910F1273AC6B305AA05DF88E80DA1EA3E54F452C1B9122636B95C42A553)
Checking the fsroot tree
Checking the file extent tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s5 appears to be OK
Checking volume /dev/rdisk1s6
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the fsroot tree
Checking the extent ref tree
Verifying volume object map space
The volume /dev/rdisk1s6 appears to be OK
Verifying allocated space
Performing deferred repairs
error: dstream (id 1393733) does not have an associated dstream id object
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


Any ideas?


Thanks

MacBook Pro 13″, macOS 13.1

Posted on Jul 26, 2023 6:12 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 26, 2023 6:48 AM

sumit_balodi wrote:

I deleted the Bootcamp partition of windows10 (pressed 'Restore' from BC assistant). It pops up an error somehow and now I got a Free Space (150 Gb) which can't be removed or allocated to my macOS Partition.

Here is my diskutil list log:

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         350.0 GB   disk0s2
                    (free space)                         150.0 GB   -

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


And after some google searching, I also tried this command: 'diskutil apfs resizeContainer disk1 0g' but still it doesn't work and gives an error. Here it is:


Correct, the manipulation of APFS is woefully lacking in the execution...



After removing Bootcamp...


To regain all your storage the way forward is to erase/reformat/initialize the 'parent' drive as new, reinstall the macOS and restore your user data from backup.


This would be from Internet Recovery or Bootable USBinstaller.

(You can not reformat the Drive if you are booted to that Drive.)


Boot to Internet Recovery—

use the DiskUtility.app>View>Show All Devices parent drive is the top most ( not the Volume level, not the Container level.)


Intel-based Mac use Option-Command-R or

Shift-Option-Command-R to start up from macOS Recovery over the internet.


 macOS Recovery installs different versions of macOS, depending on the key combination you use. 



How to reinstall macOS - Apple Support


restore items backed up with Time Machine

Restore items backed up with Time Machine on Mac - Apple Support



Similar questions

3 replies
Question marked as Top-ranking reply

Jul 26, 2023 6:48 AM in response to sumit_balodi

sumit_balodi wrote:

I deleted the Bootcamp partition of windows10 (pressed 'Restore' from BC assistant). It pops up an error somehow and now I got a Free Space (150 Gb) which can't be removed or allocated to my macOS Partition.

Here is my diskutil list log:

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         350.0 GB   disk0s2
                    (free space)                         150.0 GB   -

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


And after some google searching, I also tried this command: 'diskutil apfs resizeContainer disk1 0g' but still it doesn't work and gives an error. Here it is:


Correct, the manipulation of APFS is woefully lacking in the execution...



After removing Bootcamp...


To regain all your storage the way forward is to erase/reformat/initialize the 'parent' drive as new, reinstall the macOS and restore your user data from backup.


This would be from Internet Recovery or Bootable USBinstaller.

(You can not reformat the Drive if you are booted to that Drive.)


Boot to Internet Recovery—

use the DiskUtility.app>View>Show All Devices parent drive is the top most ( not the Volume level, not the Container level.)


Intel-based Mac use Option-Command-R or

Shift-Option-Command-R to start up from macOS Recovery over the internet.


 macOS Recovery installs different versions of macOS, depending on the key combination you use. 



How to reinstall macOS - Apple Support


restore items backed up with Time Machine

Restore items backed up with Time Machine on Mac - Apple Support



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.

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.