If your Mac running OS X Yosemite won’t boot into Ubuntu after a dual-boot setup, the fix usually involves repairing the boot loader or resetting the startup disk. This guide walks you through the most common causes and step-by-step solutions, from simple startup key tricks to reinstalling GRUB.
Why Dual Booting Yosemite and Ubuntu Breaks
Dual booting OS X Yosemite (released in 2014) with Ubuntu is trickier than Windows/Linux combos because Macs use EFI firmware and a special partition layout. The two operating systems store their boot loaders in different places, and a system update, a failed shutdown, or a disk utility repair can overwrite the boot entry that points to the other OS. The most frequent culprit is that Ubuntu’s GRUB boot loader gets installed to the wrong partition, or that the Mac’s NVRAM still holds a stale startup disk setting.
Another common cause is the difference between BIOS and UEFI installation modes. If you installed Ubuntu in legacy BIOS mode on a Mac that expects UEFI, the Mac’s firmware simply won’t see it as a bootable option. Similarly, if you used a tool like rEFInd and then removed it, the boot entries can get orphaned.
First Try: The Startup Manager and NVRAM Reset
Before reinstalling anything, try these two quick checks. They take less than a minute and often resolve the issue without touching your partitions.
- Use the Startup Manager: Restart your Mac and immediately hold down the
Option(Alt) key. After a few seconds, you should see a screen with available startup disks. If Ubuntu appears there, select it with the arrow keys and press Enter. If it boots, the problem is just that the Mac forgot which disk to start from. - Reset NVRAM: Shut down, then turn on and immediately hold
Command + Option + P + Rfor about 20 seconds. The Mac will restart. This clears the stored startup disk setting and can restore the boot menu.
If Ubuntu does not appear in the Startup Manager, the boot loader is either missing or not recognized. Proceed to the next section.
Reinstall GRUB from a Live USB
The most reliable fix is to boot from an Ubuntu live USB and reinstall GRUB to the correct EFI partition. This works even if Ubuntu itself is still intact on the hard drive.
- Create a bootable Ubuntu USB (14.04 or later works fine for Yosemite-era Macs).
- Insert the USB, restart, and hold
Optionto boot from it. Choose “Try Ubuntu” to get to the live desktop. - Open a terminal and identify your disks and partitions with
sudo fdisk -l. Look for the Linux partition (usually ext4) and the EFI partition (usually a small FAT32 partition labeled “EFI” or with the type “EFI System”). - Mount the Ubuntu root partition, for example:
sudo mount /dev/sda2 /mnt(replace sda2 with your actual partition). - Mount the EFI partition:
sudo mount /dev/sda1 /mnt/boot/efi(again, replace with your actual EFI partition). - Bind the system directories and chroot into the installed system:
sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys sudo chroot /mnt
- Inside the chroot, reinstall GRUB:
grub-install /dev/sda(replace sda with your whole disk, not a partition). Then runupdate-grub. - Exit the chroot (
exit), unmount everything, and reboot. HoldOptionto see if Ubuntu now appears.
If you get an error about “cannot find EFI directory,” you may have installed Ubuntu in BIOS mode. In that case, you can try grub-install --target=x86_64-efi to force EFI installation, but this only works if the system was originally set up for UEFI.
When GRUB Doesn’t Work: Use rEFInd
If reinstalling GRUB fails or you want a more Mac-like boot menu, rEFInd is a popular boot manager that can detect both macOS and Linux. It runs from the EFI partition and doesn’t replace your existing boot loaders—it just presents them in a graphical menu.
- Download rEFInd from its official site (the .dmg file).
- Open the dmg and run the
refind-installscript from Terminal. The script automatically copies files to the EFI partition and registers rEFInd with the Mac’s firmware. - Restart. You should see a rEFInd menu with icons for both macOS and Ubuntu. Select either to boot.
rEFInd is especially useful if you have multiple Linux distributions or if GRUB keeps disappearing after macOS updates. It also handles the quirks of Mac EFI better than GRUB in many cases.
Common Error Messages and Their Fixes
- “No bootable device” or a flashing folder with a question mark: This means the Mac can’t find any valid boot loader. Reinstall GRUB or use rEFInd as described above.
- “Missing operating system” after selecting Ubuntu: Usually indicates GRUB is installed but can’t find the kernel. Run
update-grubfrom a live USB chroot. - Ubuntu boots but macOS doesn’t appear in GRUB: Run
update-grubagain from Ubuntu; it should detect the macOS partition. If not, you may need to installos-proberand run it manually. - Kernel panic or black screen on boot: This is often a graphics driver issue, not a boot loader problem. Boot with
nomodesetin GRUB (presseon the Ubuntu entry, addnomodesetto the linux line, then Ctrl+X).
Preventing Future Boot Issues
Once you have a working dual-boot, a few habits reduce the chance of it breaking again:
- Don’t let macOS updates rewrite the boot entries: After a major macOS update, check if Ubuntu still boots. If not, reinstall rEFInd or GRUB—it’s usually a five-minute fix.
- Keep a live USB handy: Always have an Ubuntu live USB with the same version you installed. It’s the universal repair tool.
- Avoid resizing partitions with Disk Utility after the fact: Changing the partition map can confuse boot loaders. If you need more space, back up and reinstall.
- Use a dedicated EFI partition for Linux: If you installed Ubuntu with its own small EFI partition (instead of sharing the macOS one), it’s less likely to be overwritten by macOS updates.
Frequently Asked Questions
Will reinstalling macOS erase Ubuntu?
No, reinstalling macOS over Yosemite (using Recovery Mode) will not touch your Ubuntu partition, as long as you don’t choose to erase the whole disk. However, it will replace the boot loader, so you’ll need to reinstall GRUB or rEFInd afterward.
Can I use Boot Camp to dual boot Ubuntu?
Boot Camp is designed for Windows, not Linux. While you can use it to create a partition, Ubuntu won’t install properly through Boot Camp Assistant. It’s better to use Disk Utility to create a free space and then install Ubuntu manually.
Why does my Mac only boot to Ubuntu and not macOS?
If GRUB is the primary boot loader and it doesn’t show macOS, run update-grub from Ubuntu. If macOS still doesn’t appear, you may have accidentally deleted the macOS recovery partition or the main macOS volume. Check with Disk Utility from macOS Recovery.
Is it safe to delete the Ubuntu partition from macOS?
You can delete it in Disk Utility, but that will leave GRUB pointing to a non-existent system. After deleting, you must reinstall macOS’s own boot loader by running startup disk from System Preferences or resetting NVRAM. Better to remove Ubuntu using its own installer’s “Erase” option, then reinstall GRUB from macOS Recovery.
What if my Mac is from 2012 or older?
Older Macs may not support 64-bit EFI boot for Linux properly. If you have a 32-bit EFI Mac (like some 2008–2010 models), you’ll need a 32-bit version of GRUB or a special boot loader like rEFIt. Check your model’s EFI architecture before installing Ubuntu.
Final Thoughts
Dual booting Yosemite and Ubuntu is a workable setup, but it requires understanding that the Mac’s firmware is the boss. The boot loader is the bridge, and when it breaks, you don’t need to reinstall either OS—just rebuild the bridge. Start with the Startup Manager and NVRAM reset, then move to GRUB reinstallation, and if that fails, rEFInd is your safety net. With a live USB and a little patience, you can get both systems booting again without losing any data.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Notifications Not Working? Fixes That Work
- Fix Thumbnails Not Showing on Network Drives in Windows 11
- Stop Skype Auto-Start in Windows: 5 Fixes
- SQL Injection Prevention: Step-by-Step Guide
- Fix Windows PowerShell Popping Up
- Print iMessage or Text Conversations on iPhone & iPad