Skip to content

Instantly share code, notes, and snippets.

@mxie
Created September 25, 2015 20:06
Show Gist options
  • Save mxie/9f74a158476039537991 to your computer and use it in GitHub Desktop.
Save mxie/9f74a158476039537991 to your computer and use it in GitHub Desktop.
Creating a bootable disk
# on any Unix-based system
sudo dd if=<.iso file location> of=<USB location> bs=1m

The USB location is generally in /dev somewhere.

  • On a Mac, run diskutil list, and note the IDENTIFIER value for the disk that looks like your USB drive. It'll be something like /dev/disk2s1. Optionally, you can prepend disk2s1 with an r to make the dd run faster.
  • On Ubuntu, open up the Disk Utility app (or run: gnome-disks). If you select the USB device, the main panel should tell you what the location is. It should look something like /dev/sdb1.

The bs argument may need to be 1M (with a capital M) depending on what system you're running the command on.

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