Skip to content

Instantly share code, notes, and snippets.

@klodio
Last active August 29, 2015 14:05
Show Gist options
  • Save klodio/b110c02d7bfe6562a619 to your computer and use it in GitHub Desktop.
Save klodio/b110c02d7bfe6562a619 to your computer and use it in GitHub Desktop.
USB stick - Ubuntu - Mac

#How to make an Ubuntu USB stick on your Mac

This guide didn't work for me, so I tried something else, which was successful. I couldn't edit the wiki so I'm writing here.

  1. Plug your USB stick where everything will be deleted
  2. Open your Terminal (You'll find a Terminal application in your Launcher)
  3. Once there, type diskutil list
  4. Look for the name of your USB stick in the result, and find the associated drive:
  • Here's an example:
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.8 GB disk1
1: Windows_FAT_32 UNTITLED 15.8 GB disk1s1

Here, I could totally recognize the "UNTITLED" name of my USB stick partition. Now, if you check on a few lines above, you'll see the associated drive: /dev/disk1

  1. Now that you know this, unmount the partitions, using diskutil unmountDisk /dev/diskN (/dev/disk1 for me!)
  2. Type: sudo dd if=/path/to/your/ubuntu-14.04-desktop-amd64.iso of=/dev/rdiskN bs=1m (note it's not diskN anymore, it's rdiskN)
  3. Wait a few minutes for the task to complete, and eject the disk using diskutil eject /dev/diskN
  4. You're now the happy owner of a bootable Ubuntu usb stick.

Note: This also works for Arch (and probably many other distributions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment