Posted inGuides / Linux

HOW TO: Dual Boot macOS and Linux on an Intel Mac

Manjaro GNOME desktop with a macOS Big Sur style wallpaper and system information in Terminal

 

You can install macOS Catalina and macOS Big Sur on Linux. You can even install macOS Catalina in a Docker container in Linux. So how about today we’re switching things around, and install Linux on a Mac? But instead of virtualizing it, which is trivial, we install Linux on bare metal.

Editor’s note (November 26, 2026): This walkthrough documents my actual Manjaro installation on an Intel iMac in December 2020. The iMac is no longer operational, so I have not repeated the installation. The original screenshots remain; follow the corrected text rather than copying old commands or disk identifiers from the screenshots.

ALSO READ:

 

A WORD ABOUT T2 Macs

Back in 2018, Apple started shipping Macs with a new T2 security chip. Among other things, the T2 lets you control Secure Boot and whether your Mac can boot from external media. External boot is disallowed by default.

I understand the appeal of being able to boot from an external drive in an emergency. But disabling these protections in advance makes it easier for someone with physical access to boot another operating system. It also does not guarantee access to encrypted data. Keep the default protections unless you actually need to change them. Keep a verified backup and your recovery credentials instead.

These Intel Macs have the Apple T2 Security Chip (see Apple’s model list):

  • iMac (Retina 5K, 27-inch, 2020)
  • iMac Pro
  • Mac Pro (2019)
  • Mac Pro (Rack, 2019)
  • Mac mini (2018)
  • MacBook Air (Retina, 13-inch, 2020)
  • MacBook Air (Retina, 13-inch, 2019)
  • MacBook Air (Retina, 13-inch, 2018)
  • MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)
  • MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
  • MacBook Pro (16-inch, 2019)
  • MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
  • MacBook Pro (15-inch, 2019)
  • MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)
  • MacBook Pro (15-inch, 2018)
  • MacBook Pro (13-inch, 2018, Four Thunderbolt 3 ports)

Another way to check if your Mac has the T2 chip or not:

  1. Press and hold the Option key while choosing Apple menu  > System Information.
  2. In the sidebar, select either Controller or iBridge, depending on the version of macOS in use.
  3. If you see “Apple T2 chip” on the right, your Mac has the Apple T2 Security Chip.

macOS System Information showing Apple T2 chip in the Controller section

 

To allow T2 Macs to boot from external devices, restart the Mac and hold cmd + R to boot into Recovery mode.

Once in Recovery mode, authenticate with your account, go to Utilities in the menu bar and choose Startup Security Utility

Enter your admin password again, and select Allow booting from external or removable media. This setting is separate from Secure Boot. Booting Linux on a T2 Mac generally also requires selecting No Security under Secure Boot. This reduces startup protections; only do it if necessary and understand the tradeoff. See Apple’s Startup Security Utility instructions and the T2 Linux project for model-specific hardware and installation requirements. My iMac was not a T2 Mac. The screenshot below shows the old utility, not recommended settings for every Mac. Exit and reboot your Mac. Restore the original security settings when you no longer need Linux or external boot.

Startup Security Utility showing Secure Boot and external boot settings

 

OK, now let’s move on to the dual boot. This walkthrough is for Intel Macs, based on my old iMac.

 

HOW TO DO IT

1. BACK UP! Use Time Machine, use whatever you want but BACK UP your Mac. You can get a working system back, but your data will be gone in case of any screw-ups. So BACK UP! Generally a good idea anyway….

2. You need to partition your Mac’s drive. To do that, you’re going to use Disk Utility. Make sure it’s set to show all devices, identify your internal physical drive by its name and capacity, select it and click on Partition. Do not erase the drive or change its partition scheme. If you see a choice between adding an APFS volume and partitioning, choose Partition. Check Apple’s partitioning guide. If the layout differs from the screenshots, or you have a Fusion Drive or an existing complex partition layout, stop and consult instructions specific to your Mac.

Disk Utility with Show All Devices selected and the internal drive highlighted

Disk Utility dialog offering to add an APFS volume or partition the disk

 

3. Click on the + to add a new partition.

Disk Utility partition chart with the add partition button

 

