Skip to main content

Thread: GRUB2 and osx86 / Hackintosh


after several attempts understood that, though grub2 able automatically recognize osx86 / hackintosh partition, not able boot.

managed solve this:

1) open privileged nautilus:

code:
 gksudo nautilus
enter password , hit enter;

2) navigate /boot/grub

3) right click on file "grub.cfg" , change permissions, can write it;

4) make backup copy of "grub.cfg" file before proceeding

5) double-click on "grub.cfg" file open gedit , modify it

6) scroll down till find osx grub entry should this:

menuentry "mac os x (on /dev/sda1)" {
insmod hfsplus
set root=(hd0,1)
search --no-floppy --fs-uuid --set d8d3935e73aae5d9
insmod vbe
do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
do_resume=1
fi
fi
if [ $do_resume == 0 ]; then
xnu_uuid d8d3935e73aae5d9 uuid
if [ -f /extra/dsdt.aml ]; then
acpi -e /extra/dsdt.aml
fi
xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
if [ /system/library/extensions.mkext -nt /system/library/extensions ]; then
xnu_mkext /system/library/extensions.mkext
else
xnu_kextdir /system/library/extensions
fi
if [ -f /extra/extensions.mkext ]; then
xnu_mkext /extra/extensions.mkext
fi
if [ -d /extra/extensions ]; then
xnu_kextdir /extra/extensions
fi
if [ -f /extra/devtree.txt ]; then
xnu_devtree /extra/devtree.txt
fi
if [ -f /extra/splash.jpg ]; then
insmod jpeg
xnu_splash /extra/splash.jpg
fi
if [ -f /extra/splash.png ]; then
insmod png
xnu_splash /extra/splash.png
fi
if [ -f /extra/splash.tga ]; then
insmod tga
xnu_splash /extra/splash.tga
fi
fi
}

7) modify (or insert new entry looks this) :

code:
menuentry "macos x, chameleon" {         insmod hfsplus         set root=(hd0,1)         multiboot /boot }
or if have several renamed boot files in os x's partition root this:

code:
menuentry "macos x, chameleon" {         insmod hfsplus         search --file --set=root /chameleon.rc3.boot         multiboot /chameleon.rc3.boot }

sure not change "set root=(hdx,y)" string, it depends on own partition table !!!

8) reboot , see if entry works...

9) if you're able boot osx86 partition print, save or remember post... on major kernel updates possible have repeat process...

cheers

disclaimer : post intended better understanding of grub2 bootloader, don't mean encourage use of hacked versions of apple software. if snow leopard should buy mac (i own one).

this doesn't work me. file not found error. should have "boot" file? or "chameleon.rc3.boot"? in linux partition ? os x partition? see there mach_kernel files.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] GRUB2 and osx86 / Hackintosh


Ubuntu

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???