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