The allure of Linux on a Mac is often driven by a desire for greater control, a specific development environment, or simply the curiosity to explore a different operating system. While Macs are renowned for their polished macOS experience, integrating Linux offers a powerful and versatile platform for a wide range of users, from software developers and system administrators to tinkerers and enthusiasts. This guide will walk you through the process of installing Linux on your Mac, focusing on the most common and robust methods, ensuring a seamless and productive dual-boot setup.
![]()
Understanding the Landscape: Options for Linux on Mac
Before diving into the installation process, it’s crucial to understand the primary ways Linux can coexist with macOS on your Apple hardware. The two most prevalent and recommended approaches are dual-booting and virtualisation. Each offers distinct advantages and drawbacks, catering to different user needs and technical comfort levels.
Dual-Booting: A Native Experience
Dual-booting involves installing Linux as a separate operating system alongside macOS on your Mac’s internal storage. This allows you to choose which operating system to boot into each time you start your computer.
Advantages of Dual-Booting:
- Full Hardware Performance: When you boot into Linux, it has direct access to your Mac’s hardware without any overhead. This means you’ll experience the full performance capabilities of your processor, RAM, and storage, making it ideal for demanding tasks like compiling code, running virtual machines within Linux, or engaging in resource-intensive simulations.
- Native Experience: You’ll have a true, unadulterated Linux environment. All system resources are dedicated to the Linux OS, providing a responsive and efficient user experience.
- Flexibility: You can easily switch between macOS and Linux by rebooting your system, allowing you to leverage the strengths of each OS for different workflows.
Disadvantages of Dual-Booting:
- Disk Space Allocation: You need to dedicate a significant portion of your hard drive or SSD to the Linux installation. This can be a concern for users with limited storage.
- Installation Complexity: While the process has become more user-friendly over the years, it still requires more technical understanding and careful planning than simply installing an application. Mistakes during partitioning can lead to data loss.
- Boot Management: You’ll need to manage the boot process, typically using Apple’s Boot Camp Assistant or a third-party bootloader, to select your desired operating system at startup.
Virtualisation: An OS Within an OS
Virtualisation involves running Linux within a virtual machine (VM) environment hosted on your macOS. This is achieved using software like VirtualBox, VMware Fusion, or Parallels Desktop.
Advantages of Virtualisation:
- Ease of Installation and Removal: Setting up a virtual machine is generally much simpler than partitioning a drive. You can typically install Linux as easily as any other application, and removing it is as simple as deleting the VM file.
- No Disk Partitioning: Virtual machines use disk image files that reside on your macOS partition, eliminating the need for complex partitioning or the risk of data loss during the process.
- Seamless Switching: You can run Linux in a window alongside your macOS applications, allowing for instant switching between operating systems without rebooting.
- Snapshots: Most virtualisation software allows you to take snapshots of your VM’s state. This is incredibly useful for testing software or configurations, as you can easily revert to a previous state if something goes wrong.
- Isolation: The virtual machine is isolated from your host macOS system, meaning any errors or malware within the VM are unlikely to affect your primary OS.
Disadvantages of Virtualisation:
- Performance Overhead: Virtualisation introduces a layer of abstraction between the operating system and the hardware. This can lead to a noticeable performance reduction, especially for graphics-intensive applications or tasks that heavily utilize CPU or I/O.
- Resource Consumption: The virtual machine consumes a portion of your Mac’s RAM and CPU resources, which can impact the performance of both the host macOS and the guest Linux OS.
- Hardware Access Limitations: Direct access to certain hardware components, like dedicated GPUs or specialised peripherals, might be limited or emulated, affecting performance and compatibility for specific use cases.
For the purpose of this guide, we will focus on the dual-booting method, as it provides the most comprehensive and native Linux experience on your Mac hardware.
Preparation is Key: What You’ll Need
Before you embark on the installation journey, thorough preparation is paramount. This ensures a smooth process and minimises the risk of encountering unexpected issues.
Back Up Your Data
This cannot be stressed enough: Back up all your important data before proceeding. While the installation process is generally safe when performed correctly, any misstep during disk partitioning could lead to data loss. Use Time Machine or another reliable backup solution to create a complete backup of your macOS system.
Choose Your Linux Distribution
The term “Linux” refers to the kernel, but most users interact with a “distribution,” which bundles the kernel with a desktop environment, system utilities, and applications. Popular and Mac-friendly distributions include:
- Ubuntu: A widely used, beginner-friendly distribution known for its large community support and extensive software repositories. It offers several desktop environment options, with GNOME being the default.
- Linux Mint: Based on Ubuntu, Linux Mint is praised for its ease of use, familiar interface (often resembling Windows), and inclusion of multimedia codecs out of the box.
- Fedora: A cutting-edge distribution sponsored by Red Hat, known for its focus on free and open-source software and early adoption of new technologies. It’s a great choice for developers and those who want to stay on the forefront of Linux innovation.
- Elementary OS: A distribution focused on design and user experience, offering a polished and aesthetically pleasing desktop environment that can be appealing to macOS users.
For this guide, we will use Ubuntu Desktop LTS (Long Term Support) as it is a well-supported and stable choice for dual-booting on a Mac.
Download the Linux ISO Image

