Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way that I can resize (actually growing is what I need, not shrinking) a HFS+ partition?

I tried gparted and acronis but of them none seem to be able to do it.
So, tell me: is that possible? And if that's possible, please tell me how to do it.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer
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 Oct 3 '09 at 10:26
    
thanks quack, that's what I meant –  phunehehe Oct 3 '09 at 15:48
    
Also because doing it destructively is usually trivial, definitely not a big problem to search a solution for. –  Lohoris Feb 28 '11 at 13:47
2  
The Example does not work anymore, you get a database error when accessing the website makemacwork.com/resize-disk-partitions.htm –  Roalt Mar 30 '11 at 9:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.