Skip to content

Instantly share code, notes, and snippets.

@WickyNilliams
Last active August 29, 2015 14:02
Show Gist options
  • Save WickyNilliams/f7d66c07e5e87c040e53 to your computer and use it in GitHub Desktop.
Save WickyNilliams/f7d66c07e5e87c040e53 to your computer and use it in GitHub Desktop.
bootable ISO
# Convert the .iso file to .img using the convert option of hdiutil
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/target.iso
# clean up extension
mv ~/path/to/target.img.dmg ~/path/to/target.img
# Get the current list of devices.
diskutil list
# Insert your flash media.
# Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2).
# Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2).
diskutil unmountDisk /dev/diskN
sudo dd if=/path/to/target.img of=/dev/rdiskN bs=1m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment