I have a Mac and am dual booting Ubuntu. I booted from a USB and used GParted to shrink the Ubuntu partition leaving me with about 100G of free space. I want to use this to increase the OS X partition space. GParted will not let me increase the OS X partition size (although it will let me decrease it). I've also tried using Disk Utility from OS X.
When I had the 100G of unallocated space, Disk Utility would report "MediaKit reports partition (map) too small." I also tried creating a new partition of both "unformatted" and "cleared." Now when I use Disk Utility, it says "Preparing to resize," but doesn't move on. It doesn't lock up, but even after half an hour it is still "preparing to resize."
GParted still can't increase the OS X partition size either (same as before). I also can't create an hfs+
partition with the unallocated space. The option is there, but it is grayed out.
I've seen this question, but the solutions all involve booting the OS X CD, which I do not have. Using df
does not list the OS X partition either, but Ubuntu does not appear to have gpt
anyway.
In general, I've read that I need to repair the partition table, but the only ways from OS X that I've found to do this require having a CD to boot from.
I've also read that since I used GParted to create the free space, I need to use GParted to resize the partition or at least put it in a resizable state, but nothing I've done will allow me to resize the OS X partition.
If the diagnosis that there's a problem with the partition table is accurate, I recommend you install the
gdisk
package in Ubuntu (or download and install the Mac version from Sourceforge), launch it on your disk, and use thev
option to check for errors. If you find any, check thegdisk
documentation on repairing the disk or report back here with details. (Edit your original question and post thegdisk
output there.)It's also possible that you're running into problems related to a hybrid MBR. If so, it's possible that converting the hybrid MBR into a conventional protective MBR will fix the problem; however, this might render Linux (and Windows, if it's also installed) unbootable. There are ways to correct this -- you can either regenerate a hybrid MBR after you resize your partitions or convert Linux to boot in EFI mode.
EDIT: I have a new thought on this issue, which is that you may not have sufficient space between your partitions. OS X's Disk Utility likes to see at least 128MiB of space between existing partitions. If that space isn't present, it will often refuse to work on the disk, although I don't recall the error message it gives. Since you haven't posted your partition table details, it's hard to know if this is a plausible explanation for your problem -- you presumably have ~100GiB of free space somewhere, but it might not be in the right location to please Disk Utility. If this explanation is correct, you may need to resize one or more Linux partitions to ensure that there's free space after every OS X partition. Posting the output of
sudo parted /dev/sda unit s print
(typed in an Ubuntu Terminal window) will show us how your disk is laid out, which should be helpful in determining if this hypothesis has any merit.