Mac is a great platform to run not only the latest macOS ( Catalina ), but also Windows and Linux. Macbook Pro is a popular platform for running Linux.

Under the hood, Mac hardware is remarkably similar to most of the parts used in modern PCs. You’ll find the same processor families, graphics engines, networking chips, and more.

At this time, you cannot install Linux on the internal SSD of a newer MacBook Pro or Mac Pro (2018 or later). However, you can still install it on an external drive.

Running Linux on a Mac

Many Linux distributions can run just fine on a Mac, although installing and configuring the OS can be problematic.

Person using Mac desktop to run Ubuntu Linux
Lifewire / Alison Chinkota

Difficulty level

This project is for advanced users who have the time to work through issues that may arise along the way and are willing to reinstall macOS and their data if problems arise along the way.

Get ready, make a current backup and read through the whole process before installing Ubuntu.

Installation and drivers

Problems when receiving Linux distribution, running on a Mac usually involve two problem areas: getting the installer to work properly with the Mac, and finding and installing all the necessary drivers to get the essential Mac components working.

This guide uses Ubuntu, mainly due to the active forums and support provided Ubuntu Community, and also because of Ubuntu’s lighting Internet.

Why install Ubuntu on your Mac?

There are many reasons why Ubuntu can run on a Mac, including the ability to extend the capabilities of your technology, learn about a different OS, and run one or more OS-specific applications. You can be a Linux developer and understand that Mac is the best platform to use, or you can just try Ubuntu.

This dual boot method can easily be extended to triple boot or more.

What you need

You need a few things before you can get started:

  • Recent backup : use Carbon Copy Cloner or a similar utility for cloning an external boot drive that contains a copy of the Recovery HD volume. Once you have latest backup of all your data unplug it from your Mac to make sure the clone backup wasn’t accidentally deleted during Ubuntu installation.
  • Mac with at least 2 GB of RAM and a 2 GHz dual-core processor : These are the minimum requirements; more RAM and faster processor speed or additional processor cores is useful. The installation described here is done on a 2014 27-inch Retina iMac with macOS Sierra, but this process should work on any Mac released since 2011. If you plan on using an older Mac, you can still install Ubuntu, but you need to pay attention to how the boot process works on older hardware. If you have trouble setting up your old Mac to work with Ubuntu, go to ubuntu forums and find installation guides for your Mac model.
  • USB flash drive 2 GB or more : The flash drive is used as a bootable Ubuntu installer, which contains not only the base installer, but also a live version of Ubuntu. This version can run directly from a USB stick without changing anything on your Mac. This is a great way to check if your Mac and Ubuntu can live together.
  • USB keyboard and mouse A: You need a USB based keyboard and mouse as it is very likely that Ubuntu Bluetooth drivers will need to be installed or updated before the wireless keyboard or mouse can work. If you’re using a MacBook, you probably don’t have anything to worry about.
  • 25 GB free disk space : this is the minimum size recommended for desktop Ubuntu; more space to work might be helpful.
  • Latest stable version ubuntu : check latest version on Ubuntu website and any specific changes that may affect installation or use on your Mac. Download the Ubuntu version on your Mac.

Create a Bootable Ubuntu USB Installer for MacOS

The first task when installing and configuring Ubuntu on your Mac is to create bootable USB flash drive which contains the Ubuntu Desktop operating system. Use this flash drive to not only install Ubuntu, but also to make sure Ubuntu can run on your Mac. You should be able to boot Ubuntu directly from a USB stick without the need for installation. This allows you to test basic operations before you decide to change your Mac’s configuration to accommodate Ubuntu.

Prepare a flash drive

The following process completely deletes all the data you have on the USB flash drive.

  1. Insert USB flash drive and run disk utility which is located in /Applications/Utilities/ .

  2. Find your flash drive on the sidebar Disk Utility . Select the actual flash drive, not the formatted volume that may appear just below the name of the flash drive’s manufacturer.

  3. Select » Erase» on the Disk Utility toolbar.

  4. Set the erase options to the following:

    • Name : Ubuntu
    • Format : MS-DOS (FAT)
  5. Select Erase .

  6. When the process is complete, select Ready .

  7. Before exiting Disk Utility write down device name flash drive . Make sure on sidebar selected name flash drive Ubuntu and find the entry labeled device on the main panel. You should see the device name like disk2s2 or similar. Write down the device name. You need it later.

  8. Exit Disk Utility.

