Skip to content

Windows 7/8/8.1/10 ISO to Flash Drive burning utility for Linux (MBR/GPT, BIOS/UEFI, FAT32/NTFS)

License

Notifications You must be signed in to change notification settings

shvchk/windows2usb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Windows2usb

Burn Windows ISO to USB Flash Drive on Linux

What is this?

Windows2usb is a bash script which writes Microsoft Windows 7/8/8.1/10 installation DVD images to USB Flash Drive or external HDD on Linux. It was designed with compatibility in mind, and should work in all cases, contrary to other popular Linux tools.

Features:

  • Fully automatic, no preparations required
  • Supports BIOS and UEFI, FAT32 and NTFS
  • Supports custom Windows ISOs with install.wim > 4GiB
  • Uses stock Windows bootloaders where possible
  • Does not break UEFI Secure Boot chain

How to use?

Download latest portable AppImage version from the Releases page, set execution bit (chmod +x windows2usb-*.AppImage) and run it from the terminal.

windows2usb <device> <windows iso> <mbr/gpt/gptntfs>

The program prints removable storage list if no arguments supplied.

If you don't want to use AppImage, you'll need to install all dependencies and download uefi-ntfs.img from Rufus project.

BIOS Boot

BIOS Boot (Legacy Boot/UEFI-CSM) uses stock Windows 7 MBR and NTFS bootloader, courtesy of ms-sys project.

Use this mode if you have old computer without UEFI support or want maximum compatibility of installation media.

To burn ISO in this mode, run:

windows2usb <device> <windows iso> mbr

UEFI Boot

UEFI Boot (gpt mode) creates FAT32 partition with stock Windows UEFI bootloader.

This mode will not work on old computers. Use this mode for new computers with UEFI support.

This mode supports UEFI Secure Boot.

To burn ISO in this mode, run:

windows2usb <device> <windows iso> gpt

UEFI Boot with NTFS Partition

UEFI Boot with NTFS partition uses uefi-ntfs bootloader from Rufus project.

This mode is made for custom installation disks with install.wim file greater than 4 GiB, which could be found on various torrent trackers. Windows2usb creates 2 partitions in this mode, small 1 MiB FAT32 partition with uefi-ntfs and huge NTFS partition with ISO data.

This mode does not support Secure Boot (uefi-ntfs bootloader is not signed by Microsoft or other trusted party).

To burn ISO in this mode, run:

windows2usb <device> <windows iso> gptntfs

If your ISO contains install.wim greater than 4 GiB, gpt mode will automatically detect that and terminate the writing process.

Alternatives

WoeUSB—does not support NTFS partitioning and install.wim > 4GiB; uses GRUB for BIOS Boot.

Credits

This script uses:

  • lsblk and sfdisk from util-linux
  • ms-sys for native Windows 7 MBR and NTFS bootloaders
  • p7zip for ISO extraction
  • autofsync to prevent filesystem bufferbloat and properly show copying progress (AppImage only)

About

Windows 7/8/8.1/10 ISO to Flash Drive burning utility for Linux (MBR/GPT, BIOS/UEFI, FAT32/NTFS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%