Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Last active December 30, 2015 14:08
Show Gist options
  • Save fcaldarelli/8b96bf31991ec98bd60f to your computer and use it in GitHub Desktop.
Save fcaldarelli/8b96bf31991ec98bd60f to your computer and use it in GitHub Desktop.
Bootable USB stick using Mac

Instructions (five steps) to create a bootable usb stick (with iso file):

  1. Convert .iso in .img (if you have .iso file);

hdiutil convert -format UDRW -o /path/to/target.img /path/to/ubuntu.iso

  1. Run diskutil list to discover usb stick device number;

diskutil list

  1. Unmount usb stick

diskutil unmountDisk /dev/diskN

  1. Copy .img file in usb stick:

sudo dd if=/path/to/target.img of=/dev/rdiskN bs=1m

Progress can be checked using CTRL+T

  1. Eject usb stick

diskutil eject /dev/diskN

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