UNetbootin Utility

The UNetbootin utility creates an Ubuntu installer on a USB drive. UNetbootin downloads the Ubuntu ISO, converts it to an image format that the Mac can use, creates the boot chain needed for the Mac OS installer, and then copies it to a USB drive.

Unetbootin Live USB creation tool
  1. UNetbootin can be downloaded from UNetbootin GitHub website . Select version macOS . The utility is loaded as a disk image named unetbootin-mac-677.dmg . The actual number in the file name may change as new versions are released.

  2. Locate the downloaded UNetbootin disk image. Most likely in folder » Downloads «.

  3. Double click .dmg file, to mount the image on your Mac’s desktop. The UNetbootin image will open. You don’t have to move the app to your Applications folder, although you can if you want to. The app works fine from a disk image.

  4. Start UNetbootin with a double click. You may need to go to » System Settings» > » Security and privacy» and select » Still open» .

  5. Enter administrator password and choose OK .

  6. The UNetbootin window will open. UNetbootin supports creating a Linux USB installer using a previously downloaded ISO file, or can download a Linux distribution for you. Do not select the ISO option.

  7. Make sure that selected » Distribution», and then use dropdown menu » Select distribution » to select the Linux distribution you want to install on the USB drive. For this project choose Ubuntu.

  8. Use dropdown menu » Select version» for selection version 18.04_Live_x64 or 19.10_Live_x64 compatible with 64-bit architecture.

  9. The UNetbootin application should now specify the type (USB drive) and drive name where the Ubuntu distribution will be copied to. Menu «Type» must be filled USB stick and the drive must match the device name you specified earlier when formatting the USB drive. Select OK .

  10. UNetbootin downloads the Linux distribution of your choice, creates live Linux installation files, creates a bootloader, and copies them to your USB stick. This may take some time.

  11. Once UNetbootin is complete select exit .

You may receive the following warning: The created USB device will not boot from the Mac. Plug it into your PC and select the USB boot option from the BIOS boot menu. You can ignore this warning if you used the Distribute option and not the ISO option when creating the bootable USB drive.

A live USB stick containing Ubuntu is created and ready to try on your Mac.

Creating an Ubuntu partition on your Mac

If you are planning to permanently install Ubuntu on your Mac while keeping macOS, you need to create one or more volumes specifically to host the Ubuntu OS.

The process is simple. You are using Disk utility to partition an existing volume such as your Mac’s startup disk, to make room for the second volume. You can also use an external drive.

Use Disk Utility to Partition an Ubuntu Volume

Use Disk Utility to Create an Ubuntu Install Target

If you’re going to be using an existing partition, take a look at these two guides on resizing and partitioning:

  • Disk Utility: How to Resize a Mac Volume (OS X El Capitan or later)
  • Partition your drive with OS X El Capitan Disk Utility

Partitioning, resizing and formatting any drive can result in data loss. Make sure you have current backup any data on the selected drives.

If you are using Fusion Drive macOS imposes a two-partition limit on the Fusion volume. If you’ve already created a Windows Boot Camp partition, you won’t be able to add an Ubuntu partition either. Try using an external drive with Ubuntu.

If you plan to use the entire drive for Ubuntu, please refer to this formatting guide:

  • Format your Mac drive with Disk Utility (OS X El Capitan or later)

Regardless of which guide you use, the partition scheme must be GUID Partitioning Map and the format can be MS-DOS (FAT) or ExFat. The format will change when you install Ubuntu. It is only intended to make it easier to identify the disk and partition you are using for Ubuntu later in the installation process.

Give the volume a meaningful name, for example Ubuntu, and note down the size of the partition you make. Both pieces of information are useful for identifying the volume later during Ubuntu installation.

Using rEFInd as a Dual Boot Manager

So far, you’ve been working on getting your Mac ready to receive Ubuntu and have prepared a bootable installer that you can use for the process. Now you need to take the steps to be able to dual boot your Mac on macOS as well as the new Ubuntu OS.

VIEW Boot Manager for Mac OS

Download Managers

Your Mac is already equipped with a boot manager that allows you to choose between several Mac or Windows operating systems that can be installed on your Mac. You can call the boot manager at startup by holding down key » Options» as described in the manual » Using OS X Recovery Disk Assistant» .

Ubuntu comes with its own boot manager called GRUB (GRand Unified Boot Loader). You will be using GRUB shortly after starting the installation process.

Both available boot managers can handle the dual boot process; they can even work with more than two OSes, but the Mac boot manager doesn’t recognize the Ubuntu OS without a bit of a hassle, and the GRUB boot manager isn’t particularly easy to use.

Instead, use a third party download manager called rEFInd . rEFInd can handle all your Mac boot needs, including the ability to choose from macOS, Ubuntu, or even Windows (if you have it installed).

Setting a link

REFInd is easy to install; simple team Terminal is all you need if you use OS X Yosemite or earlier version . OS X El Capitan and later versions have an additional layer of security called SIP (System Integrity Protection). In a nutshell, SIP does not allow ordinary users, including administrators, to modify system files, including preference files and folders, that Mac OS uses for itself.

As a boot manager, rEFInd must install itself in SIP-protected areas, so if you’re running OS X El Capitan or later, you’ll need to disable the SIP system before continuing.

Disabling SIP

Restart your Mac while holding down key » team» (cloverleaf) and keys » ( team + R ). Hold down both keys until the Apple logo appears. Wait loading screen recovery .

  1. Open terminal which can be found in / Applications / Utilities /.

  2. In the Terminal window that opens, enter the following:

    отключить csrutil

  3. Click Enter or return on keyboard.

  4. Reboot your Mac by typing restart in terminal or using the menu on screen recovery .

  5. Returning the Mac desktop, download rEFInd from SourceForge on rEFInd beta, an EFI boot manager utility. Open the refind-bin-0.12.0 (or later) folder from folders » Downloads «.

  6. Open terminal which can be found in / Applications / Utilities /.

  7. Position the terminal window and the Refind-bin-0.10.4 search box so that both are visible.

  8. Drag file named refind-install from the refind-bin-0.10.4 folder to the terminal window.

  9. In the terminal window, click Enter or return .

  10. rEFInd is installed on your Mac.

    These steps are not are mandatory but recommended : Turn SIP back on by typing the following in a terminal: csrutil enable .Then press Enter or return.

  11. close terminal .

  12. Use command » Switch off», to turn off your Mac.

Using a Live USB Drive to Try out Ubuntu on Your Mac

The Ubuntu Live USB you created earlier can be used to permanently install Ubuntu on your Mac. You can also use it to try out Ubuntu without installing an OS. It’s a good idea to try Ubuntu first, because you might find problems before committing to a full install.

Live Ubuntu Desktop

Some of the problems you may find include a live USB installation not working with your Mac graphics card This is one of the most common problems that Mac users face when installing Linux. You may also find out that your Wi-Fi or Bluetooth is not working. Most of these problems can be fixed after installation, but knowing about them ahead of time allows you to get a little familiar with the Mac environment. You can track down issues and possibly purchase the necessary drivers.

Try Ubuntu on your Mac

Before attempting to boot from the live USB drive you created, there is a bit of preparation to be done.

If you’re using a Mac with USB-C, like the latest Macbook Pros, you might have trouble viewing a Live Ubuntu USB created with UNetbootin through the adapter. You can try a flash drive that plugs directly into USB-C, or another adapter like Apple’s own adapter USB-C to USB .

If you’re ready, let’s get started.

  1. Shut down or restart your Mac. If you installed rEFInd, the boot manager will automatically appear. If you choose not to use rEFInd, then once your Mac starts to boot, hold down key Option . Keep holding it down until the Mac Boot Manager displays a list of available devices that you can start from.

  2. Use the arrow keys to select on the list entry Boot EFI\boot\… ( rEFInd ) or EFI Drive entry ( Mac boot manager ). If you don’t see EFI Drive or Boot EFI \boot\… listed, turn off and make sure the USB flash drive is connected directly to your Mac. You can also remove all peripherals from your Mac except for the mouse, keyboard, USB flash drive, and wired Ethernet connection.

  3. After selection icon Boot EFI\boot\… or EFI Drive press a key input or return on keyboard.

  4. Your Mac will boot using the USB flash drive and present the GRUB 2 boot manager. You will see a basic text display with at least four entries:

    • Try Ubuntu without installing it.
    • Install Ubuntu.
    • OEM installation (for manufacturers).
    • Check the disk for defects.
  5. Use the arrow keys to select Try Ubuntu without installing, and then click Enter or return .

