Create a Bootable Ubuntu USB Drive in OS X

• Updated June 7, 2019

Ubuntu has a great set of instructions on creating a bootable USB drive in Mac OS X, but they have an additional step I found not to be needed: there’s no need to convert the Ubuntu ISO to an IMG file. You can simply download the Ubuntu ISO and use dd to copy it to a USB drive.

Download the Ubuntu ISO

Start by downloading the Ubuntu ISO you want to boot from.

Plugin the USB Drive

Next, plug your USB drive into your Mac; it will automatically be mounted by OS X.

Open Terminal and run the following command to figure out which device the USB drive was mapped to:

diskutil list

Once you figure out which device the USB drive was mapped to, unmount it (disk2 is the device in this example, your device will probably be different):

diskutil unmountDisk /dev/disk2

Copy the Contents of the Ubuntu ISO to the USB Drive

Disclaimer: The following steps will erase everything on your USB drive. I am not, nor is anyone else, responsible for any potential data loss.

When the Ubuntu ISO finishes downloading, you are ready to copy it to the USB drive using dd:

sudo dd if=~/Downloads/ubuntu-14.04.3-server-amd64.iso of=/dev/rdisk2 bs=1048576

You’ll notice a couple of odd things in this command.

First, the block size value: bs=1048576. Most instructions would have bs=1Mb. OS X’s dd command is still a bit dated and doesn’t interpret anything but bytes. 1048576 is 1 MiB in bytes.

Second, the output file value: of=/dev/rdisk2. rdisk2 is used instead of disk2. Why? I would try to explain it, but man hdiutil already does so well:

Since any /dev entry can be treated as a raw disk image, it is worth noting which devices can be accessed when and how. /dev/rdisk nodes are character-special devices, but are “raw” in the BSD sense and force block-aligned I/O. They are closer to the physical disk than the buffer cache. /dev/disk nodes, on the other hand, are buffered block-special devices and are used primarily by the kernel’s filesystem code.

Additionally, read Why is “/dev/rdisk” about 20 times faster than “/dev/disk” in Mac OS X.

The process may take a while to complete depending on the speed of your USB drive.

Unmount the USB Drive

Once the process is finished, OS X will try to mount the USB drive and will throw the following warning:

The disk you inserted is not readable by this computer

You can safely ignore this error, and eject the USB drive through the modal dialog window or by using the following command:

diskutil eject /dev/disk2

Boot from the USB Drive

Finally, plug the USB drive into the computer you want to install Ubuntu on and boot from it.

Modern laptops and desktop motherboards typically have several USB boot options. You may be required to boot to USB-HDD, USB-ZIP, USB-FDD, or USB-CDROM.

If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided affiliate links. I will receive a referral payment from any of the services you sign-up for.

Get faster shipping and more with Amazon Prime: About to order something from Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.

Thanks for reading and take care.