Author Topic: Booting to OSX on Hackintosh success!  (Read 11759 times)

Offline edgeofthex

  • Newbie
  • *
  • Posts: 1
Booting to OSX on Hackintosh success!
« on: 2013/11/28, 13:04:27 pm »
Thanks to the developers for making such an easy to use, effective recovery tool!

My system is a quad boot PC  with (Linux, Windows, OSX,Mountain lion and Mavericks) with EFI bios. While using SGD to recover a linux installation, I accidentally selected a OSX boot entry, and it booted the OS, with no problems! I've not been able to get Grub to boot a OSX installation ever.

I booted from a SGD image that I DD'ed to a usb. At the first screen, I selected 'find grub.cfg ', and selected the first of two linux installations I have. Then, if I select a OSX installation, it boots perfectly. If I try the same thing booting from HDD (via EFI), it will not boot.  I've attached the grub.cfg that I boot from.

My question is, what does SGD do that my installation of GRUB version 2.00-20 on my Debian linux installation doesn't, that enables me to boot an installation of OSX?

I cannot add an attachment, so I am pasting the portion of my grub.cfg below that boots OSX.

Code: [Select]
menuentry 'Mac OS X (64-bit) (on /dev/sdc2)' --class osx --class darwin --class os $menuentry_id_option 'osprober-xnu-64-ed1cd126f2654683'  {
insmod part_gpt
insmod hfsplus
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 --hint='hd0,gpt2'  ed1cd126f2654683
  search --no-floppy --fs-uuid --set=root ed1cd126f2654683
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
        if [ $do_resume = 0 ]; then
           xnu_uuid ed1cd126f2654683 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
              xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
                xnu_kextdir /System/Library/Extensions
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
« Last Edit: 2013/11/29, 21:03:06 pm by adrian15 »

Offline adrian15

  • Administrator
  • Hero Member
  • *****
  • Posts: 833
  • Please test Rescatux and report back feedback...
    • El blog de adrian15
Re: Booting to OSX on Hackintosh success!
« Reply #1 on: 2013/11/29, 21:05:54 pm »
Are you using Grub-EFI or GRUB-PC (Bios)?

Since Super Grub2 Disk 2.00 beta 5 its grub is both Grub-EFI and Grub-PC.

That might do the difference but, it's just a guess.

If you have liked this piece of advice please consider donating to the Super Grub Disk project.