Skip to content

Instantly share code, notes, and snippets.

@rwenz3l
Created November 5, 2014 12:34
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 rwenz3l/9d3183d17b4fddfb6ac3 to your computer and use it in GitHub Desktop.
Save rwenz3l/9d3183d17b4fddfb6ac3 to your computer and use it in GitHub Desktop.
Creating Windows Boot Stick on Mac OS X
read -p "Windows_ISO_Path = " winPath
diskutil list | less
read -p "Disk_N = " disk
clear
umount /dev/${disk}
sudo diskutil eraseDisk FAT32 "WINDOWS7" MBRFormat /dev/${disk}
disk="${disk}s1"
sudo dd bs=1m if=${winPath} of=/dev/${disk}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment