Boot camp could not restore disk

Hello,


I have just tried to remove the windows disk partition created with boot camp and followed all the instructions on the apple website and boot camp showed an error message saying the disk could not be restored, and now the window partition does not appear on Disk Utility but I am still missing the 100 GB I had allocated to the Windows partition.


EDITED: I'm adding the terminal outputs on a previous, similar question


"diskutil list" gives me


  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   GUID_partition_scheme            *500.3 GB  disk0
  1:            EFI ⁨EFI⁩           314.6 MB  disk0s1
  2:         Apple_APFS ⁨Container disk1⁩     399.0 GB  disk0s2
          (free space)             101.0 GB  -

/dev/disk1 (synthesized):
  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   APFS Container Scheme -           +399.0 GB  disk1
                 Physical Store disk0s2
  1:        APFS Volume ⁨Macintosh HD - Données⁩ 336.9 GB  disk1s1
  2:        APFS Volume ⁨Preboot⁩         466.5 MB  disk1s2
  3:        APFS Volume ⁨Recovery⁩        1.6 GB   disk1s3
  4:        APFS Volume ⁨VM⁩           24.6 KB  disk1s4
  5:        APFS Volume ⁨Macintosh HD - Data⁩   823.3 KB  disk1s5
  6:        APFS Volume ⁨Macintosh HD⁩      15.4 GB  disk1s6
  7:       APFS Snapshot ⁨com.apple.os.update-...⁩ 15.4 GB  disk1s6s1


And "diskutil cs list" give me


No CoreStorage logical volume groups found

Posted on Sep 12, 2022 01:05 PM

Reply

Similar questions

7 replies

Sep 29, 2022 07:51 PM in response to -Bubba-

Finally got around to fixing it! Wooh!


For anyone wondering / having the same issue: if you run First Aid on all partitions, and see, like me, that there is corruption on a disk and it tell you "operation failed" and to use Recovery like this:


Deferred repairs skipped.
The container /dev/diskOs2 could not be verified completely.
Storage system check exit code is 8.
Storage system verify or repair failed. : (-69716)


The fix, surprisingly enough, is more complicated than to just go into recovery. Or at least it was for me. Because when I went into recovery, I got another error message (-69845) and if initially I found sources saying to run in single user mode, that did not work out on account that you cannot run Single User if you have FireVault active (aka, if your mac is password protected, you'd need to deactivate that and let everything decrypt because booting in single user mode apparently still requires the password so instead of letting you input commands it boots up your user profile or something I'm not sure what the technical terms are).

HOWEVER. What I did that worked, and full credit to people on the Mac Rumors forum here (thread: forums.macrumors.com/threads/doeanyone-know-how-to-fix-error-96845-in-disk-utility.2340887/), what you need to do, if your disk is listed as APFS, is hit "View" at the top left of Disk Utility, left of the name, and from View > Show All Devices. This will change the list to show the container. Now select the container on the internal section, and run First Aid on that container.


It took a while to run, for me, but eventually it said "operation complete" and it turns out that when I then went into partition to remove that empty partition, it finally worked as the corruption had been repaired, even though it took like twice as long as before and along the way I saw error messages, the end result was… exactly what I wanted.


So yeah, hopefully, this can be useful to someone!

Sep 14, 2022 01:12 PM in response to -Bubba-

So I tried using Disk Utility to go into partition and remove the "free space" I had apparently set up, but I get an error message when I try to hit that (-) and then hit Apply (see screenshot below)



It runs for a little while, and then it tells me the disk is corrupted (see screenshot below)



I tried using Disk Utility to run First Aid on the main volume from where I was accessing the partition (see the one highlighted in the screenshot below) but First Aid didn't see to see any problem with the disk and then when I tried the first step again, it gave me the same error message.


Any idea how to solve this? Maybe I'm not using First Aid on the right disk?

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.

Boot camp could not restore disk

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