How to resize Mac OS Extended (Journaled) partition after linux messed it up

hard drivepartitionssdunix

I've tried to use Ubuntu on my macbook pro (6,2), but it was a total and abject failure, mainly due to poor hardware support.

So, I have given up on my little experiment and just deleted ubuntu and erased the partition it used in the ssd. Now, I'm trying to make os x reclaim the former linux partition's space, but I get an error whenever I try to resize the system partition in Disk Utility:

Partition failed with the error:
File system resize support required, such as HFS+ with Journaling enabled.

OS X's partition is "Mac OS Extended (with journaling)". My OS X's version is 10.8.3 (Mountain Lion).

Any way of doing it without wiping out the disk? Even if I had a backup one, the bakcup-and-restore process would be very time consuming and I believe there must be a cleverer way of resizing a partition than deleting everything…


output of diskutil list:

   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *240.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS osx                     40.0 GB    disk0s2
   3:       Microsoft Basic Data Deposit                 139.7 GB   disk0s5

Best Answer

The real reason may be the fact, that the recovery partition is no longer there.

Have you tried the resize with diskutil command? (man diskutil look for the resizeVolume command). If nothing else, it might give you a different or better error message.

A repair on the volume might also help.

Also see this question.