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 4:42 PM in response to Loner T

Hi guys,

I think I've got similar problem. I was removing boot camp partition (windows 10) with boot camp assistant and it was interrupted. My Macbook Pro (13' early 2011, el capitan) just restarted.

Now I've got one partition (macintosh hd) which I can see in disk utility, but ~70GB of disk space is missing. Can you help me with recovering it or do I have to do clean install?


Output of terminal commands


diskutil list

/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 425.2 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

diskutil cs list

No CoreStorage logical volume groups found

sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

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 976773167

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 830562704 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

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

832241880 144531255

976773135 32 Sec GPT table

976773167 1 Sec GPT header


sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 1023 254 63 - 1023 254 63 [ 1 - 976773167] <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

Mar 19, 2015 8:16 PM in response to Jazzyrae12

They are now unallocated space on your HDD, I'd guess. Look at your partitions in Disk Utility. Take a screen snap and post it here:


To post screen shot do this:


  1. Press COMMAND-SHIFT-4 which will change the cursor to crosshairs.
  2. Hold down the mouse button and use the crosshairs to select the part of the screen you wish to capture.
  3. Release the button and the image will be saved to your Desktop.
  4. Click on the Camera icon in the toolbar of the forum message editor.
  5. Drag the image onto the Choose File button and click on the Insert button.

Mar 19, 2015 8:34 PM in response to Jazzyrae12

Yosemite converts your JHFS+ volume to a CoreStorage Volume (also used by FileVault2). BCA partitions the drive and rearranges the Recovery HD to be GPT3 (GPT1 = EFI, GPT2 = OSX) and Bootcamp/Windows is GPT4 (GPT is GUID Partition Table partitions and the numbers are ordinal positions in the GPT).


If you do not use BCA to remove this partition, the disk space is not returned back to the CS volume.


Please post the output of the following Terminal commands.


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


sudo commands require your password, which is not echoed back to you. It may also warn you about improper use and potential data loss, if abused.

Mar 19, 2015 8:40 PM in response to Jazzyrae12

You will need to revert the drive from CoreStorage to Standard HFS+. Open the Terminal in your Utilities folder. At the prompt paste the following:


diskutil list


Press RETURN. This should list your current Unix disk structure. You should see an entry for a Volume named Macintosh HD. It should show a disk ID of disk0s2. Please verify that is correct. If not then tell me before doing the following.


At the prompt paste:


sudo diskutil cs revert /dev/disk0s2


Press RETURN. Enter your admin password when prompted. It will not echo to the Terminal window. Press RETURN, again.


Reboot the computer. Open Disk Utility, select the outdented entry, and click on the Partition tab which should display your partition structure as it would appear normally. You should now see a 75 GB block of space that you can add to your Macintosh HD volume.

Mar 19, 2015 8:55 PM in response to Jazzyrae12

Notice the 76GB Free Space in the diskutil cs list output.


Unless Kappy has alternative suggestion, I suggest the following (the last 'b' is bytes).


diskutil cs resizeVolume <UseTheLongStringUUIDAboveTheMacintoshHDLine = DB68...> <UseTheSizeInBytesUnderTheLogicalVolumeGroupEntry = 250140434432b>


diskutil cs resizeVolume

Usage: diskutil coreStorage resizeVolume

lvUUID|MountPoint|DiskIdentifier|DeviceNode size

Resize a logical volume, which is one of one or more disks that consume storage

out of a logical volume group. The logical volume group will have more or less

available space after this operation, if it was a shrink or grow, respectively.

Example: diskutil coreStorage resizeVolume

11111111-2222-3333-4444-555555555555 10g

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.