I recently ran Boot Camp Assistant to remove the Windows partition from my 2017 MacBook Pro, but during the partitioning step I quit Boot Camp Assistant. After restarting the computer the next time, I got a flashing drive icon and macOS was no longer booting.
My only option at this point was Internet recovery. I tried running Disk Utility, unfortunately First Aid seems to be unable to fix the problem:
Looks like the APFS Container got corrupted.
**diskutil apfs list**
Is there any way I can re-build the partitions/APFS container so the disk will boot again? Any help would be much appreciated. Thanks!
Note: currently I am running a fresh install of Catalina on an external HDD.

Containers (2 found)
|
+-- Container ERROR -69808
| ======================
| APFS Container Reference: disk1
| Size (Capacity Ceiling): ERROR -69620
| Capacity In Use By Volumes: ERROR -69620
| Capacity Not Allocated: ERROR -69620
| |
| +- No Volumes
Next, I tried diskutil repairVolume on the APFS Volume, but again, no luck:
diskutil repairVolume disk0s2
Started file system repair on disk0s2
Repairing storage system
Performing fsck_apfs -y -x /dev/disk0s2
warning: nx_block_count is 122061322, while device block count is 110107642
error: object (oid 0x1): o_cksum (0x50eca9de0b97f54e) is invalid for object
Checking the container superblock
Storage system check exit code is 8
Error: -69716: Storage system verify or repair failed
Underlying error: 8
**GPT partitions:**
-r show /dev/disk0
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 4 Pri GPT table
6 76800 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
76806 110107642 2 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
110184448 11953680
122138128 4 Sec GPT table
122138132 1 Sec GPT header
Also, recovery tools like iBoysoft do see the APFS volumes and all the files after I provide the encryption password, so the volumes seems to be OK:

Asked by MacInTrouble
(21 rep)
Jun 30, 2020, 10:35 PM
Last activity: Jul 5, 2025, 12:00 PM
Last activity: Jul 5, 2025, 12:00 PM