4. Select the size of your Linux partition. You can either drag the sliders or manually enter its size. Give the partition a distinctive name ( for example LINUX ) and set it to be formatted to MS-DOS (FAT). This is only a placeholder for the Linux installer to replace. Check the proposed changes carefully: your macOS partition and its data must be preserved. Now click Apply and wait for your new partition to be created.

Disk Utility partition chart with a new MS-DOS FAT partition selected

Disk Utility confirmation dialog for adding a partition

Disk Utility partitioning confirmation showing the proposed disk changes

Disk Utility reporting that the partition operation completed

 

5. Download your preferred Linux distribution. This one is up to you. I’m going to use Manjaro GNOME edition. Download the appropriate Intel-compatible image, verify it using the distribution’s instructions, and “burn” it to a flash drive. This erases the selected USB drive, so double-check the target. I suggest using USBImager ( check the tool’s current instructions for your macOS version ) or Ventoy to create a multi-boot USB drive ( maybe you want to try multiple distros in the live environment before installing ).

6. Now the fun part begins. With the bootable USB drive plugged in, restart your Mac, and hold down the alt key to get into your Mac’s boot menu.

In the boot menu, select your USB drive ( most probably called EFI Boot ) and in a few seconds you’ll be able to play around in the live environment.

Now it’s a good time to check if everything works. Check your Wi-Fi, wired connection, Bluetooth, sound, Thunderbolt etc. Whatever you know you’re going to use, check if it works.

On my old ass iMac, almost everything works out of the box. Almost… I can’t set the screen brightness ( which, frankly, I don’t care about. There might be a fix, but I just don’t care ) and audio only comes out from the left speaker. That can be fixed. Not a perfect fix, but there is one. More on that later.

Manjaro GNOME live desktop with the welcome window open

 

7. Once you confirm that everything you need works, you can start the installer. Most distros use a straightforward installer. But when it comes to choosing where the OS should be installed, make sure you use only the FAT partition you created with Disk Utility on macOS. Identify it by its name, size and position on the correct physical disk. Do not choose Erase disk or format the existing EFI System Partition, APFS container, macOS or recovery partitions. The installer may need to use the existing EFI System Partition for boot files without formatting it. Review the complete proposed partition changes before proceeding. If you cannot identify the target with certainty, cancel the installation.

In my case, I chose to replace a partition, clicked on sda3 ( the FAT32 partition ) to choose it as the partition I wanted to replace. And that was it. Your partition identifier may be entirely different. Optionally you can choose to encrypt your Linux system.

Manjaro installer partition selection with Replace a partition and encryption enabled

Manjaro installer summary showing the original and proposed partition layouts

 

8. The installation begins. It took just a few minutes on my machine. Literally. Depending on the drive, distro and whether you choose to install updates, your installation may take longer. Manjaro took around 4-5 minutes to install in my case.

 

Manjaro installer showing installation progress

Manjaro installer completion screen with Restart now selected

 

9. Restart your Mac and hold the alt key to get into your Mac’s boot menu. Now you should see your Mac’s drive and your Linux drive in there ( and the USB if you didn’t unplug it ).

It’s easy to recognize which is which because your Mac’s drive will be named whatever you named it and the Linux drive will be most likely called EFI boot.

NOTE: if you chose to encrypt your system, you may see a black screen with some weird text on it asking for your passphrase. If it is an actual error or there is no password prompt, don’t assume everything is fine.

If it is the expected LUKS prompt, that’s the pre-boot authentication asking you for a password to decrypt the volume. Enter the password set during installation and press Enter.

10. You’re done, congrats! Now just go ahead and theme your Linux distro to look just like macOS. Probably better. On my iMac it felt snappier and less of a resource hog. And if you choose XFCE as your desktop environment you’ll be flying…

Customized Manjaro GNOME desktop with Terminal and settings windows

Customized Manjaro GNOME application overview with Big Sur style wallpaper

Customized Manjaro desktop with green Manjaro logo and dark file manager

 

 

Before we go further… you will have to understand that you’ve just installed Linux on a Mac. So don’t expect everything to just work. If everything works out of the box, you’re the luckiest SOB on the planet.

