How to Create a Mac Boot Entry in Grub

Add Macos Boot Entry Grub Featured

If you have installed and are dual-booting macOS on your Linux machine, you will find that the macOS entry doesn’t show up in the Grub menu automatically. If you want to boot into macOS, you will need to manually create a Mac boot entry in Grub. Here we show you the instructions to add the correct boot entry in Grub.

Note: We are using Ubuntu in this tutorial, but the steps should work for other Linux distros.

1. Boot into Ubuntu.

2. Open a terminal and type:

sudo gedit /etc/grub.d/40_custom

Add the following to the end of the file:

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

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

sudo update-grub

If you are using distros other than Ubuntu, use the following command instead:

grub-mkconfig -o /boot/grub/grub.cfg

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 macOS.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Damien Oh

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.