Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't resize Macintosh HD partition

Hello,


I've installed Windows 8.1 via the BCA on my MacBook Pro and upgraded it to Windows 10. Now I wanted to perform a clean installation of Windows 10 via the BCA afterwards to get rid of the Windows 8.1 overload.


My first problem was that BCA did not recognize my Windows installation anymore (because of the upgrade). So I started in recovery mode to delete the three partition which belongs to Boot Camp (disk0s4, BOOTCAMP and disk0s6). There are still two problems:


1. My Macintosh HD only has 169 GB but I have a total space of 250 GB. I'm not able to resize my Macintosh HD partition (even in recovery mode).

2. If I hold ALT while booting, I still see Windows as a boot option. But I don't have any Windows partitions left on the system.


What should I do now? I want to remove Windows as a boot option and get back the full 250 GB for my Macintosh HD partition.


Thanks in advance!


PS: If I type diskutil cs list in Terminal I only get one CoreStorage logical volume group named Macintosh HD.

MacBook Pro with Retina display, OS X Yosemite (10.10.5), MBP Retina 2015 13" 250GB

Posted on Aug 27, 2015 6:10 AM

Reply
54 replies

Aug 29, 2015 3:02 PM in response to Baumxyz

You will need to run the commands. There is a Safari browser in Recovery console, but it requires you to exit the Terminal Window. This implies that you will have to copy the Terminal output, save it to a file, and then start Safari, and post it on Apple Discussions on this thread.


It is much easier to do what you did with the screen photograph you posted in the reply above using a camera.

Aug 29, 2015 4:52 PM in response to Loner T

Okay, this is the output:


-bash-3.2# diskutil mergePartitions disk0s2 disk0s3

Usage: diskutil mergePartitions [force] format name

DiskIdentifier|DeviceNode DiskIdentifier|DeviceNode


Merge two or more pre-existing partitions into one. The first disk parameter

is the starting partition; the second disk parameter is the ending partition;

this given range of two or more partitions will be merged into one.


All partitions in the range, except for the first one, must be unmountable.


All data on merged partitions other than the first will be lost; data on the

first partition will be lost as well if the "force" argument is given.


If "force" is not given, and the first partition has a resizable file system

(e.g. JHFS+), it will be grown in a data-preserving manner, even if a different

file system is specified (in fact, your file system and volume name parameters

are both ignored in this case). If "force" is not given, and the first

partition is not resizable, you will be prompted if you want to erase.


If "force" is given, the first partition is always formatted. You should

do this if you wish to reformat to a new file system type.


Merged partitions are required to be ordered sequentially on disk.

See diskutil list for the actual on-disk ordering; BSD slice identifiers

may in certain circumstances not always be in numerical order but the

top-to-bottom order given by diskutil list is always the on-disk order.


Ownership of the affected disk is required.


Example: diskutil mergePartitions JHFS+ NewName disk3s4 disk3s7

This example will merge all partitions *BETWEEN* disk3s4 and disk3s7,

preserving data on disk3s4 but destroying data on disk3s5, disk3s6,

disk3s7 and any invisible free space partitions between those disks;

disk3s4 will be grown to cover the full space if possible.

-bash-3.2#

Aug 30, 2015 3:02 AM in response to Loner T

I've done the merge. Here is the output:


-bash-3.2# diskutil mergePartitions JHFS+ "Macintosh HD" disk0s2 disk0s3

Merging partitions into a new partition

Start partition: disk0s2 Macintosh HD

Finish partition: disk0s3 Recovery HD

Started partitioning on disk0

Merging partitions

Waiting for the disks to reappear

Growing disk

Finished partitioning on disk0

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *251.0 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 250.7 GB disk0s2

-bash-3.2#



Edit: The Macintosh HD partition already has the maximum size - I don't need to do something in Disk Utility.


Edit 2: The OS X installation via Internet Recovery is running now. I'll keep you updated.

Aug 30, 2015 3:33 PM in response to Loner T

gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

gpt show: /dev/disk0: PMBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 490234751

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 488555536 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

488965176 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

490234712 7

490234719 32 Sec GPT table

490234751 1 Sec GPT header

---

Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 1023 254 63 - 1023 254 63 [ 1 - 490234751] <Unknown ID>

2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

Can't resize Macintosh HD partition

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