Resizing dual boot partitions in Yosemite

Solution 1:

There are at least two approaches to solve your problem: One is potentially destructive, vastly undocumented and i don't know if it works (1) and the other one is for sure destructive (2).

So please backup your Mac OS X and your Ubuntu partition if necessary.

Requirements: USB thumb drive with a full working Mac OS X and iPartition installed or a Linux Live USB with gparted.

It's also useful to have a second computer with internet access and the stackexchange credentials to check back if you run into severe problems.

(1) risk of destruction (this may render your systems unusable):

Your Mac OS X partition (Macintosh HD) visible on the desktop is equivalent to the Logical Volume 4F26F5C3-8D94-419F-AFF1-B652E9DCDEF4. You may shrink it down to the 82.68 GB which will render your OS X almost unusable because it needs some free space. You may disable the sleepimage and gain the amount of your RAM size as additional free space though.

  1. Restart into Internet Recovery Mode by pressing cmdR
    or your bootable Mavericks Thumb Drive with iPartition installed.
  2. start Terminal from the menubar/utilities
  3. enter following command at the Terminal prompt:

    diskutil cs list

  4. Copy the Logical Volume (LV) alphanumeric UUID of your CoreStorage volume. The LVUUID should be the fourth listed. In the above example the alphanumeric is:
    4F26F5C3-8D94-419F-AFF1-B652E9DCDEF4.
  5. Run the following command:

    diskutil cs resizeStack LVUUID

    According to the number found above it would be:

    diskutil cs resizeStack 4F26F5C3-8D94-419F-AFF1-B652E9DCDEF4 88g

    This will hopefully shrink your CoreStorage volume to 88 GB (skip to step 9 if this doesn't work)

  6. If necessary reboot into your thumb drive and start iPartition. Alternatively you may use a Linux Live USB with gparted.
  7. Try to move the volume Recovery HD to the end of the now shrinked Macintosh HD (skip to step 9 if this doesn't work)
  8. Expand your Ubuntu partition

(2) total destruction (this will delete all partitions on your disk)

  1. Disconnect all external hard drives
  2. Restart into Internet Recovery Mode by pressing Command+R
    (alternatively you may use a Mavericks or Mountain Lion Install Thumb Drive)
  3. start Terminal from the menubar/utilities
  4. enter following command at the Terminal prompt:

    diskutil cs list

  5. Copy the Logical Volume Group (LVG) alphanumeric UUID of your CoreStorage volume. The LVG UUID should be the first listed. In the above example the alphanumeric is:
    08436957-C5CD-4DC6-B9FA-05B51A3EEFC8.
  6. Run the following command:

    diskutil cs delete LVGUUID

    According to the number found above it would be:

    diskutil cs delete 08436957-C5CD-4DC6-B9FA-05B51A3EEFC8

    This will delete your CoreStorage volume and probably your Recovery HD and reformat it as a simple HFS+ volume.

  7. Quit Terminal
  8. In the now opening window choose Disk Utility erase all leftover partitions and format/partition/rename the internal drive. Choose 1 Partition, Mac OS Extended (Journaled) and GUID partition table (available with the option button). Quit Disk Utility.
  9. Now choose 'Reinstall Mac OS X'
  10. The originally shipped OS X will be downloaded and installed or the one provided with the aforementioned OS X Install Thumb Drive.
  11. Set up your Mac
  12. Download and install Mavericks/Yosemite from the App Store if necessary
  13. Install Ubuntu (in a larger partition now)