Recovery HD left in the middle I did some partitioning to install Linux. Then I decided to erase that partition altogether. Now I am left with a configuration like this:



How can I add the free space to main partition?
I created a bootable usb with unetbootin and Gparted. I booted the mac with the stick. i moved my Recovery HD to the end. Then I rebooted normally, opened up Disk Utility, dragged the end of the main partition to the bottom.