Introduction to Dual-Booting macOS and Ubuntu
The desire to explore different operating systems, especially powerful Linux distributions like Ubuntu, on a Mac is a common one for tech enthusiasts, developers, and users seeking greater control and flexibility. While macOS is a refined and user-friendly operating system, Ubuntu offers a robust and open-source alternative that can be ideal for specific workflows, programming, server management, or simply for the joy of experimentation. Installing Ubuntu alongside macOS, a process known as dual-booting, allows you to seamlessly switch between the two operating systems at startup. This guide will walk you through the comprehensive steps required to achieve this dual-boot setup, ensuring a smooth and successful installation.
![]()
Dual-booting your Mac with Ubuntu is a rewarding experience. It leverages the powerful hardware of your Apple machine while granting you access to the vast ecosystem of Linux. This approach avoids the complexities and potential performance limitations of virtual machines for intensive tasks, providing a native experience for both operating systems. By following this guide, you will be equipped to confidently embark on this technical journey, expanding your computing horizons.
Preparation: Backing Up and Creating Ubuntu Installation Media
Before initiating any significant system modification, the paramount step is to safeguard your existing data. A comprehensive backup of your macOS system is non-negotiable. This ensures that in the unlikely event of data loss during the installation process, you can restore your system to its previous state.
Creating a Time Machine Backup
Time Machine, macOS’s built-in backup utility, is the most straightforward method for creating a complete system backup.
- Connect an external storage device: Ensure you have an external hard drive with sufficient capacity to store your entire macOS system. This drive will be dedicated to your Time Machine backups.
- Open Time Machine: Navigate to System Settings (or System Preferences on older macOS versions) and select “General,” then “Time Machine.” Alternatively, you can search for “Time Machine” in Spotlight.
- Select backup disk: Click “Add Backup Disk” or “Select Backup Disk” and choose your external drive.
- Start backup: Time Machine will prompt you to begin your first backup. This process can take several hours, depending on the amount of data you have. Once completed, ensure you periodically run backups to keep your data current.
Downloading the Ubuntu ISO Image
An ISO image is a disc image file that contains the complete contents of an optical disc, such as a CD or DVD. In this case, it’s the installation file for Ubuntu.
- Visit the official Ubuntu website: Navigate to ubuntu.com/download/desktop.
- Choose a release: Select the latest Long Term Support (LTS) version of Ubuntu Desktop. LTS releases are recommended for their stability and extended support period.
- Download the ISO file: Click the download button to obtain the Ubuntu ISO file. Save it to a location you can easily access on your Mac, such as your Downloads folder.
Creating a Bootable Ubuntu USB Drive
To install Ubuntu, you’ll need to boot your Mac from a USB drive containing the Ubuntu installer.
- Obtain a USB drive: You will need a USB flash drive with a minimum capacity of 8GB.
- Download Etcher: Etcher (etcher.balena.io) is a free and open-source utility that simplifies the process of flashing ISO images to USB drives. Download and install Etcher for macOS.
- Flash the ISO:
- Launch Etcher.
- Click “Flash from file” and select the Ubuntu ISO image you downloaded.
- Click “Select target” and choose your USB drive. Crucially, ensure you select the correct drive, as flashing an incorrect drive will erase its contents.
- Click “Flash!” and enter your administrator password when prompted. Etcher will now write the Ubuntu image to your USB drive and verify its integrity. This process can take several minutes.
Partitioning Your Mac’s Hard Drive for Ubuntu
Before installing Ubuntu, you need to allocate a portion of your Mac’s internal storage for the operating system. This involves resizing your existing macOS partition to create free space for Ubuntu.
Using Disk Utility to Create Free Space
macOS’s Disk Utility provides the tools necessary to manage your storage partitions.
- Launch Disk Utility: Open “Applications” > “Utilities” > “Disk Utility.”
- Select your internal drive: In the sidebar, select your primary internal drive (usually named “Macintosh HD” or similar). Ensure you select the drive itself, not just a volume on it.
- Enter Disk Utility’s Partitioning Tool: Click the “Partition” button in the toolbar.
- Resize the macOS partition:
- You will see a pie chart representing your current partitions.
- Click the “+” button below the pie chart to add a new partition.
- Drag the edge of your existing macOS partition to shrink it, creating free space. The amount of space you allocate to Ubuntu depends on your needs. For basic use and development, 30-50GB is a reasonable starting point, but more is always better if you plan to install many applications or store large datasets.
- Important: Do not format this new unallocated space. It should appear as “Free Space” or “Unallocated.”
- Click “Apply” to confirm the changes. Disk Utility will warn you that resizing partitions can be time-consuming and carries a small risk. Proceed only after confirming your backup.
- Exit Disk Utility: Once the resizing is complete, close Disk Utility.

