Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I've partitioned the drive on my Mac Mini 5,1 so that it's half MacOS Mountain Lion and half Ubuntu. I had it dual-booting for a little while with rEFIt, but when I reinstalled Ubuntu from a USB live disk, it wrote Grub to the /dev/sda boot area, and now I'm not getting a mac boot screen at all, and the grub options to boot into MacOS don't work. How can I restore the rEFIt (Mac) bootloader, so that I can boot back into MacOS?

share|improve this question
up vote 1 down vote accepted

Easiest way would be to boot into OSX then run.


See refit install change to This will bless the drive and efi startup file. Hold down X on boot might force OSX to boot. See boot select. If none of that works boot from OSX CD and then run the script that way.

there is also something called mactel I'm not sure if its in the ubuntu repositories or not and I have not used it yet myself. mactel could in theory bless the drive and file from linux.

share|improve this answer
But the problem is that I can't boot back into OSX. I need to remove the grub bootloader somehow and ensure that I'll then be able to boot using the pre-existing macos bootloader. – Jon Jan 8 '13 at 0:07
I understand see my boot select, or booting from CD – strings Jan 8 '13 at 0:26
Ah OK. Holding down X didn't work, but holding down Option did. Now for some reason I'm getting the rEFIt menu back again by default, though I didn't run the script. – Jon Jan 8 '13 at 20:42
that tends to happen, also if you boot OSX mountain lion it will tend to then boot by default and then you have to enable refit again. glad its fixed. – strings Jan 8 '13 at 21:43

Your Answer


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.