Booting OSX 10.5 Leopard Hackintosh with grub2

written by silvio on January 7th, 2010 @ 11:23 PM

The new Grub2 os-prober script can successfully detect and confgure my triple boot system (Debian, WinXp and Osx), but my hackintosh is a bit unstable running on a multi-core cpu.

The solution is passing the cpu=1 parameter to Leopard’s kernel, but I wasn’t able to do that via the os-prober, so I created a new menuentry.

Put the following lines inside /etc/grub.d/40_custom :

menuentry "MANUAL Hackintosh OSX Leopard 10.5" {
set root=(hd0,2)
chainloader /usr/standalone/i386/chain0 cpu=1
}

Grub2 counts devices starting from 0 and partitions from 1, my hackintosh is installed on the second partition of the first drive:

  • WinXP on /dev/sda1 becomes root=(hd0,1) for grub2
  • Osx on /dev/sda2 becomes root=(hd0,2) for grub2

Just for completeness, this is my full /etc/grub.d/40_custom :

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "MANUAL Win XP" {
set root=(hd0,1)
chainloader +1
}

menuentry "MANUAL Hackintosh OSX Leopard 10.5" {
set root=(hd0,2)
chainloader /usr/standalone/i386/chain0 cpu=1
}

Don’t forget to run update-grub to generate the new /boot/grub/grub.cfg

Comments

  • cdummy on 31 May 06:18

    My hachintosh on MSI Wind with Ubuntu with Grub2 doesn’t boot at all just like most of the people because Grub2 detects OS X but tries to boot kernel directly. I just get the blue screen that’s it. I tried Your method it doesn’t work for me either.

  • Steve Rowe on 30 Mar 12:28

    Great post – thanks This worked great on my system with Snow leo 10.6.7 Windows xp Windows 7 Ultimate Linux Mint 10 BackTrack4

    Easy once you know how.

    Thanks again.

  • Georg Juenger on 26 May 22:26

    worked well on my Dell mini 9 dual booting Unbuntu 11.04 and OSX

  • peter on 20 Jun 04:40

    Hi there,

    I have the hackintosh 10.6.6 version which requires the use of an CD to boot.

    NawComModCD.iso came with it.

    What I am wondering is whether i can use Grub2 to boot the iso image and if so, could you possibly help with the menu entry required to do it?

    Thanks in Advance :)

Post a comment

Options:

Size

Colors