Woeusb

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

WoeUSB is a command-line utility for creating Microsoft Windows USB installation media, written in Bash.

Microsoft Windows Vista through Windows 11, including Windows PE, are fully supported.

Bootable media can be written using the FAT32 and NTFS filesystems, which can be booted using legacy BIOS and UEFI firmware provided the version of Windows being deployed supports it.

Installation

Emerge

Install sys-boot/woeusb:

root #emerge --ask sys-boot/woeusb

Note that there are no USE flags for WoeUSB.

Additional software

While the original version of woeusb is written in Bash, a Python-based rewrite is underway called woeusb-ng. This package is not yet available in the mainline Gentoo package repository, but a well maintained ebuild exists in GURU.

Usage

WoeUSB will not automatically acquire a Windows installation .iso file, it requires that such a file already be on-hand. From Windows 10 forward it's simple enough to obtain an installation .iso directly from Microsoft's website. That done, the actual boot USB can be created with the following command:

root #woeusb --device <windows_installation_disc_image>.iso /dev/<usb_device> --target-filesystem ntfs

A lot goes into creating a Windows boot disk. This command can take the better part of an hour to complete — potentially longer when executed on resource constrained systems.

Invocation

user $woeusb --help

Removal

Unmerge

Uninstall sys-boot/woeusb:

root #emerge --ask --depclean --verbose sys-boot/woeusb

See also

  • dd — a utility used to copy raw data from a source into sink, where source and sink can be a block device, file, or piped input/output.

External resources