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.

Lost Space After Removing Bootcamp Partition

After upgrading my computer to Yosemite I noticed my Windows 7 partition was no longer a boot option. After trying and failing at several things to fix the problem I decided to cut my losses and just reformat the partition. However, Disk Utility raised and error when trying to remove the partition (MediaKit reports no such partition...). I booted in Single user mode and ran fsck -fy and the rogue partition is gone, and Disk Utility is reporting that my Hard drive has a capacity of 250 GB (as it should). But the single Macintosh HD Partition still reports only a capacity of 173 GB, as it did when my drive was still partitioned.


I would just really like to know where those ~75 GB went and if/how I can get them back.


Thanks in advance.

MacBook Pro

Posted on Mar 19, 2015 8:12 PM

Reply
47 replies

Oct 11, 2015 5:55 PM in response to marcin79

1. Please make a backup. It is much safer.

2. Yes, if you need your Recovery HD back, the re-installation will build it. Please be aware that it will install OS X version that originally shipped with your Mac, not your current version. If you do not want to do this, the backup should be used to restore the disk after erasing it.

Oct 12, 2015 10:01 AM in response to marcin79

You have two choices.


1. Boot into Internet Recovery, erase your internal drive and restore from the backup, or,

2. Run the following commands.

a. diskutil mergePartitions jhfs+ disk0s2 disk0s3 (the order of disks is critical).

b. Run Disk Utility and extend Macintosh HD by dragging the bottom left corner to occupy the entire disk.

c. Verify the size of OSX partition.

d. Reinstall OSX and verify that you have Recovery HD. This may be an older version of OSX based on what was originally shipped with your Mac.

3. Backup OSX.

Oct 12, 2015 10:28 AM in response to Loner T

I got this message:

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.

Oct 12, 2015 11:10 AM in response to marcin79

This time it worked:

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 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 499.8 GB disk0s2


I can see one partition in disk utility. And recovered about ~70GB.


User uploaded file

User uploaded file


Thank you very much!

Lost Space After Removing Bootcamp Partition

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