Visit the official website of your chosen distribution and download the appropriate ISO image file. Ensure you download the 64-bit version. For Ubuntu, you can find it on ubuntu.com/download/desktop.
Create a Bootable USB Drive
You’ll need to write the downloaded ISO image to a USB drive to boot your Mac from it.
Tools you’ll need:
- USB Drive: A USB drive with at least 8GB of storage (preferably 16GB or more).
- Software to Create Bootable USB:
- balenaEtcher (Recommended for Mac): A free, open-source, and cross-platform tool that makes creating bootable USB drives incredibly simple. Download it from balena.io/etcher.
- Rufus (Windows): While not for Mac directly, if you have access to a Windows machine, Rufus is an excellent option.
Steps using balenaEtcher:
- Open balenaEtcher.
- Click “Flash from file” and select the Linux ISO image you downloaded.
- Click “Select target” and choose your USB drive. Double-check that you’ve selected the correct drive, as all data on it will be erased.
- Click “Flash!” and wait for the process to complete.
Prepare Your Mac’s Storage
macOS uses a journaling file system, and Linux installations can sometimes cause issues with it. Fortunately, Apple provides tools to manage this.
Using Disk Utility (Built-in macOS tool):
- Open Disk Utility (Applications > Utilities > Disk Utility).
- In the sidebar, select your Mac’s internal drive (usually named “Apple SSD” or similar).
- Click the Partition button.
- Click the “+” button to add a new partition.
- You will need to allocate space for your Linux installation. Aim for at least 30-50GB, though more is always better if you plan to install many applications or store data within Linux.
- For the format, do not choose a macOS format. Leave it as “Free Space” or a placeholder until the Linux installer handles the formatting.
- Click Apply. Disk Utility will resize your macOS partition and create the unallocated space for Linux. This is a critical step, and ensuring you have a backup is paramount.
The Installation Process: Step-by-Step
Now that your preparations are complete, it’s time to install Linux. This involves booting from your USB drive and following the on-screen prompts.
Booting from the USB Drive
- Insert the bootable USB drive into your Mac.
- Restart your Mac.
- Immediately after the startup chime (or as soon as the screen lights up if you have a newer Mac without a chime), press and hold the Option (⌥) key.
- Continue holding the Option key until you see the boot manager screen, which will display available bootable drives.
- You should see your Mac’s internal drive (macOS) and your USB drive (often labeled “EFI Boot” or with the name of the Linux distribution).
- Use the arrow keys to select the USB drive and press Enter.
Installing Ubuntu Desktop
Your Mac will now boot from the USB drive, and you’ll be presented with the Ubuntu installer or live environment.
-
Welcome Screen: You’ll see an initial screen with options like “Try Ubuntu” and “Install Ubuntu.” Choose “Try Ubuntu” first. This loads a live session of Ubuntu directly from the USB without making any changes to your hard drive. It’s an excellent opportunity to test hardware compatibility (Wi-Fi, trackpad, keyboard) and familiarise yourself with the desktop environment.
-
Launch the Installer: Once you’re in the live desktop, find the “Install Ubuntu” icon on the desktop and double-click it.
-
Language Selection: Choose your preferred language for the installation process and the installed system. Click “Continue.”
-
Keyboard Layout: Select your keyboard layout. You can use the “Detect Keyboard Layout” option or choose from the list. Click “Continue.”
-
Updates and Other Software:
- “Normal installation” is recommended for most users. It installs a web browser, utilities, office software, games, and media players.
- “Minimal installation” installs a basic web browser and core utilities, saving disk space but requiring you to install most software yourself.
- “Download updates while installing Ubuntu”: Highly recommended if you have a stable internet connection. This ensures you get the latest software and security patches during installation.
- “Install third-party software for graphics and Wi-Fi hardware and additional media formats”: Crucially, check this box. This option installs proprietary drivers and codecs that are often necessary for optimal performance and functionality on Mac hardware, especially for Wi-Fi and graphics. Click “Continue.”
-
Installation Type: This is the most critical step for dual-booting.
- You will see an option like “Install Ubuntu alongside macOS.” This is the recommended and simplest option if the installer detects macOS correctly. It will automatically use the unallocated space you created in Disk Utility.
- If this option is not available or you want more control, you can select “Something else.” This will take you to a manual partitioning screen.
- Manual Partitioning (If “Something else” is chosen):
- You will see a list of your drives and partitions. Identify the “free space” or the partition you prepared in Disk Utility.
- Select the free space and click the “+” button to create new partitions.
- Root Partition (
/): This is where the main operating system will be installed.- Size: Allocate a significant portion of your free space (e.g., 20GB or more).
- Type: Primary.
- Use as: Ext4 journaling file system.
- Mount point:
/(this is the root of the Linux file system).
- Swap Partition: This acts as virtual RAM.
- Size: Typically recommended to be equal to your RAM size if you have less than 8GB of RAM, or about 4-8GB if you have more.
- Type: Primary.
- Use as: swap area.
- Home Partition (Optional but Recommended): This separates your personal files from the system.
- Size: Allocate the remaining free space.
- Type: Primary.
- Use as: Ext4 journaling file system.
- Mount point:
/home
- EFI System Partition (Important for Macs): Your Mac already has an EFI partition for macOS. The Ubuntu installer should detect this and use it for booting. If it asks to format an EFI partition, do not proceed unless you are absolutely certain you know what you are doing. The installer should ideally find and configure the existing EFI partition.
- Device for boot loader installation: This is extremely important. Ensure that the bootloader (GRUB) is installed on the EFI System Partition (usually
/dev/sda1or similar, labeled as EFI). Do NOT install it on the Ubuntu partition itself.
- Manual Partitioning (If “Something else” is chosen):
- Choose “Install Ubuntu alongside macOS” if available. The installer will usually handle the EFI bootloader setup automatically.
- Click “Install Now.” You will receive a warning about changes being written to disk. Confirm to proceed.
-
Location: Select your time zone. Click “Continue.”
-
User Creation:
- Your name: Enter your real name.
- Your computer’s name: This is the hostname for your Linux system (e.g.,
my-mac-linux). - Pick a username: Your login username (e.g.,
user). - Choose a password: Create a strong password and confirm it.
- Login options: Choose whether you want to log in automatically or require a password. Requiring a password is more secure.
- Click “Continue.”
-
Installation Progress: The installer will now copy files and configure your system. This process can take anywhere from 20 minutes to over an hour, depending on your Mac’s speed and the options you selected.
-
Installation Complete: Once the installation is finished, you’ll see a message saying, “Installation is complete. You need to restart the computer in order to use the new installation.”
-
Click “Restart Now.”
Post-Installation Steps and Booting
- Remove Installation Media: When prompted, remove the USB drive and press Enter.
- Boot Manager: Your Mac will restart. You should now see the GRUB bootloader menu. This menu allows you to choose between booting into Ubuntu or macOS.
- Ubuntu: Select this to boot into your newly installed Linux system.
- macOS: Select this to boot back into your Apple operating system.
- First Boot into Ubuntu:
- The first time you boot into Ubuntu, you might be asked to confirm some settings or complete some initial setup steps.
- Update your system: It’s crucial to update your system immediately after installation. Open a Terminal (search for “Terminal” in the applications menu) and run the following commands:
bash
sudo apt update
sudo apt upgrade -y
Enter your password when prompted. - Install additional drivers: While the installer usually handles graphics and Wi-Fi, it’s good practice to check for any additional proprietary drivers. Open “Software & Updates,” go to the “Additional Drivers” tab, and see if any drivers are recommended.
- Configure Wi-Fi and Bluetooth: Ensure your Wi-Fi and Bluetooth are working. If not, revisit the “Install third-party software” option during installation or search for specific drivers for your Mac model online.

Managing Your Dual-Boot Setup
- Default OS: GRUB usually defaults to Ubuntu. If you want macOS to be the default, you can edit GRUB’s configuration. However, a simpler method for Mac users is often to use Apple’s Startup Disk preference pane in macOS. When booted into macOS, go to System Preferences > Startup Disk, select your macOS partition, and click Restart. This will make macOS the default at startup, bypassing GRUB unless you hold the Option key. Conversely, to boot Linux, you’ll need to hold Option during startup to bring up the boot manager.
- Accessing macOS from Linux: You can usually access your macOS partitions from within Linux, but you might not be able to write to them due to the HFS+ or APFS file system. For read-only access, it’s generally straightforward.
- Accessing Linux from macOS: This is more complex. You typically cannot mount Linux partitions (Ext4) natively in macOS. If you need to access Linux files from macOS, consider using a third-party tool like ext4fuse or Paragon’s ExtFS for Mac, though these may have limitations or costs.
Installing Linux on your Mac opens up a world of possibilities, providing a powerful and flexible computing environment that complements the native macOS experience. By following these steps carefully, you can successfully set up a dual-boot system and enjoy the best of both worlds.
