From 2b53db337c12da8099032f71c45c7ee4e72d4997 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 9 Jun 2023 23:21:34 +0300 Subject: [PATCH] windows2usb --- .../2023/make-boot-windows-usb-from-linux.md | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 content/posts/2023/make-boot-windows-usb-from-linux.md diff --git a/content/posts/2023/make-boot-windows-usb-from-linux.md b/content/posts/2023/make-boot-windows-usb-from-linux.md new file mode 100644 index 0000000..2f67ba7 --- /dev/null +++ b/content/posts/2023/make-boot-windows-usb-from-linux.md @@ -0,0 +1,74 @@ +--- +title: "💽 Создание загрузочной флешки с Windows под Linux | windows2usb" +date: 2023-06-09T23:21:05+03:00 +draft: false +tags: [tips, tools, linux, windows] +--- + +```text +| __ _____ _ _ ____ _ _ ____ ____ | +| \ \ / /_ _| \ | | |___ \ | | | / ___|| __ ) | +| \ \ /\ / / | || \| | __) | | | | \___ \| _ \ | +| \ V V / | || |\ | / __/ | |_| |___) | |_) | | +| \_/\_/ |___|_| \_(_) |_____| \___/|____/|____/ | +======================================================== +. Windows 7+ ISO to Flash Drive burning utility . +``` + +Известный безопасник и просто уважаемый человек **ValdikSS** написал скрипт +[windows2usb](https://raw.githubusercontent.com/ValdikSS/windows2usb/master/windows2usb), +который умеет создавать загрузочные USB с ОС Windows под Linux. + +[Ссылка](https://github.com/ValdikSS/windows2usb) на репозиторий. +[AppImage](https://github.com/ValdikSS/windows2usb/releases/latest) пакет. + +## Инструкция по использованию + +```sh +windows2usb [mbr/gpt/gptntfs/gpt+uefintfs] +``` + +- `` — целевое устройство, список доступных появляется + при запуске скрипта без аргументов и флагов. +- `` — путь к ISO образу. +- `[mbr/gpt/gptntfs/gpt+uefintfs]` — необзяательный агрумент, тип ФС. + +```text +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 [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](https://github.com/WoeUSB/WoeUSB) — uses GRUB for BIOS Boot. +- [bootiso](https://github.com/jsamr/bootiso/) — supports Windows and Linux ISOs. +- [Ventoy](https://www.ventoy.net/en/index.html) — Booting multi-tool with brilliant support of Windows ISO direct loading.