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.

Bootcamp failure at partition creation, can't delete it, how to start over?

Hello


Attempting to Bootcamp a '19 MacBook Pro.


At partition creation, Bootcamp failed and returned a message that I needed to run Diskutil repair on the SSD. I did that on all partitions.


On reattempting to run Bootcamp I'm given the "Unable to read the Windows partition

Boot Camp Assistant was unable to verify if the Windows partition contains a Windows installation. This may be because BitLocker is enabled on the partition. If so, disable BitLocker on the disk before removing Boot Camp." error.


That makes sense as the creation failed and Windows was not installed.


However the visual Diskutil app does not show the Windows partition(s).


They are however listed as unmounted on the command line 'diskutil list'. (Output below, items 3 and 4 of disk0).


Can someone advise how I delete them and start over please?


Thank you.


/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         1.9 TB     disk0s2
   3:       Microsoft Basic Data                         10.0 GB    disk0s3
   4:       Microsoft Basic Data                         140.8 GB   disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +1.9 TB     disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            10.3 GB    disk1s1
   2:              APFS Snapshot com.apple.os.update-... 10.3 GB    disk1s1s1
   3:                APFS Volume Macintosh HD - Data     1.3 TB     disk1s2
   4:                APFS Volume Preboot                 2.2 GB     disk1s3
   5:                APFS Volume Recovery                1.2 GB     disk1s4
   6:                APFS Volume VM                      24.6 KB    disk1s5


MacBook Pro 15″, macOS 11.7

Posted on May 22, 2024 4:55 AM

Reply
4 replies

Jun 15, 2024 9:43 PM in response to user1247

I know this is a bit late, but for anyone else who finds this thread, I have a command line solution if Bootcamp Assistant and Disk Utility are unable to remove the Windows partitions. This solution will only work with a drive layout like the OP @user1247 has listed in their original post with an APFS Container and one or two Windows partitions after the APFS Container.


You need to get the identifiers for each of the Windows partitions. Using the OP's information, this would be "disk0s3" and "disk0s4". You will also need the identifier for the APFS Container as well which is "disk0s2" here. To get the drive layout for the internal drive, you can use the following command in the Terminal app:

diskutil  list  internal



Now with the Identifiers for the Windows partitions, you will need to use the following command to delete the partitions and convert them into Unallocated "free space". It is best to use the previous command after each of the following ones in order to confirm the Identifiers for the partitions has not changed.

diskutil  eraseVolume  free  none  disk0s4


diskutil  eraseVolume  free  none  disk0s3


Now if you use the "diskutil list internal" command again, you should see that the two Windows partitions are gone and have been replaced with unallocated space listed as "(free space)".


You can now expand the APFS Container (disk0s2) into the unallocated (free space) area by using the following command (the last character is the number zero):

diskutil  ap  resizeContainer  disk0s2  0



Before attempting to modify any partitions on the drive, you should make sure you have a good current backup just in case something goes wrong and the macOS partition/Container is damaged or deleted. Modifying partitions and drive layouts is always a risky procedure even when using the Disk Utility GUI app. The Terminal command line has no safety nets and even a simple typographical error can have devastating & unintended results.


I have tested this on a similarly partition .dmg image file I created and these commands worked fine. Tested on macOS Ventura, but it should work on macOS 10.13 High Sierra up to the current macOS 14.x Sonoma where an APFS Container is being used. Older versions of macOS using the HFS+ (aka MacOS Extended) file system instead of the APFS file system will require different commands to achieve the same results.


May 24, 2024 7:32 PM in response to user1247

If Bootcamp Assistant is unable to remove Windows, then you can try using Disk Utility to delete the two Windows partitions shown in your screenshots (disk0s3 & disk0s4). Make sure to delete "disk0s4" first, then "disk0s3". Unfortunately many times Disk Utility will not re-merge the space used back into the main macOS Container (aka partition) in this case "disk0s2". It may be possible to use the command line "diskutil" command to merge that space back into the "disk0s2" Container, but I don't have the time or a spare drive to experiment. I do know there is at least one thread on the Apple forums from a few years ago where I assisted another user with this issue, but the user had to modify my two suggestions before it actually worked. Unfortunately I don't recall the exact options to use with the command.


Otherwise you may find it quicker & easier to start completely over by performing a clean install of macOS by first erasing the whole physical SSD followed by reinstalling macOS & restoring from a backup. Then attempt to use Bootcamp Assistant to install Windows again.


No matter what you do, make sure you have a good backup of macOS now while you still can since modifying partitions is always a risky endeavor that could cause you to lose access to your data.


Bootcamp failure at partition creation, can't delete it, how to start over?

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