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.

I partitioned my volume as MBR and was able to install Windows 7 + Mac OS X. Unfortunately, Disk Utility in Mac OS X cannot resize the Mac partition now because it's not a GPT volume. I also cannot upgrade to Mountain Lion because it requires a GPT volume. How can I safely convert the volume to GPT without data loss so that I can resize my volumes?

share|improve this question

migrated from stackoverflow.com Oct 29 '12 at 17:40

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 5 down vote accepted

I ended up using gdisk to convert the partition. I issued:

sudo gdisk /dev/disk0

And I was greeted with this warning:

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATON IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************

Command (? for help):

After backing up my data, I wrote the partition table with the changes gdisk made automatically, quit (w, then q), and rebooted.

Booting into Lion was normal, but when I tried to resize my partition table with Disk Utility, I saw that I had a minor volume header error.

Verifying volume "Mac OS X"
Performing live verification.
Checking Journaled HFS Plus Volume.
Checking catalog file.
Checking multi-linked files.
Checking extended attributes file.
Incorrect number of extended attributes
(It should be 245871 instead of 245862)
Checking volume bitmap.
Checking volume information.
The volume Mac OS X was found to be corrupt and needs to be repaird
Error: This disk needs to be repaired...then use Disk Utility to repair this disk

Well, I rebooted and used -s to boot into single user mode. From there, I issued a trusty:

/sbin/fsck -fy

Now all is well. I have a happily resized Mac OS X volume, and I can proceed with my Mountain Lion upgrade.

share|improve this answer

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.