Snippet: How to Create a Mac Boot Entry in Grub2

If you have just created a dual-boot system with Mac Snow Leopard and Ubuntu Karmic and find that the Grub2 does not boot up your Mac, you can follow the instruction below to add the correct boot entry in Grub2.

Boot into Ubuntu Karmic.

Open a terminal and type:

sudo gedit /etc/grub.d/40_custom

Add the following to the end of the file:

menuentry "MacOS X Snow Leopard" {
        insmod hfsplus
        set root=(hd0,X) #change X to the Mac SL partition
        multiboot /boot
}

Save and close the file. Back in the terminal, type:

sudo update-grub

That’s it. You should now see an extra entry in your Grub screen. Scroll down to the last entry and it will boot into your Mac Snow Leopard.

Damien
Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox