Jump to content

Grub boots Linux and Leo on the same harddrive (GPT) ;-)


pafleraf
 Share

1 post in this topic

Recommended Posts

Hi everybody!

 

first I must say that I am very impressed by the work being done in this forum!

 

I installed a couple of days ago OSX 10.5 and updated to 10.5.5 by using the method described here: http://forum.insanelymac.com/index.php?showtopic=127330

 

Then, I was wondering if I could install/boot linux on the same hard drive. A lot of postings deal with the fact that this is not possible.... But guess what? it is!

 

Here is how I did it:

 

- install OSX as described in http://forum.insanelymac.com/index.php?showtopic=127330

- install some linux (I took xubuntu 8.04).

- copy the chain0 file described in the OSX install to your /boot directory on the linux partition (I copied to /boot/osx_chain0).

- configure grub with the following entry to boot OSX from grub:

 

title OSX

root (hd0,3) # this is my linux partition, EFI part is (hd0,0)

makeactive # may not be necessary, but it works this way at my place

chainloader /boot/osx_chain0

 

- install grub on the first hard drive. For me:

grub-install /dev/sda

 

 

Et voila!

 

I believe that exactly the same method should work with windows, provided you can install it on a GPT drive (not tested).

 

Hope this helps!

 

-pafleraf.

Link to comment
Share on other sites

 Share

×
×
  • Create New...