Bash script for copying Windows ISO images (or any ISO) to block devices
-s
Source image file-d
Destination block device-c
SHA256 checksum of source image file-C|-D
Specify whether to use Copy Mode (-C
) or DD Mode (-D
)
-b
Partition block size
Copy Mode will format the destination block device with an MBR partition table and create a FAT32 partition on it. This partition contains the source image file contents. The Windows install.wim
file will be split into blocks of 4000MB to avoid FAT32 file size limitations.
This USB should be compatible with both BIOS and UEFI.
DD Mode will use dd
to clone the source image onto the destination block device. Copying will not be performed if the destination block devices checksum is the same as that of the source images.