Resize HFS+ Partition

8

6

Is there any way that I can resize (grow, in this case) a HFS+ partition?

I tried gparted and acronis but of them none seem to be able to do it.

phunehehe

Posted 2009-10-03T07:18:55.597

Reputation: 777

Answers

9

With or without formatting the drive? What partition map are you using as the live resizing feature only works with GPT (GUID Partition Table) which is the default if you have an Intel Mac.

It is possible to resize an HFS+ drive from the command line using diskutil or by using Disk Utility. In Disk Utility you can resize the partition using the resize scrubber (the the diagonal lines in the bottom right corner of the partition) (Example).

If you want to do it via the command line you're looking for the command resizeVolume as part of diskutil. This will non-destructively resize a disk so long as you have space available. It may be necessary to defrag your disk before this is possible if your disk is relatively full.

Example: diskutil resizeVolume disk0s2 10G JHFS+ 10G JHFS+ (Creates two partitions of 10GB apiece formatted as Journaled HFS+ systems).

You can find more by running diskutil resizeVolume. It should go without saying that you should have a backup just in case something goes wrong.

Chealion

Posted 2009-10-03T07:18:55.597

Reputation: 22 932

Also because doing it destructively is usually trivial, definitely not a big problem to search a solution for. – o0'. – 2011-02-28T13:47:53.123

2

The Example does not work anymore, you get a database error when accessing the website http://www.makemacwork.com/resize-disk-partitions.htm

– Roalt – 2011-03-30T09:28:58.457

5"resizing" a partition usually means without formatting the drive. "repartitioning" is the term used when you're creating new partitions and formatting new filesystems. – quack quixote – 2009-10-03T10:26:51.270