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.

Recently I installed Ubuntu on my Macbook Pro with Lion. I had trouble getting it to work with my hardware and repartitioned the drive to eliminate Ubuntu. Now when I boot my mac I get an error about grub not existing. The only way I can boot into Lion is by holding the option key, going to rEFIT and selecting Lion. How can I eliminate grub and rEFIT and restore the original Lion boot without reinstalling lion?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If you log into your Mac partition open Terminal and then type in:

sudo fdisk -u /dev/disk0

That should do the trick. Reference fdisk Manual Page. It should be noted that messing with the MBR can be dangerous and I would advise having a backup.

share|improve this answer
add comment

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.