Skip to content

Instantly share code, notes, and snippets.

@coreygo
Last active May 27, 2018 21:56
Show Gist options
  • Save coreygo/628a6044d2a7d9cd11ae7c8dac772814 to your computer and use it in GitHub Desktop.
Save coreygo/628a6044d2a7d9cd11ae7c8dac772814 to your computer and use it in GitHub Desktop.

Old Method

  1. hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
  • Note: OS X tends to put the .dmg ending on the output file automatically.
  • Rename the file mv /path/to/target.img.dmg /path/to/target.img
  1. diskutil list to get the current list of devices
  2. Insert flash media
  3. diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  4. diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command - in the previous example, N would be 2)
  5. sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
  6. diskutil eject /dev/diskN

New Method

  1. diskutil list to get the current list of devices
  2. Insert flash media
  3. diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  4. diskutil eraseDisk FAT32 "WINDOWS10" MBRFormat diskN (replace N with the disk number from the last command - in the previous example, N would be 2)
  5. Mount Windows ISO
  6. cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WINDOWS10/
  7. diskutil eject /dev/diskN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment