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 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.
sudo gpt -r show /dev/disk0
anddiskutil cs list
entered in Terminal.app to your question. – klanomath Apr 29 '15 at 06:28gpt -r -vv show /dev/disk0
example listing in the accepted answer. The Recovery HD is the 3rd partition (i=3), followed by an invisible UEFI-partition (i=4) and a lot of unallocated free space. – klanomath Apr 29 '15 at 08:38