But even then, the keyboard will be a pain in the ass. You’ll probably have to swap some keys around if muscle memory is a problem…

I’ve mentioned that on my iMac almost everything worked out of the box except I can’t set the screen brightness and I only get audio out of the left speaker.

I can live with the screen brightness issue ( again, there might be a fix but I just don’t care ), but the audio output coming only from the left speaker drove me nuts. Luckily there’s a quick and relatively easy fix. NOT a perfect one, but one good enough.

I had to create a file called alsa-base.conf inside /etc/modprobe.d/. And inserted this line  options snd-hda-intel model=imac27 into the .conf file.

Upon reboot, I could select the audio card in AlsaMixer and unmute the channels. This + PulseEffects ( now EasyEffects; PulseEffects was what I used in 2020 ) got me a decent sound. Not the rich full sound that I get on macOS, but pretty close.

ALSA mixer in Terminal showing sound card channels and volume levels

 

NOTE: the audio output “fix” worked in my case. It’ll probably not work for you. This ArchWiki page is a very good place to start troubleshooting your errors.

 

HOW TO UNDO IT

I think that Linux will run just fine on most Macs, for most people. Especially if you are willing to do some research and tinker to fix the issues you might encounter.

However, if you decide you want to go back to a macOS-only Mac, here’s what you have to do:
1. Back up both systems and confirm that macOS starts independently using the Option boot menu. Select macOS in Startup Disk. If you want to remove the Linux bootloader, first identify the correct EFI System Partition in macOS Terminal:

diskutil list

Identify the EFI partition belonging to the physical drive you used for Linux. Only if it really is disk0s1, for example, mount it with:

sudo diskutil mount disk0s1

Substitute your verified identifier. The screenshot below shows my original mount command; use the corrected one above instead.

Historical macOS Terminal screenshot mounting an EFI partition using the original command

 

Use diskutil info disk0s1 ( substituting the same identifier ) to confirm the actual mount point. It is often /Volumes/EFI. Back up the contents of the mounted EFI partition to a separate location before editing anything.

Finder showing EFI bootloader directories on the mounted volume

 

In Finder, inspect the EFI directory. In my case the Linux bootloader directory was Manjaro. Only remove a directory after you have positively identified it as belonging exclusively to the Linux installation you are removing. Never delete the entire EFI partition, the APPLE directory or the shared BOOT directory just because it is present. The fallback bootloader may be used by another system. If you are unsure, leave the files alone; an unused bootloader is less of a problem than an unbootable Mac. If you installed rEFInd and want to remove it too, follow its uninstallation instructions.

When you’re done, eject the EFI volume in Finder, as I did in the screenshot below, or use diskutil unmount disk0s1 with your verified identifier. Confirm again that macOS boots before removing Linux partitions.

Finder context menu with Eject for the mounted EFI volume

 

2. Open Disk Utility, select the correct physical drive and click on Partition. Identify only the partitions created for Linux by comparing the layout with your installation notes. Select the Linux partition and click the - button. Review the proposed changes before applying them. Do not delete the EFI System Partition, macOS container, macOS volumes or recovery partitions. If Disk Utility cannot reclaim the space into the existing macOS partition, stop rather than erasing the drive. Backups are essential here too. The screenshots show the layout on my iMac, not a universal partition map.

Disk Utility partition chart with the Linux partition selected for removal

Disk Utility partition chart showing the proposed reclaimed space

 

 

BOOT MANAGER

Let’s say you want to keep your dual-boot. It’s pretty annoying having to hold the option key, every time your Mac boots, in order to be able to choose if you want to boot into your Linux drive or macOS.

This is an easy fix too. Installing a boot manager like rEFInd. Which is useful even if you don’t dual-boot as it will at least allow you to easily boot into Recovery mode.

NOTE: rEFInd is optional. The following is how I installed it in 2020. Check the developer’s current installation instructions, especially the System Integrity Protection and T2 restrictions, and back up your EFI files first. Do not disable SIP as a routine installation step.

