"The startup disk cannot be partitioned or restored to a single partition" error in Boot Camp Assist

Discussion in 'Windows, Linux & Others on the Mac' started by dexsas, Mar 16, 2018.

  1. dexsas macrumors newbie

    Joined:
    Mar 16, 2018
    #1
    An error occurred during my instillation of windows and now when I try again I get this message and can't get any further. I just wanna play some fortnite!!
     
  2. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #2
    Fortnite works quite well on macOS.

    But to fix your issue, you're going to want to manually remove the partition BootCamp made. Try first with Disk Utility, and if you get an issue, please post the results of diskutil list and I'll help you out :)
     
  3. dexsas thread starter macrumors newbie

    Joined:
    Mar 16, 2018
    #3
    I'm able to erase the BOOTCAMP Partition but I can't actually remove it. When I go to pie chart thingy the - button isn't available, however it is available for a thing called OSXRESERVED. Looking at this list it looks like that may be what's causing the problem?


    /dev/disk0 (internal, physical):

    #: TYPE NAME SIZE IDENTIFIER

    0: GUID_partition_scheme *121.3 GB disk0

    1: EFI EFI 209.7 MB disk0s1

    2: Apple_APFS Container disk1 73.0 GB disk0s2

    3: Microsoft Basic Data OSXRESERVED 8.0 GB disk0s3

    4: Apple_HFS BOOTCAMP 40.0 GB disk0s4


    /dev/disk1 (synthesized):

    #: TYPE NAME SIZE IDENTIFIER

    0: APFS Container Scheme - +73.0 GB disk1

    Physical Store disk0s2

    1: APFS Volume Macintosh HD 57.4 GB disk1s1

    2: APFS Volume Preboot 20.8 MB disk1s2

    3: APFS Volume Recovery 509.8 MB disk1s3

    4: APFS Volume VM 2.1 GB disk1s4
     
  4. casperes1996 macrumors 68040

    casperes1996

    Joined:
    Jan 26, 2014
    Location:
    Horsens, Denmark
    #4
    I don't know what OS X Reserved is in your partition list, but unless you only set you BootCamp to be 8GB, the one titled BOOTCAMP is still your bootcamp disk.

    Do you have a backup of your data? I will try and help you non-destructively, but I can't promise anything.


    First off, install home-brew.
    Now, through home-brew, install gdisk (brew install gdisk)

    Now we'll use gdisk to get rid of your BootCamp partition, since Disk Utility won't.

    First however, we need to remove System Integrity Protection temporarily, so boot into Recovery Mode (hold cmd+R whilst booting), and open a Terminal. Type "csrutil disable". Now (assuming no errors) reboot back into your system, and run

    "sudo gdisk /dev/disk0"

    type "p" to print your partition table, and locate the BootCamp partition.

    Type d to delete a partition, and enter the ID of the Bootcamp partition. Then type w to write the changes to disk.

    You should now reboot and be able to merge your APFS container with the blank space, with the command
    diskutil apfs resizeContainer (size of container)
     

Share This Page

3 March 16, 2018