Blog/content/posts/2023/make-boot-windows-usb-from-linux.md

75 lines
3.1 KiB
Markdown
Raw Normal View History

2023-06-09 23:21:34 +03:00
---
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 <device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]
```
- `<device>` — целевое устройство, список доступных появляется
при запуске скрипта без аргументов и флагов.
- `<windows iso>` — путь к 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 <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](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.