How to triple-boot Windows, macOS and Linux?
As developers, we sometimes require to test our software on different platforms, this can be hard to do especially if you don't own a Mac, fortunately, there is a way to do exactly that.
For the past months I've been using Windows, Linux, and macOS in a single machine, here's how I did it.
In order to get this working, you have to meet the following requirements:
- At least two hard drive units to install the operating systems, but if you prefer to have three separate disks for each system that works too.
- Integrated Intel graphics or dedicated AMD Radeon graphics.
- Intel (Ivy Bridge or higher) or AMD (Bulldozer or higher) processor.
- Basic knowledge of command lines and how to use a terminal.
Let's start with Windows.
- Download the Media Creation Tool from Microsoft's website
- Create a bootable USB using Media Creation Tool.
- Boot into the USB and install Windows in either of the drives.
- Boot into Windows.
This is the first step, let's get to Linux.
This guide will focus on installing Ubuntu, as it is the most popular distribution, but you can choose any distribution you like, my recommendation is PopOS! for developers.
- Download the ISO from Canonical's website
- Create a bootable USB using Rufus.
- Boot into the USB and install Linux either alongside Windows in the same drive in case you have two drives or in the second drive assuming you have three drives.
- Boot into Linux.
Once you've successfully booted your system, follow the instructions to install macOS.
Now you have a dual-boot between Windows and Linux, it's time to inject macOS into the mix. There is no standard way of creating the bootable USB, every computer requires manual setup.
If you'd like to follow the visual guide, check out this link.
If you'd like to follow the written guide, check out this link.
- Follow either of the guides mentioned before to create the bootable USB.
- Once you've created the USB is time to boot from it.
- Install macOS in the third drive.
- Boot to macOS and follow the post-install instructions to get it booting without the USB.
Set up BIOS
Once all the systems are installed, you need to go to your BIOS options.
- Either press the [DEL] or [F2] key, depending on your system, when your manufacturer logo shows up on screen to get to the BIOS.
- Select OpenCore or the drive where you installed macOS as your default boot option and save changes.
Now every time you boot your computer you will be presented with a bootloader, letting you choose between your installations. You can improve how the bootloader looks by following this guide.
If you enjoyed this article, consider sharing it so more people can benefit from it! Also, feel free to @me on Twitter.