Can’t delete BOOTCAMP partition

bootcampdisk-utilitypartition

Bought a second hand iMac that had two partitions on the HDD. One for Mac, one for Windows. Using disk utility I erased the BOOTCAMP partition and formatted it to MacOS Extended (Journaled). All went well until I tried to remove the BOOTCAMP partition. The minus option is not enabled and I can't seem to fin any other way to delete it.


This is what I've tried:

  • Reboot on recovery mode and try to delete using disk utility. (Same result)
  • Use Bootcamp assistant to remove the partition. Didn't work as windows is gone from that partition.

How can delete it? I want to have just one partition.

Best Answer

I found the answer in this Apple Support Communities thread.

This is what I did:

In terminal executed diskutil list and the output was

#:                       TYPE NAME                    SIZE       IDENTIFIER
0:      GUID_partition_scheme                        *1.0 TB     disk0
1:                        EFI EFI                     209.7 MB   disk0s1
2:                  Apple_HFS Macintosh HD            542.3 GB   disk0s2
3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4
4:                  Apple_HFS BOOTCAMP                449.0 MB   disk0s4
5:                 Apple_Boot                         650.0 MB   disk0s5

Then I executed the following commands:

diskutil eraseVolume jhfs+ BC1 disk0s4
diskutil list

And the output was:

#:                       TYPE NAME                    SIZE       IDENTIFIER
0:      GUID_partition_scheme                        *1.0 TB     disk0
1:                        EFI EFI                     209.7 MB   disk0s1
2:                  Apple_HFS Macintosh HD            542.3 GB   disk0s2
3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4
4:                  Apple_HFS BC1                     449.0 MB   disk0s4

then:

diskutil eraseVolume fat32 BOOTCAMP disk0s4

After that I opened Boot Camp Assistant and I was able to restore the HD to a single partition.