Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .