My experience tri-booting a Late 2013 MacBook Pro

A little while ago I decided to try tri-booting macOS Big Sur, Windows 10, and Linux Mint 20.3 on an older Late 2013 MacBook Pro in order to do some performance and battery life comparisons (coming soon!). At first I was going to make a howto, but the process ended up being so bizarre and confusing that instead I’m just going to write about the experience. Hopefully it will still be useful.

This isn’t a specifically Linux-oriented post, but it does fit with the sort-of miscellaneous hopefully-interesting things I post about here.

Can’t you just use Boot Camp for tri-booting?

You’d think the answer would be yes, and you’d be right for more modern Intel Macs (probably). However, this Mac uses EFI 1.1 firmware, instead of the much more ubiquitous and better-supported EFI 2.0/UEFI spec. Doing a standard Boot Camp setup with macOS and Windows works just fine, but the caveat is that this installs Windows in BIOS/CSM mode.

This is all absolutely fine, but poses a problem when you then install Linux – the Mac will boot Linux in EFI mode, and then, when installing, Linux clobbers Windows’ bootloader, thinking that Windows is installed in EFI mode! GRUB (Linux Mint’s bootloader) is also unable to load Windows like this, so that’s a second problem to solve.

Please Note: Newer Intel Macs do actually have EFI 2/UEFI firmware, and install Windows in EFI mode, so this (hopefully!) isn’t a problem on them. I haven’t tried it, though, so don’t quote me on that.

Workarounds I tried

I tried a lot of these before I found something that worked. I’m going to include all of them, in an attempt to save you the hassle of it breaking things, if you’re trying this for yourself.

Please note that if you’re using APFS you’ll need to use macOS or macOS Recovery to resize your macOS partition first. Boot Camp guides you through this but it’s easy to do manually with Disk Utility.

Just use a normal Windows 10 install USB without Boot Camp

This is the simplest thing I could try – perhaps the Mac can just EFI boot a standard Windows 10 USB? It might be that I didn’t wait for long enough, but I got to the Windows logo and it just seemed to hang. A bit of research seemed to suggest Windows 10 just wasn’t compatible with EFI 1.1 so this just wouldn’t work.

Use a different EFI partition when installing Linux Mint

This seemed like the next best option for tri-booting: do a normal Boot Camp setup, make some extra space, and then install Mint’s bootloader to a different EFI partition on a USB stick in the hope it won’t clobber Windows. Sadly, this didn’t work, and Mint still installed the bootloader to the internal drive, even though I told it not to!

This is rather worrying to me, that the installer completely ignored what I told it to do. If it was even slightly reproducible I’d definitely report it, but I think it’s going to be hard to make this happen again. Maybe when I have a spare few hours I’ll try in a VM.

Note: I suspect I made the mistake of creating disk partitions on Linux, which probably messed up the Protective MBR that Boot Camp made, so Windows didn’t know how to boot anymore. If you want to know what a Protective MBR is, read this particle by Rod Smith: https://www.rodsbooks.com/gdisk/hybrid.html.

Install Linux in BIOS/CSM mode as well

I really thought I’d cracked it at this point. However, there is one problem: there doesn’t seem to be a way to ask an Intel Mac to boot in BIOS/CSM mode!

On most PCs, you can press F12/Del/whatever your boot menu key is on startup, and manually boot a drive in CSM/BIOS mode. Failing that, you might be able to put the whole firmware in CSM mode for all boots.

On a Mac, there’s apparently a special bless command you can use from within macOS to boot in BIOS/CSM mode, but I couldn’t make it work after installing Windows with Boot Camp. In fact, pretty much every bless command failed with an obscure error. I will admit I’ve not used bless before, but I do wonder if maybe Boot Camp locks the boot settings down somehow.

To read more about bless, and how Mac booting works, read this excellent article from The Eclectic Light Company: https://eclecticlight.co/2018/08/30/booting-the-mac-bless-and-what-makes-a-volume-bootable/.

So essentially I had to give up with this, because I simply couldn’t get Linux to boot in CSM mode. At this point I was starting to get desperate.

The ridiculously over-complicated solution for tri-booting

Installing Windows

During the process of all of the above, I imaged a copy of the special Boot Camp-ised Windows 10 installation media because I got fed-up of redownloading things over and over again. Eventually, I wondered if I could boot this Windows 10 boot media without using Boot Camp.

I used Disk Utility to create some disk space, and then rebooted off of the Windows 10 media, I hoped in EFI mode. It took a very long time to load, but Windows 10 did eventually boot and install!

The caveat here is there’s not really a good way to tell if the installer has booted in EFI mode. My assumption was that if I didn’t use Boot Camp, the Mac would just automatically boot everything in EFI mode. This was the case for me on my Late 2013 MacBook Pro, but your mileage may vary.

After install, I rebooted a few times into macOS and Windows to check everything was okay. I had to install the Boot Camp drivers for Windows but otherwise all was normal and fine.

TL;DR: Create Boot Camp media, and then don’t boot off of it when Boot Camp reboots the Mac. Instead, unplug the drive (or shut down from the Windows installer), and then do a cold boot. Failing that, create the media and then reinstall macOS to reset the firmware settings (!) or try a normal Windows 10 installation USB drive.

Installing Linux Mint 20.3

Please note that this may vary between Linux distributions and Macs.

I then booted the Linux Mint installer, created a partition for Mint, and then installed with the default settings. After this, the “Windows” boot option in the boot menu booted GRUB, and from there I could boot either Linux or Windows with no problem. There is one caveat, which I will describe below.

Linux bootloader configuration

There seems to be a bug which affects this Mac, where SHIM, a tool to support secure boot, draws over the top of GRUB’s boot menu, so you can’t see the menu. To fix this, I mounted my EFI partition from Linux and overwrote EFI/Boot/bootx64.efi with EFI/ubuntu/grubx64.efi to just not run SHIM anymore.

Note: On more modern Intel Macs with EFI 2.0/UEFI, secure boot is supported and hence you probably don’t want to do this, at least not without checking if GRUB works as is first. I’m going to report this bug too, if I can, but I don’t know if it only affects this particular machine, or if it’s already been fixed in SHIM.

Tri-booting Summary

Tri-booting macOS, Windows, and Linux is not for the faint-hearted. Dual-booting, on the other hand, is very easy for both Windows and Linux. For Windows, just use Boot Camp, and for Linux, use Disk Utility to make some disk space for Linux, and just boot a USB installer as usual.

Hopefully this post might be useful to someone who’s thinking of having a similar tri-booting setup. I aim to be back soon with some performance and battery life metrics, just for curiosity’s sake if nothing else. The Linux enthusiast in me says Linux will as least be best for performance, if not battery life, but we shall see.

Hamish McIntyre-Bhatty

I'm a self-employed software developer working on Free Software projects, as well as studying for my degree with the Open University. Being pedantic when it comes to detail is fortunately useful for both of these things! A strong believer in free software, I have a few pay-for programs available under the GPLv3 and enjoy reporting bugs and helping to improve various open source projects, including volunteering at Wimborne Model Town to work on their river control system.

