Can't remove bootcamp partition, disk utility error

Hi,


I have a very similar problem to the linked thread below.


Can't remove bootcamp partition (Error: -… - Apple Community


I ran disk utility to try removing the bootcamp partitionw and get the free space back. However, it keep on yielding error messages. I as able to follow the terminal command in the above linked thread, after executing "diskutil eraseVolume free free disk0s3", I was able to get the red (error?) disk0s3 off. I then execute "diskutil apfs ResizeContainer disk1 0g", it still yield the same message as the disk utility. Below is the full message of the terminal output.


Hopefully someone can help me get the free space merged into the main space. Thanks.




iMac 27″ 5K, macOS 12.5

Posted on Sep 7, 2022 7:37 PM

Reply
3 replies

Sep 7, 2022 7:38 PM in response to alexlu777

Alexs-iMac:~ Alex$ diskutil eraseVolume free free disk0s3

Started erase on disk0s3

Unmounting disk

Finished erase on disk0

Alexs-iMac:~ Alex$ diskutil apfs ResizeContainer disk1 0g

Started APFS operation

Aligning grow delta to 40,685,187,072 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 snapshot 1 of 12 (com.apple.TimeMachine.2022-09-07-165608.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

warning: snapshot fsroot / file key rolling / doc-id tree corruptions are not repaired; they'll go away once the snapshot is deleted

Checking snapshot 2 of 12 (com.apple.TimeMachine.2022-09-07-175610.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 3 of 12 (com.apple.TimeMachine.2022-09-07-185711.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 4 of 12 (com.apple.TimeMachine.2022-09-07-195727.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 5 of 12 (com.apple.TimeMachine.2022-09-07-205941.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 6 of 12 (com.apple.TimeMachine.2022-09-07-215951.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 7 of 12 (com.apple.TimeMachine.2022-09-07-230027.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 8 of 12 (com.apple.TimeMachine.2022-09-08-000028.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 9 of 12 (com.apple.TimeMachine.2022-09-08-010054.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 10 of 12 (com.apple.TimeMachine.2022-09-08-020543.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 11 of 12 (com.apple.TimeMachine.2022-09-08-082903.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

Checking snapshot 12 of 12 (com.apple.TimeMachine.2022-09-08-092912.local)

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id


Sep 7, 2022 7:39 PM in response to alexlu777

Checking the document ID tree

Checking the fsroot tree

error: doc-id tree: record exists for doc-id 1280, file-id 61799086 but no inode references this doc-id

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-E64B3CD15985B90FDC72FFBC9FFB352590E652026671C1695E4EA97D9050DD14)

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

warning: container keybag (29309633+1): UUID 07623697-F993-414C-943E-CF84F6CC6A50 of entry 0 (tag 3) does not reference any volume

Performing deferred repairs

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

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

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.

Can't remove bootcamp partition, disk utility error

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