People regularly ask me to help them rescue Windows computers that have become locked or damaged. Sometimes, I can use a Linux USB boot drive to mount Windows partitions and then transfer and back up files from the damaged systems.
Other times, clients lose their passwords or otherwise lock their login account credentials. One way to unlock an account is to create a Windows boot disk to repair the computer. Microsoft allows you to download copies of Windows from its website and offers tools to create a USB boot device. But to use them, you need a Windows computer, which means, as a Linux user, I need another way to create a boot DVD or USB drive. I have found it difficult to create Windows USBs on Linux. My reliable tools, like Etcher.io, Popsicle (for Pop!_OS), and UNetbootin, or using
dd from the command line to create bootable media, have not been very successful.
That is until I discovered WoeUSB-ng, a GPL 3.0 Linux tool that creates a bootable USB drive for Windows Vista, 7, 8, and 10. The open source software has two programs: a command-line utility and a graphical user interface (GUI) version.
The GitHub repository contains instructions for installing WoeUSB-ng on Arch, Ubuntu, Fedora, or with pip3.
If you're on a supported Linux operating system, you can install WoeUSB-ng using your package manager. Alternatively, you can use Python's package manager, pip, to install the application. This is universal across any Linux distribution. There's no functional difference between these methods, so use whichever's familiar to you.
I'm running Pop!_OS, which is an Ubuntu derivative, but being comfortable with Python, I chose the pip3 install:
$ sudo pip3 install WoeUSB-ng
Create a boot disk
You can use WoeUSB-ng from the command line or the GUI version.
To create a boot disk from the command line, the syntax requires the command, a path to your Windows ISO file (
/dev/sdX in this example; use the
lsblk command to determine your drive), and a device:
$ sudo woeusb --device Windows.iso /dev/sdX
You can also launch the program for an easy-to-use interface. In the WoeUSB-ng application window, find the Windows.iso file and select it. Choose your USB target device—the drive you want to make into a Windows boot drive. This will ERASE all information on this drive, so choose carefully—and then double-check (and triple-check) your choice!
Once you're sure you have the right destination drive selected, click the Install button.
Creating media takes five to 10 minutes, depending on your Linux computer's processor, memory, USB port speed, etc. Be patient.
Once the process is finished and verified, you have a functional Windows USB boot device to help someone repair their Windows computer.
Open source is all about helping other people. Very often, you can help Windows users by using the Linux-based System Rescue CD. But sometimes, the only way to help is directly from Windows, and WoeUSB-ng is a great open source tool to make that possible.