• Stars
    star
    585
  • Rank 76,419 (Top 2 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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/11 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
Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility
WARNING: this program will delete all existing data on your drive!

windows2usb <device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]

mbr mode: the most universal, RECOMMENDED and DEFAULT method.
   This mode creates MBR partition table with FAT32 partition,
   installs BIOS and UEFI bootloaders, supports Secure Boot.
   install.wim file larger than 4 GiB will be split.
   Suitable for all computers (UEFI/CSM/BIOS).

gpt mode: less universal mode, for modern (UEFI) computers.
   GPT+FAT32, UEFI only, supports Secure Boot.

gptntfs mode: all the same as 'gpt' but NTFS is used.
   GPT+NTFS, UEFI only, supports Secure Boot.
   Large install.wim file will not be split.
   NOTE: not all UEFI are compatible with this mode,
   NTFS driver should be present on the motherboard.

gpt+uefintfs mode: alternative hacky installation method, not recommended.
   This mode uses NTFS partition and third-party 'uefintfs' bootloader.
   GPT+NTFS(data)+FAT32(efi), UEFI only, supports Secure Boot
   (since uefintfs Oct 23, 2021 release).
   Large install.wim file will not be split.

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>

For example:

./windows2usb.AppImage /dev/sdz /home/valdikss/windows10.iso

The program prints removable storage list if no arguments are supplied.

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

Feature Matrix

Modes Legacy/UEFI-CSM Boot UEFI Boot Large ISO (>4GB) Secure Boot File System Part Table
mbr(hybrid) Supported Supported Supported Supported FAT32 MBR
gpt No Supported Supported Supported FAT32 GPT
gptntfs No Partial Supported Supported NTFS GPT
gpt+uefintfs No Supported Supported Supported NTFS GPT

BIOS Boot

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

BIOS boot is supported only in recommended 'mbr' mode.

To burn ISO compatible with BIOS boot (and UEFI boot as well), run:

windows2usb <device> <windows iso> mbr

UEFI Boot

UEFI Boot is supported in all modes. Recommended mode: 'mbr'.

To burn ISO in this mode, run:

windows2usb <device> <windows iso> mbr

'MBR', 'GPT' and 'GPTNTFS' modes utilize Windows UEFI bootloader from the ISO file, with Secure Boot support.

UEFI Boot with NTFS Partition and uefi-ntfs bootloader

A special 'gpt+uefintfs' mode uses uefi-ntfs bootloader from Rufus project. Windows2usb creates 2 partitions in this mode, small 1 MiB FAT32 partition with uefi-ntfs and huge NTFS partition with ISO data.

This mode was included earlier to work with installation disks where install.wim file is greater than 4 GiB, but since then split WIM file functionality was introduced, and now this mode may be considered obsolete.

uefi-ntfs bootloader is signed by Microsoft since Oct 23, 2021 release and supports Secure Boot.

Alternatives

WoeUSB—uses GRUB for BIOS Boot.
bootiso—supports Windows and Linux ISOs.
Ventoy—Booting multi-tool with brilliant support of Windows ISO direct loading.

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)
  • wimlib to split large install.wim files to fit FAT32 partition
  • uefi-ntfs

More Repositories

1

GoodbyeDPI

GoodbyeDPI — Deep Packet Inspection circumvention utility (for Windows)
C
9,201
star
2

blockcheck

Russian ISP blocking type checker NOTE: NOT WORKING CURRENTLY. ВНИМАНИЕ: НЕ РАБОТАЕТ НА ТЕКУЩИЙ МОМЕНТ
Python
1,315
star
3

Super-UEFIinSecureBoot-Disk

Super UEFIinSecureBoot Disk: Boot any OS or .efi file without disabling UEFI Secure Boot
602
star
4

tor-relay-scanner

Tor Relay availability checker, for using it as a bridge in countries with censorship
Python
215
star
5

p0f-mtu

p0f with patches to save MTU value and export it via API (for VPN detection)
C
213
star
6

aceproxy

Ace Stream HTTP Proxy. ABANDONED! NO SUPPORT WHATSOEVER!
Python
194
star
7

openvpn-fix-dns-leak-plugin

OpenVPN plugin to fix Windows DNS Leaks
C
161
star
8

nat-traversal-github-actions-openvpn-wireguard

OpenVPN and WireGuard server on GitHub Actions: representative NAT traversal case
Shell
159
star
9

skype-poll-fix

Reduce Skype CPU load on Linux and Mac OS
C
136
star
10

billgates-botnet-tracker

Some tools to monitor BillGates CnC servers
Python
134
star
11

p0f-mtu-script

WITCH?(VPN detector) source code
PHP
108
star
12

huawei_oled_hijack

Advanced on-screen menu for Huawei E5372, E5577, E5377, E5770, E5885 (and probably others) portable LTE routers
C
93
star
13

endless-sosuch

Endless WebM player from 2ch.hk
Python
65
star
14

thinkpad-shahash

Script to recompute SHA1 hashes for Lenovo ThinkPad Sandy Bridge laptops to get rid of 5 beeps on boot
Python
57
star
15

distvidc

Distributed video encoding
Python
49
star
16

openvpn-radiusplugin

Radiusplugin with various patches and fixes
C
36
star
17

binary_bios_measurements_parser

Linux TPM Trusted Boot binary_bios_measurements file parser/reconstructor
Python
21
star
18

openvpn-block-incoming-udp-plugin

OpenVPN plugin to prevent IP leak via UDP requests
C
20
star
19

sophos-deobfuscation-tool

Sophos Deobfuscation Tool. Deobfuscates passwords obfuscated with Sophos Obfuscation Tool.
C
14
star
20

openvpn-tunpipe

OpenVPN with ocproxy/tunsocks VPN-to-proxy ("socks2tun") support Proof-of-concept
C
13
star
21

terestun

TereStun — STUN over Teredo
Python
11
star
22

tb-tun

TB-TUN is an tiny userspace program to build 6to4/tunnelbroker/ISATAP tunnel for Linux
10
star
23

responder-brute

Brute NTLM hashes captured by Responder with hashcat or john
Python
7
star
24

tor-onionoo-mirror

Tor metrics/onionoo mirror
5
star
25

cisco-unified-cm-decryptor

Decrypts encrypted passwords stored in Cisco Unified Communication Manager backup
Python
3
star
26

inetcom-parser

Get array of TV channels with or without SID for inetcom.tv
PHP
2
star
27

fakku-dl

Fakku.net manga and doujinshi downloader
Shell
1
star