Skip to content

Instantly share code, notes, and snippets.

@kevinvanderlugt
Created May 9, 2013 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinvanderlugt/5548914 to your computer and use it in GitHub Desktop.
Save kevinvanderlugt/5548914 to your computer and use it in GitHub Desktop.
Creating bootable USB drive from iso.
# sometimes creates it as .img.dmg if so just mv *.img.dmg to *.img
hdiutil convert /path/to/.iso -format UDRW -o /path/to/target.img
# determine the mount *generally for me /dev/disk2*
diskutil list
# unmount the disk where N is the disk number
diskutil unmountDisk /dev/diskN
# write the img to the usb disk
sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m
# eject the usb disk
diskutil eject /dev/diskN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment