Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[howto] gentoo on macbookpro retina: sync mbr from gpt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mistafunk
n00b
n00b


Joined: 01 Jan 2004
Posts: 5
Location: zurich, switzerland

PostPosted: Mon Aug 27, 2012 7:21 pm    Post subject: [howto] gentoo on macbookpro retina: sync mbr from gpt Reply with quote

after the update to osx mountain lion my mbr was out of sync and i couldn't boot my gentoo (amd64) anymore (or windows for that matter). thought i share my experiences here how to get the dual/triple boot back (i.e. the mbr back in sync).

note:
- you'll need a usb cdrom for the retina mac, e.g. the apple superdrive.
- i assume, you already have a gentoo amd64 preinstalled on the mac with subversion emerged

1. boot from the latest knoppix dvd with "knoppix64 2 noapic" (had to use knoppix as the gentoo live dvd didn't find the usb dvd drive after booting the kernel)
2. chroot into your existing gentoo installation as per gentoo handbook
3. checkout the sources of refit:
Code:
svn co https://refit.svn.sourceforge.net/svnroot/refit refit

4. go to the gptsync source subfolder: trunk/refit/gptsync
4. fix the sources as per this blog post: http://sourceforge.net/tracker/?func=detail&aid=3306218&group_id=161917&atid=821764
5. compile and run (as root): ./gptsync /dev/sda and follow the instructions
6. reboot with options key pressed and you should see your grub again :D

cheers,
simon
Back to top
View user's profile Send private message
krovisser
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2006
Posts: 105
Location: TX, USA

PostPosted: Mon Nov 19, 2012 3:55 am    Post subject: Reply with quote

I found an easier way with 3.3 (or so) kernels is to use the EFI stub capabilities and rEFInd to boot the kernel directly, no need to mess with partitions.

I managed to hose my Mac OS X installation with gptsync. Then on a retry, parted refused to create a partition of the correct type (if that even matters anymore). Tried out the EFI booting with success!
_________________
http://www.krovisser.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum