Yes, you can install Ubuntu alongside macOS on an Intel-based Mac, and this guide walks you through the entire process. For Apple Silicon Macs (M1/M2/M3), dual-booting Ubuntu is not currently supported; you would use a virtual machine instead. This article covers the Intel Mac method in detail, including preparation, installation, and troubleshooting.
Why Dual Boot Ubuntu on a Mac?
Dual booting gives you the choice of two operating systems on one machine. You might want Ubuntu for its open-source ecosystem, lighter resource usage, or specific Linux-only software. macOS remains for tasks like Final Cut Pro or apps that don’t have Linux versions. The key advantage over a virtual machine is native performance—Ubuntu gets full access to your CPU, RAM, and GPU, which matters for development, data science, or older Macs that feel sluggish on macOS.
Before you start, confirm your Mac model. Go to → About This Mac. If it says “Intel� in the chip line, you can proceed. If it says Apple M1/M2/M3, skip to the FAQ section for virtual machine options.
What You Need Before Starting
- An Intel Mac with at least 25 GB of free disk space (more if you plan to install many packages).
- A USB flash drive (8 GB or larger) that will be erased.
- An Ubuntu ISO image (the LTS version is recommended for stability).
- A stable internet connection.
- Time: about 1–2 hours, mostly for the installation.
Back up your Mac completely. Use Time Machine or clone your disk to an external drive. Partitioning and installing another OS carries a small risk of data loss, and you should never skip this step.
Step 1: Create a Bootable Ubuntu USB on macOS
On your Mac, download the Ubuntu ISO from the official website. Then open Terminal (Finder > Applications > Utilities > Terminal). Insert your USB drive and identify its disk identifier with:
diskutil list
Look for your USB drive (usually /dev/disk2 or /dev/disk3). Be absolutely certain you have the right disk, as the next command erases it. Unmount the drive (replace X with your disk number):
diskutil unmountDisk /dev/diskX
Now write the ISO to the drive (replace X and the path to the ISO):
sudo dd if=/path/to/ubuntu.iso of=/dev/rdiskX bs=1m
Wait for the command to finish (it can take several minutes with no output). When it returns, eject the USB with diskutil eject /dev/diskX.
Step 2: Partition Your Mac’s Hard Drive
Open Disk Utility (Finder > Applications > Utilities > Disk Utility). Select your internal drive (not the volume) and click Partition. Click the + button to add a new partition. Set the size (at least 25 GB) and name it “Ubuntu�. For Format, choose “MS-DOS (FAT)�—this is a safe choice that the Ubuntu installer can recognize. Click Apply. This will shrink your macOS partition and create unallocated space for Ubuntu.
Some guides recommend using the Ubuntu installer’s own partitioning tool instead of Disk Utility. That also works, but pre-partitioning with Disk Utility gives you a visual confirmation that everything is set correctly.
Step 3: Install Ubuntu
Restart your Mac and hold down the Option (Alt) key immediately after the chime. You should see the startup manager. Select the USB drive (often labeled “EFI Bootâ€� or with an orange icon). If you don’t see it, you may need to go to System Preferences > Startup Disk and select the USB, then restart while holding Option.
Once the Ubuntu installer loads, choose “Try Ubuntu� first to confirm your hardware works (Wi-Fi, keyboard, trackpad). Then double-click “Install Ubuntu�. Follow these choices:
- Select your language and keyboard layout.
- For installation type, choose “Something else� (manual partitioning).
- Find the free space you created (it will show as “free space� of the correct size). Select it and click + to create a partition: size = remaining space, type = Ext4, mount point = /.
- If you want a swap area, create a small partition (2–4 GB) with type “swap� (optional for modern systems with enough RAM).
- In the “Device for boot loader installation�, select your internal hard drive (e.g., /dev/sda), not a partition.
- Click Install Now and confirm the changes.
Complete the remaining prompts (timezone, username, password) and wait for the installation to finish. When prompted, restart and remove the USB drive.
Step 4: Choose Your OS at Startup
After installation, your Mac boots directly into Ubuntu. To switch back to macOS, restart and hold the Option key to open the startup manager. You’ll see both “Macintosh HDâ€� and “Ubuntuâ€�. Use the arrow keys to select one and press Enter. To make this easier, you can install rEFInd, a boot manager that shows a menu every time, but it’s optional and requires disabling System Integrity Protection (SIP).
Common Problems and Fixes
- Wi-Fi not working: Some Mac models need proprietary drivers. Connect via Ethernet, then go to Software & Updates > Additional Drivers and install the recommended Broadcom driver.
- No boot screen after install: Restart and hold Option. If Ubuntu doesn’t appear, you may need to reset NVRAM (Command+Option+P+R at boot) and try again.
- Keyboard/trackpad not responding: This is rare but can happen on older models. Try using a USB mouse and keyboard during installation, then configure drivers later.
- Battery drains fast: Install the
tlppackage (sudo apt install tlp) to improve power management. - Can’t resize macOS partition: If Disk Utility won’t shrink, run First Aid on the disk, then try again. Also ensure you have enough free space (at least 10% of the disk).
Alternatives to Dual Booting
If you have an Apple Silicon Mac, or if you don’t want to partition your drive, consider these options:
- Virtual machine: Use UTM (free) or Parallels (paid) to run Ubuntu inside macOS. Performance is good for most tasks, though not as fast as native for heavy computation.
- Docker: If you only need a Linux environment for development, Docker provides isolated containers that share your macOS kernel—no full OS needed.
- Live USB: Boot Ubuntu from a USB stick without installing. It’s slower but lets you test compatibility.
Frequently Asked Questions
Can I dual boot Ubuntu on an Apple Silicon (M1/M2/M3) Mac?
No, not natively. Apple Silicon Macs use a different boot architecture (ARM64) and Apple does not provide the necessary bootloader support for Linux. You can run Ubuntu in a virtual machine like UTM, which works well for most uses, but you cannot dual boot it.
Will dual booting slow down my Mac?
No. When you run Ubuntu, it uses the full hardware. macOS is simply not running. The only downside is that you lose disk space to the Ubuntu partition, and you must restart to switch systems.
How do I remove Ubuntu and restore my Mac to just macOS?
Boot into macOS, open Disk Utility, and erase the Ubuntu partition (the one you created). Then select your macOS volume and click the + to resize it back to fill the freed space. Finally, go to System Preferences > Startup Disk and select macOS as the startup disk. This is safe as long as you don’t need anything from Ubuntu.
Will Ubuntu work on my old 2012 MacBook Pro?
Yes, generally. Older Intel Macs are well-supported by Ubuntu, and many users install it to extend the life of aging hardware. You may need to install additional drivers for Wi-Fi or graphics, but the base system should install without issues.
Can I access my macOS files from Ubuntu?
Yes. Ubuntu can read (and usually write) to HFS+ and APFS partitions. Open the Files app, and your macOS drive will appear under Devices. If it’s not visible, you may need to install the apfs-fuse package for APFS volumes.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- iPhone/iPad Recovery Mode When Device Is Unavailable
- Android Button Not Working? Quick Fixes
- Prevent Malicious Package Installation on Linux
- Create App Folders in Windows 11 Start Menu
- Netflix Downloads Expire: Why and How to Renew Them
- Fix BattlEye Service Driver Load Error