Blog/content/posts/2023/make-boot-windows-usb-from-linux.md
2023-06-09 23:21:34 +03:00

3.1 KiB
Raw Blame History

title date draft tags
💽 Создание загрузочной флешки с Windows под Linux | windows2usb 2023-06-09T23:21:05+03:00 false
tips
tools
linux
windows
| __        _____ _   _     ____    _   _ ____  ____   |
| \ \      / /_ _| \ | |   |___ \  | | | / ___|| __ )  |
|  \ \ /\ / / | ||  \| |     __) | | | | \___ \|  _ \  |
|   \ V  V /  | || |\  |    / __/  | |_| |___) | |_) | |
|    \_/\_/  |___|_| \_(_) |_____|  \___/|____/|____/  |
========================================================
.    Windows 7+ ISO to Flash Drive burning utility     .

Известный безопасник и просто уважаемый человек ValdikSS написал скрипт windows2usb, который умеет создавать загрузочные USB с ОС Windows под Linux.

Ссылка на репозиторий.
AppImage пакет.

Инструкция по использованию

windows2usb <device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]
  • <device> — целевое устройство, список доступных появляется при запуске скрипта без аргументов и флагов.
  • <windows iso> — путь к ISO образу.
  • [mbr/gpt/gptntfs/gpt+uefintfs] — необзяательный агрумент, тип ФС.
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.

Зависимости

  • mkfs.ntfs — пакет ntfs-3g.
  • wimsplit — пакет wimlib.
  • ms-sys — есть в AUR.

Альтернативы

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