I wrongly made two partitions with Boot Camp in the following way:

enter image description here

I found many solutions around the web but I don't want to lose any data from my hard drive.

How can I merge the partitions via terminal or any program?

  • Is there any data on "Untitled"? If not, then you can use Disk Utility to delete it, then append the freed space to Macintosh HD. – zneak Jul 30 '10 at 3:46
  • Have you tried using Boot Camp to remove the partition yet? – Chealion Jul 30 '10 at 6:42

Using the Disk Utility will not erase anything from Macintosh HD.

First, copy any file there can be on Untitled to Macintosh HD that you don't want to lose (if there's nothing on Untitled, proceed).

Open the Disk Utility (it's in /Applications/Utilities). In the left bar, select your hard drive. From there, click the "Partition" tab in the right pane.

Select the drive

You'll see the "physical" partitioning of your drive there.

alt text

Select your Untitled partition, and click the minus sign. The Disk Utility will ask you to confirm your choice, and will tell you that no other partition will be affected. Proceed.

alt text

(No more screenshots from here, because I didn't want to delete my Windows partition.) Once done, drag the bottom-right corner of your Macintosh HD drive to the bottom of the rectangle, and click "Apply". Disk Utility will possibly ask you to confirm again.

Job's done!

  • 1
    It's never too much to say this: always, always do a backup before messing up with partitions. – cregox Nov 2 '10 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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