Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

Easiest way would be to boot into OSX then run.

/efi/refit/enable-always.sh 

See refit install change enable.sh to enable-always.sh. 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
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.