The display goes blank for a short time and then the Ubuntu splash screen is shown, followed by the Ubuntu desktop. The total time for this should be from 30 seconds to several minutes. If you have to wait more than five minutes, it’s most likely a graphics issue. If your display stays black, you never leave the Ubuntu splash screen, or the display becomes unreadable, you most likely have a problem with your graphics driver. You can fix this by changing the Ubuntu bootloader command as described below.

Changing the GRUB bootloader command

  1. Turn off your Mac by pressing and holding button food .

  2. After shutting down your Mac, restart your computer and return to GRUB bootloader screen, using the instructions above.

  3. Select Try Ubuntu without installing, but do not press the Enter or Return key. Instead, press the key «e» on the keyboard to enter the editor, which allows you to make changes to the loader commands.

  4. The editor contains several lines of text. You need to change the line that says:

    linux / casper / vmlinuz.efi file = / cdrom / preseed / Ubuntu.seed boot = casper quiet splash ---
  5. Insert the following between the words «splash» and «—»:


    To edit, use keys co arrows, to move the cursor to the location immediately after the word splash and then type nomodeset . There must be a space between splash and nomodeset , and there must be a space between nomodeset and -.

  6. The line should look something like this:

    linux /casper/vmlinuz.efi file = / cdrom / preseed / Ubuntu.seed boot = casper quiet splash nomodeset ---
  7. Click F10 to boot with the new settings.

Changes you make are not saved. They are used only once. If a in future you will need to use option Try Ubuntu without installation you will need to edit the line again.

Addendum nomodeset is the most common method of fixing a graphics problem during installation, but not the only one. If display issues persist, you can try the following:

Determine the brand of graphics card your Mac is using. You can do this by selecting About This Mac in the Apple menu. Find text Graphic arts make a note of the graphic to use, and then use one of the following instead of nomodeset:

nvidia.modeset = 0 
radeon.modeset = 0
intel.modeset = 0

If you’re still having display issues, check the Ubuntu forums for issues with your specific Mac model.

Now that you have a live version of Ubuntu installed on your Mac, make sure your Wi-Fi network is working, as well as Bluetooth if needed.

Installing Ubuntu on your Mac

By now you have a working USB flash drive that contains the Ubuntu installer your Mac is configured with section ready to use to install Ubuntu, and an itchy mouse finger waiting to be pressed icon Install Ubuntu, which you see live. Ubuntu desktop.

Partitioning disks for installing Ubuntu

  1. When you’re ready, select or double-click the icon Install Ubuntu .

  2. Select language to use, then select Proceed .

  3. Allow the installer to download updates as needed for both Ubuntu OS and any drivers you may need. Check the box » Download updates» during installation flag ubuntu and in the field Install third-party software for graphics and hardware Wi-Fi, Flash, MP3 and other media» . Select Proceed .

  4. Ubuntu offers several installation types. To install Ubuntu on a specific partition, select » Something other» from the list, then click » Proceed» .

  5. The installer presents a list of storage devices connected to your Mac. You need to find the volume you created with Mac Disk Utility. Because the device names are different, use the size and format of the volume you created. Once you find the desired volume, use the mouse or arrow keys to select a section and then select Change .

    Ubuntu shows the partition size in megabytes (MB), while Mac shows the partition size in gigabytes (GB). 1 GB is equal to 1000 MB.

  6. Use Use as in the drop down menu, to select the file system to use, preferably in ext4 journaled file system.

  7. Use drop-down menu » mount point», to choose forward slash ( / ), which is called root . Select OK .

  8. You may be warned that the selection of a new partition size must be written to disk. Select Proceed .

  9. With the partition you just modified selected, select » Install now» .

  10. You may be warned that you have not defined any partition to be used for swap space, but you can add swap space later. Select Proceed .

  11. You will receive a notification that your changes will be committed to disk. Select Proceed .

  12. Select Timezone on the map or enter Big City in field. Select Proceed .

  13. Select keyboard layout and select Proceed .

  14. Set up your Ubuntu user account with your name , computer name , Username and password . Select Proceed .

  15. The installation process will begin and the status bar will display the progress. After installation is complete, you can choose Restart .

    You now have a working version of Ubuntu installed on your Mac.

  16. After the reboot is complete, you may notice that the rEFInd boot manager is now running and showing macOS, Recovery HD, and Ubuntu OS. You can click on any OS icon to select the operating system you want to use.

Select icon ubuntu .

If you experience problems after restarting, such as missing or non-functional devices (Wi-Fi, Bluetooth, printers or scanners), please contact to the Ubuntu community for advice on the operation of all your equipment.

Похожие записи