Creating a bootable USB Windows Machine - RailsBank/dotfiles GitHub Wiki

  1. Download a Windows .iso file (it's in Drive/Software).
  2. Connect your USB flash drive into your Mac and you must make sure that it has 8 GB space in it.
  3. Format the USB flash drive to FAT32 by using "Disk Utility" feature. Ensure you select FAT32 and Master Boot
    1. Make bootable if needed via
      diskutil umountDisk /dev/disk2
      fdisk -e /dev/disk2
      flag 1
      quit
      
  4. Open Terminal and run command: diskutil list.
    1. Now from the output, find out the name of the USB drive.
    2. It should be something like – /dev/diskX. X is the number of the drive.
  5. diskutil unmountDisk /dev/disk2
  6. sudo dd if=/path/to/win-iso-file of=/dev/disk2 bs=1M
    1. The process will start but there will be no output for a while.
    2. Once it's complete, it will output records in/out and bytes transferred.
  7. diskutil eject /dev/disk2
  8. Re-plug the USB drive and check its contents. It will have files and folders but especially a setup.exe and an autorun.inf file.
  9. The process is fully complete.