Boot Camp - remove

Discussion in 'OS X El Capitan (10.11)' started by veektor, Feb 19, 2016.

  1. veektor macrumors newbie

    Joined:
    Aug 2, 2015
    #1
    I went to upgrade from Win 7 to Win 10 and didn't have the 10 MG of free space. So I thought I could get additional space for other partition space on the same drive. Now I have a drive with OSX extended, an unnamed partition and a boot camp partition. Because of this third partition Boot Camp will not let me remove and merge the space back as one OSX drive.
    How to I remove Boot Camp and recover all the space to a single drive?
     
  2. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #2
    Have you tried it with Disk Utility? Can you perform the following Terminal command and paste the result here with [code]text[/code]?
    Code:
    diskutil list
     
  3. veektor thread starter macrumors newbie

    Joined:
    Aug 2, 2015
    #3
    Disk Utility will only let me reduce the size of the partition - I'm unable to merge the two partitions. Here is what terminal command indicates. Disk1 is the problem drive. I tried to reduce disk1/#2 and ended up with disk1/#3. Boot Camp warns the drive was create by a third party and all that can be done is reform the whole drive to Windows.
    /dev/disk0 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *500.1 GB disk0
    1: EFI EFI 209.7 MB disk0s1
    2: Apple_HFS Mac OSX 249.5 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    4: Apple_HFS OSX-X 249.6 GB disk0s4
    /dev/disk1 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.0 TB disk1
    1: EFI EFI 209.7 MB disk1s1
    2: Apple_HFS MacIntosh 1TB HDD 940.4 GB disk1s2
    3: Apple_HFS OSX-EXT 8.4 GB disk1s3
    4: Microsoft Basic Data BOOTCAMP 51.0 GB disk1s4
     
  4. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #4
    There isn’t anything unusual about this at first sight. You have two internal hard drives? Have you attempted a First Aid operation in Disk Utility?

    If I understood you correctly, you want to remove both disk1s3 and disk1s4 and merge them into disk1s2? And you want to keep the data on disk1s2 in tact?
     
  5. veektor thread starter macrumors newbie

    Joined:
    Aug 2, 2015
    #5
    I did run First Aid and nothing was found. I want to keep disk1s2 in tact and have Boot Camp merge disk1s4 back with disk1s2. Disk1s3 seems to be causing the problems with BC.
     
  6. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #6
    It is possible to do this in Terminal, but the operation is not without risks. I strongly recommend doing a backup of your “MacIntosh” partition on that second disk before doing this (and of course any other data you want to save on that disk). Normally, Boot Camp should be able to remove its partition for you. However, given that it is apparently not able to, it could mean that a disk erase is inevitable. Use “diskutil list” once more before typing the command below, just to make sure that the disk identifiers are still the same. If you enter the wrong identifiers, you could delete the wrong partitions.

    To explain this command. “diskutil mergepartitions” takes four parameters: format, name, starting partition, ending partition. It will keep the starting partition (in your case “MacIntosh” disk1s2) and will remove everything after it up to and including the ending partition (so disk1s3 and disk1s4). Afterwards it will attempt to resize the starting partition to regain the space. If the resizing is not possible for some reason, then it will ask you whether you want to erase the first partition as well. You can respond with “y” or “n”. If you respond with “y” then it will reformat that starting partition into the chosen format and name, it will cancel if you choose “n”. So be sure to read the output.

    You can type just “diskutil mergepartitions” in Terminal to get more information about this.

    Code:
    sudo diskutil mergepartitions JHFS+ MacIntosh disk1s2 disk1s4
     
  7. IowaLynn macrumors 6502a

    IowaLynn

    Joined:
    Feb 22, 2015
    #7
    Use CCC to clone your system, will offer to create Recovery partition and is bootable.

    WinClone has been popular to backup Windows.

    CampTuneX (Paragon Software) to create a boot device to then esize.

    Recovering and consolidating free space to be contiguous would need "shrinking" a partition though ccc is fast easy and to me most effective.

    Windows will boot from Thunderbolt but needs to be installed on internal drive first. Having Windows and Mac on their physically separate HDD is ideal or moving user data to another drive to free up space.
     
  8. veektor thread starter macrumors newbie

    Joined:
    Aug 2, 2015
    #8
    Used diskutil mergepartitions, but used disk1s2 disk1s3 as end partition. When it finished was able to go into BC and remove and merge partitions into one drive. Thanks for all your help.
     

Share This Page