Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

drakon64/windows-usb-image-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windows-usb-image-sh

Bash script for copying Windows ISO images (or any ISO) to block devices

RPM build status

Required arguments

  • -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)

Optional arguments

  • -b Partition block size

Copy Mode

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

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.

About

Bash script for creating a Windows USB from macOS and Linux

Topics

Resources

License

Stars

Watchers

Forks

Languages