1. Download rEFInd ( binary .zip file )
2. Unzip it on your Desktop
3. Reboot your Mac and hold cmd + R to enter Recovery.
4. If you use FileVault, you will need to mount your drive first. To do this, open Disk Utility, select your drive and click Mount. Enter your password and once your drive is mounted, exit Disk Utility.

macOS Recovery Disk Utility showing the mounted drive

 

5. Now, in the menu bar select Utilities > Terminal.

macOS Recovery Utilities menu with Terminal selected

 

6. Locate the extracted directory in Recovery ( use ls /Volumes and inspect the mounted data volume ). For example, if it is on a volume called Macintosh HD – Data, run cd "/Volumes/Macintosh HD - Data/Users/YOUR_USER/Desktop/refind-bin-0.xx.x", replacing the volume, username and version with your actual values. Older installations may have a different volume name. Do not continue unless you are in the correct extracted directory.

Recovery Terminal showing navigation to the extracted rEFInd directory

 

 

7. Run ./refind-install.

7.1 Read any prompts before confirming. Only type Y and press Enter if the installer has identified the intended EFI destination and you understand the warning. Stop if the installation fails or selects an unexpected disk.

Recovery Terminal showing the rEFInd installer confirmation prompt

 

 

8. When the installation is complete, run reboot to reboot your Mac.

Recovery Terminal showing rEFInd installation output and reboot command

 

 

On my Mac, instead of booting straight into macOS ( if you don’t have any other OS installed ) or the last OS used, I would first see the boot manager. Which, let’s be honest, looks like shit ( see screenshot below ). But its functionality is important here, not the looks because rEFInd can be themed and configured.

Default rEFInd boot manager with Linux, macOS and Windows icons

 

 

You can create your own theme, or download ( and modify ) a theme. Just search for refind themes and you’ll find quite a few. Most of them on GitHub. Let’s use this one as an example and change the default view into something like this:

rEFInd Ambience theme with minimalist Linux and macOS boot icons

 

 

If the theme you want to use is available on GitHub, GitLab etc, you might want to install git on your mac first. The easiest way to do that is via Homebrew with brew install git.

Now mount the hidden EFI volume again using the verified identifier as described above. The screenshots below show my old mount point; the examples here assume the actual mount point is /Volumes/EFI and rEFInd is installed in EFI/refind. Confirm both before proceeding.

Next steps you can either do with your preferred GUI programs or via your preferred terminal emulator.

Go to the rEFInd directory and create a folder called themes if it does not already exist. Back up refind.conf to a separate location first. In Terminal, using the verified example mount point:

cd "/Volumes/EFI/EFI/refind"
mkdir -p themes

Only run the second command after confirming that the first succeeded. If you lack write access, use the administrator permissions appropriate for the mounted EFI volume.

Historical Terminal screenshot showing the rEFInd EFI directory and theme folder setup

 

Now clone the theme’s repository into its own subdirectory ( while in the verified rEFInd directory ):

git clone https://github.com/lukechilds/refind-ambience.git themes/refind-ambience

Alternatively, if you’re preferring the GUI way, download the theme, unzip it and copy the refind-ambience directory into the themes folder. Check that themes/refind-ambience/theme.conf exists. The theme is a historical example; its current compatibility has not been tested.

Historical Terminal screenshot cloning the rEFInd Ambience theme and listing files

 

To activate the theme, you will need to edit refind.conf and add include themes/refind-ambience/theme.conf as the last line. Here, you can also edit the default time ( in seconds ) for the timeout autoboot.

Terminal editor showing the rEFInd configuration file and theme include directive

 

Back in the themes/refind-ambience folder, edit theme.conf to suit your needs. A clean minimal theme is nice, however I would suggest adding buttons for entering Recovery mode, shutdown and reboot.

Terminal editor showing rEFInd Ambience theme configuration options

 

Also any icon and wallpaper is fair game. Just use whatever icons and wallpapers you want. Eject the EFI volume when you’re done. Now reboot and enjoy!

One more thing…

When you arrive at the rEFInd boot menu screen, you’ll see a bunch of boot options that you don’t really need on the screen. To hide them, just press the Del key. IF your Mac’s keyboard has such a key. If not, buy or borrow a keyboard that has the Del key. Read more here.

 

Support FSMdotCOM on Liberapay