Installing Ubuntu on Your Mac
With your preparation complete and your Mac’s storage partitioned, you are ready to proceed with the Ubuntu installation.
Booting from the Ubuntu USB Drive
This step involves initiating your Mac’s boot process from the Ubuntu installer on your USB drive.
- Insert the Ubuntu USB drive: Ensure the bootable USB drive you created is plugged into your Mac.
- Restart your Mac: Shut down your Mac completely, then power it back on.
- Access the Startup Manager: Immediately after pressing the power button, press and hold the Option (⌥) key on your keyboard. Keep holding it until you see the Startup Manager appear on your screen.
- Select the EFI Boot option: You should see icons representing your internal macOS drive and your USB drive (which might appear as “EFI Boot” or a similar designation related to your USB drive). Use your arrow keys to select the option corresponding to your Ubuntu USB drive and press Enter.
The Ubuntu Installation Process
Once your Mac boots from the USB drive, you will be greeted by the Ubuntu installer.
- Choose “Try or Install Ubuntu”: The initial Ubuntu boot menu will present several options. Select “Try or Install Ubuntu” and press Enter.
- Select “Install Ubuntu”: After Ubuntu loads into a live environment, you will see a desktop. On the desktop, double-click the “Install Ubuntu” icon.
- Language Selection: Choose your preferred language for the installation process and click “Continue.”
- Keyboard Layout: Select your keyboard layout and click “Continue.”
- Updates and Other Software:
- Normal installation: This option installs Ubuntu with a web browser, utilities, office software, games, and media players.
- Minimal installation: This option installs a basic Ubuntu system with a web browser and standard utilities.
- Download updates while installing Ubuntu: Recommended for ensuring you have the latest software and security patches.
- Install third-party software for graphics and Wi-Fi hardware and additional media formats: This is highly recommended as it installs proprietary drivers and codecs that are crucial for optimal hardware performance and media playback on your Mac.
- Click “Continue.”
- Installation Type: This is the most critical step for dual-booting.
- You will see several options. Do NOT select “Erase disk and install Ubuntu” as this will wipe your entire hard drive, including macOS.
- Select “Something else.” This option allows for manual partitioning, giving you control over where Ubuntu is installed. Click “Continue.”
- Manual Partitioning:
- You will now see a list of partitions on your hard drive. Locate the “free space” or “unallocated space” you created earlier with Disk Utility.
- Select the free space and click the “+” button to create a new partition.
- Root Partition (
/):- Size: Allocate the majority of your free space here (e.g., 25GB or more).
- Type: Primary.
- Location: Beginning of this space.
- Use as: Ext4 journaling file system.
- Mount point:
/(this is the root directory for Ubuntu). - Click “OK.”
- Swap Partition (Optional but Recommended):
- Select the remaining free space (or a portion of it, typically 2GB to 8GB, depending on your RAM).
- Click “+” to create a new partition.
- Use as: Swap area.
- Click “OK.”
- Home Partition (
/home) (Optional but Recommended): If you wish to separate your user data from the system, create a/homepartition. This makes reinstalling Ubuntu easier in the future without losing your personal files.- Select the remaining free space.
- Click “+” to create a new partition.
- Size: Allocate the rest of the free space here.
- Use as: Ext4 journaling file system.
- Mount point:
/home. - Click “OK.”
- Bootloader Installation: Ensure that the “Device for boot loader installation” dropdown menu at the bottom of the window is set to your internal hard drive (e.g.,
/dev/sdaor/dev/nvme0n1, not a specific partition like/dev/sda1). This is crucial for the GRUB bootloader to be installed correctly, allowing you to choose between macOS and Ubuntu at startup. - Click “Install Now.”
- Confirm Changes: A window will pop up summarizing the partition changes. Click “Continue” to proceed.
- Location and User Creation:
- Select your time zone on the map.
- Create your user account: enter your name, your computer’s name, a username, and a strong password. You can choose to log in automatically or require a password. Click “Continue.”
The installation process will now begin. This can take 20-45 minutes, depending on your Mac’s hardware and the options you selected.
Post-Installation: Configuring Ubuntu and Boot Management
Once Ubuntu is installed, a few final steps are necessary to ensure a seamless dual-boot experience and optimize your Ubuntu environment.
Restarting and Selecting Your Operating System
After the installation is complete, you will be prompted to restart your computer.
- Restart your Mac: Click “Restart Now.”
- Remove the USB drive: When prompted, remove the Ubuntu USB drive.
- GRUB Boot Menu: Upon restarting, you should be presented with the GRUB (GRand Unified Bootloader) menu. This menu allows you to choose between booting into Ubuntu or macOS.
- Use your arrow keys to select either “Ubuntu” or “macOS” (it might be listed as “Mac OS X” or similar).
- Press Enter to boot into your chosen operating system.
Initial Ubuntu Configuration
Upon booting into Ubuntu for the first time, it’s good practice to perform some initial setup.
- Software Updates: Open the “Software Updater” application from the Ubuntu Dash (press the Super/Windows key and type “Software Updater”) and install any available updates. This is vital for security and system stability.
- Install Drivers: While the “Install third-party software” option during installation usually handles most drivers, it’s worth checking for additional proprietary drivers.
- Open “Software & Updates.”
- Navigate to the “Additional Drivers” tab.
- This tab will list any available proprietary drivers for your hardware. Select the recommended drivers and click “Apply Changes.” You may need to restart your computer after applying these.
- System Settings: Explore the various system settings to customize your Ubuntu experience, including display resolution, network settings, and user accounts.

Troubleshooting Common Issues
While the installation process is generally smooth, you might encounter a few common issues:
- Wi-Fi Not Working: This is often due to missing proprietary drivers. Ensure you selected the “Install third-party software” option during installation and check the “Additional Drivers” tab in “Software & Updates.”
- Trackpad/Keyboard Issues: Similarly, specific hardware components might require proprietary drivers. The “Additional Drivers” tab is the first place to check.
- Boot Issues: If GRUB doesn’t appear, or if you’re stuck in a boot loop, you may need to boot from the Ubuntu USB drive again and use the “Try Ubuntu” option to access the terminal and repair GRUB, or re-examine your partitioning steps.
- Date/Time Synchronization: macOS and Linux handle time differently. If your time is consistently wrong after switching operating systems, you may need to adjust how each OS interprets the hardware clock. For Ubuntu, this often involves running
timedatectl set-local-rtc 1 --adjust-system-clock.
By carefully following these steps, you can successfully install Ubuntu on your Mac, opening up a world of possibilities for development, customization, and exploration within the powerful Linux ecosystem, all while retaining the familiar macOS environment.