This Post Has 7 Comments

  1. smitemare

    now need a tutorial for quad booting linux windows mac and chrome os

    1. That’d be cool 🙂 But very high effort I think. I’m not sure ChromeOS likes mutli-booting much, IIRC it has a tendency to overwrite other operating systems and repartition the whole drive. This would probably be fine, but macOS needs to be installed first usually.

      I have a Mid-2007 Mac Mini to fix, but once I’ve done that maybe I’ll give it a go just for the fun of it.

  2. Rocket3144

    Early days but got all three working on MacBook Pro 2011 13 inch. Install High Sierra first partitioning disk. Install Windows 10 using custom install to first delete non-Mac area of disk then create a partition for Windows10. Did one PRAM reset to stop Windows boot hanging after install completed? Install Ubuntu last, formatting remainder of disk as ext4. Install rEFInd as boot manager. Installing Linux Mint instead of Ubuntu leaves Windows10 unbootable – for me.

    1. Hamish McIntyre-Bhatty

      Good to know you got it working, well done. I’m surprised Linux Mint would render Windows 10 unbootable given it’s based on Ubuntu but I guess these things happen.

  3. UMassDebater

    I call mine the forbidden quadruple-boot trashcan (macos,ocpl,windows,linux). Can choose between 2 versions of macOS (Monterey last official version, or Sequoia OCPL), along with Tiny Windows 11, and Mint Linux latest version (Tim Cook might just gasp at the sight of this monstrosity).
    To get them all to show in the OpenCore boot picker, I had to do the following-

    1. I installed the operating systems in the following order: Monterey (usb with regular Apple installer), Sequoia (OCPL patched usb), then Linux, then Tiny Windows 11 (rufus-made installer). I did not use BootCamp for windows, it is too quick to destroy the EFI entries for other OSs or corrupt other partitions. It can also be hard to get Windows 11 installer to cooperate with bootcamp.
    I also installed Windows AFTER Linux, because the Mint installer kept overriding the EFI partition, and removing the Microsoft files for windows. Even if I gave it a different location to put the EFI bootloader. This is mentioned in comments above and is a known issue for 2013 Mac Pro with non-mac OS’s.
    So just make sure to install Linux first, then Windows, and both will remain in EFI, no worries if they don’t show in the boot-picker yet.

    2. Once you have all partitions set up and OS’s installed, (all .efi bootloaders should be in separate folders, contained on the EFI partition, for me /dev/disk0s1) boot into a macos, repatch a clean copy of OpenCore to disk (EFI partition). Even if the OS’s do not show in the boot picker, do not reinstall any of them.
    At open core options during startup, press Spacebar, and select “OpenShell” which opens up a firmware-level command prompt. Type command “fs0:” to enter the EFI partition. then cd to the directory for your non-macOS efi file. ie for linux it was “cd /efi/ubuntu/” then “ls” to see files, then just type in the efi file to boot, for me “grubx64.efi”. For Windows, “cd /efi/Microsoft/boot” then the file “bootmgfw.efi”. You do not usually have to use the BOOTX64.EFI or replace it for 2013 Mac Pro, at least in my case using latest OpenCore (v2.4.1).

    3. Okay, now we know where the working bootloaders for Linux and Windows are located, and they boot correctly from OpenSSL using those EFI files. Now boot back into a macOS, and mount the EFI partition using terminal > “sudo diskutil mount /dev/disk0s1” or whichever is your EFI. First, make a copy of the whole EFI directory, to your desktop or a USB something in case you need to revert.

    Then, copy the EFI files you just booted (from EFI/ubuntu or EFI/Microsoft/Boot etc), copy those files into /EFI/BOOT, placing alongside BOOTX64.EFI. You do not need to rename any of them. OpenCore sees the grub and microsoft EFI files from /EFI/BOOT/ (default folder), and makes entries for them in the boot picker.

    4. That’s it!! If it still doesnt show, try editing the /EFI/OC/config.plist file using a proper plist editor, to add a “Bless Override” entry corresponding to grubx64.efi, there is already one in there for microsoft by default.

    My OpenCore boot options are the following:

    Windows (Win11 Pro) , EFI (Mint Linux-ubuntu), Monterey HD, Sequoia HD
    ^ fun fact, windows 11 will automatically activate for free on Macs even without using bootcamp to install, i knew this worked for Windows 10, but nice it works for 11 too!

    My EFI parition looks like the following-

    EFI (/dev/disk0s1 – 150.0 MB, 52.3 MB used)
    /EFI
    /APPLE <– do not modify anything in this directory!!!
    /BOOT <– directory where we copied our non-macos .efi files into
    – BOOTX64.EFI <– Apple default, unmodified
    – grubx64.efi <– from our Linux bootloader in /ubuntu
    – bootmgfw.efi <– from our Windows bootloader in /Microsoft/Boot
    /Microsoft
    /BOOT
    – bootmgfw.efi and other files <– from actual Windows 11 installtion
    /ubuntu
    – grubx64.efi and other files <– from actual Linux installation
    /OC <– location of config.plist for OpenCore

  4. UMassDebater

    ^ Correction to my prior comment, where i mentioned “OpenSSL”, meant to say “OpenShell”.
    One last thing to mention is important, only copy ONE EFI file for each non-mac OS.
    ie for microsoft only copy the single file bootmgfw.efi , and for linux only copy the grubx64.efi (or shimx64.efi if you use secure boot on your mac, not supported on my 2013 mac pro).

    … So in EFI (/dev/disk0s1): /EFI/BOOT/ you should only paste the single .EFI for each OS, and no other files

Leave a Reply