Restoring a Mac partition to its full size

Usually, when you add a new partition to a Mac using Disk Utility, you can then just (minus sign) delete the new partition and Disk Utility will automatically expand your first partition to take up the free space.

Occasionally, Macs will act weird and not fill up the free space and, more importantly, not let you manually drag the old partition to fill up the free space. You’re just stuck with unusable free space.

There is a relatively simple solution that involves only a couple of terminal commands. (Thanks to the Restore Macintosh HD to its original partition configuration thread on Stack Exchange for the tip.)

Boot up into recovery mode (Cmd-R at startup). If you want to be extra safe, use Disk Utility to back up your first partition in case something goes wrong.

Go to Utilities > Terminal.

Enter in this command:

diskutil cs list

and get the Logical Volume UUID of your partition-to-expand.

Then run

diskutil cs resizeStack XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 0g

where XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX is the UUID in question.


You should see the progress of your partition expanding.


Then you’ll see it verifying the volume.

That’s it. Your partition should now be fully expanded.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *