在 Ubuntu 上安装 WoeUSB 来创建一个可启动 Windows USB
USB Windows

> 
> 想在 Linux 上创建一个可启动 Windows USB ？Ventoy 是一个很好的选择。
> 
> 
> 


但是，在 Ventoy 出道之前，WoeUSB 是用于创建可启动 Windows USB 的首选工具。原版 WoeUSB 工程在 2014 年左右香消玉损。


鉴于其流行程度，一位新的开发者接过了将其起死回生的任务。因此，WoeUSB-ng 诞生了。在这里，“ng” 是 <ruby> 新生代 <rt>  new generation </rt></ruby> 的缩写。换句话说，[WoeUSB-ng](https://github.com/WoeUSB/WoeUSB-ng) 是新生代的 WoeUSB 。但是，因为原版的工具已经不存在了，我将 WoeUSB-ng 描述为 WoeUSB 。


在这篇教程中，我将向你展示如何在 Ubuntu Linux 上安装 WoeUSB 。我也将分享使用 WoeUSB 来创建可启动 Windows USB 的步骤。


但是，在此之前，让我们快速查看这个令人惊叹的工具的特色。


### WoeUSB


![install woeusb ubuntu](/data/attachment/album/202211/05/151038m69dowd8w6i6fdfr.png)


WoeUSB 是一个简单的工具，其唯一的目的是 [在 Linux 上创建可启动 Windows USB](https://itsfoss.com/bootable-windows-usb-linux/) 。


原版 WoeUSB 是一个 shell 脚本。这个原版 WoeUSB 被使用 Python 重写为 WoeUSB-ng ，它可以安装在你的系统上，并且通过命令行或 GUI 界面。


特色：


* 支持老式 PC 启动或 UEFI 启动
* 支持 FAT32 和 NTFS 文件系统
* 支持使用物理安装盘或磁盘镜像作为源
* 它可以用于 Windows Vista 及其更高版本的任意语言或变体版本
* 老式的 MBR/IBM PC 兼容启动模式
* 本机 UEFI 启动支持 Windows 7 及其更高版本的镜像（仅限于将 FAT 文件系统作为目标的情况）


### 在 Ubuntu 和其它的 Linux 发行版上安装 WoeUSB


Arch Linux 用户可以从 AUR 安装 WoeUSB-ng 。


对于其它的发行版，可以使用 PIP 来安装 WoeUSB 。毕竟，它是一个 Python 应用程序。在这里，我将为 Ubuntu/Debian 提供一些命令。


为安装 WoeUSB-ng ，你首先需要 [安装 PIP](https://itsfoss.com/install-pip-ubuntu/) 和其它必要的依赖项。



```
sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin

```

在这之后，你可以安装 WoeUSB-ng ，通过运行：



```
sudo pip3 install WoeUSB-ng

```

对于所有的其它安装，你可以参考其 [操作指南](https://github.com/WoeUSB/WoeUSB-ng#installation) 。



> 
> **[WoeUSB-ng](https://github.com/WoeUSB/WoeUSB-ng)**
> 
> 
> 


### 前提条件: 获取 Windows 的 ISO 文件和一个兼容的 USB 磁盘


这一点没有什么需要说的。你需要有一个你将要安装的 Windows 版本的 ISO 文件。


从微软的网站，你应该能够获取 Windows 10 和 11 的ISO 文件。



> 
> **[下载 Windows](https://www.microsoft.com/en-in/software-download/)**
> 
> 
> 


如果你有较旧的 Windows 版本的 ISO 文件，也可以使用它们。


除此之外，你需要有一个至少 8 GB 大小的 USB 驱动器磁盘。你应该使用 NTFS 的文件系统来格式化它filesystem.


### 方法 1: 使用图形用户界面化的 WoeUSB 来创建一个可启动的 Windows USB（推荐）


从 <ruby> 活动概述 <rt>  activity overview </rt></ruby> 或菜单中打开 woeusb-gui 。


![woeusb in ubuntu activities overview](/data/attachment/album/202211/05/151038si222jek25j72wy2.png)


在应用程序窗口中，选择下载的 Windows ISO 和所希望的 USB 驱动器，如截屏所示，然后按下 <ruby> 安装 <rt>  Install </rt></ruby> 按钮。


![woeusb gui setup](/data/attachment/album/202211/05/151039jwkb8z5ad7mdaqe6.png)


在应用程序中也其它可用的调整，可以通过顶部的菜单栏来访问使用。


在按下“安装”按钮后，woeUSB 将开始格式化和复制文件。你需要等待一些时间，因为这里有大约 6 GB 的文件需要复制。


![woeusb writing windows iso to the usb drive](/data/attachment/album/202211/05/151039hl5yalsyjqml5jew.png)


在复制完成后，WoeUSB 将会提示一个成功的对话框。你现在可以安全地弹出 USB 驱动器，并将其作为一个可启动 USB 驱动器来使用。


![woeusb completed writing and gives a success message](/data/attachment/album/202211/05/151039x0nmtte6fftnnpft.png)


### 方法 2: 从终端中使用 WoeUSB（针对专家）


WoeUSB-ng 软件包也提供一个名称为 `woeusb` 的命令行实用程序。


为使用 WoeUSb 来创建一个可启动的 Windows USB ，你需要运行下面的命令：



```
sudo woeusb --device <path/to/Windows/ISO> <name/of/the/USB/device> --target-filesystem ntfs

```

在这里，`--device` 标识用于擦除 USB 和从零开始创建一个可启动 USB 驱动器。同样，`--target-filesystem` 标识用于设置为 NTFS ，来避免将要复制的文件大小超过 FAT 文件系统的限制。


![woeusb commandline](/data/attachment/album/202211/05/151040vfgc66ig1e6xb1j2.png)


该过程将花费一些时间来完成复制。在完成复制后，它将显示一条成功的信息。


![woeusb commandline success message](/data/attachment/album/202211/05/151040qfj9f2z9c2c25pj4.png)


此时，你可以安全地弹出 USB 驱动器，并在其它的个人电脑上将其作为一个 Windows 可启动 USB 来使用。


### 超值: 使用 WoeUSB 的 Bash Shell 脚本（针对专家）


WoeUSB 也提供一个 Bash Shell 脚本，在你的系统上，它不需要安装任何东西就可以使用。


首先，你需要从 [该工程的发布版本页面](https://github.com/WoeUSB/WoeUSB/releases/tag/v5.2.4) 下载 Shell 脚本。


在 [执行 Shell 文件](https://itsfoss.com/run-shell-script-linux/) 之前，你需要获取所需要的依赖项。为安装它，运行：



```
sudo apt install wimtools

```

现在，通过文件管理器或通过命令行来使它可执行。


![make woeusb script executable](/data/attachment/album/202211/05/151041n91lgx6dgl1l88lx.png)


或者，你可以运行 `chmod +x <path/to/script>` 来使它可执行。现在，运行已下载目录中的 `./woeusb-5.2.4.bash -h` 来获取帮助。


为创建一个现场 USB ，该进程类似于 woeusb-ng 的命令行部分，但是你没有安装任何东西。


因此，在一个终端中，运行：



```
sudo <path/to/downloaded/script/file> --device <path/to/windows/ISO> <name-of-USB-device> --target-filesystem ntfs

```

这将开始将 ISO 写入 USB 驱动器，如下面的截屏所示：


![woeusb bash script running without installation](/data/attachment/album/202211/05/151041g9ukvuxmlv9bbd9w.png)


在完成后，你可以安全地弹出 USB 驱动器，并将其作为可启动 USB 使用。


### 移除 WoeUSB


如果你使用 PIP 安装 WoeUSB ，你也可以类似地移除它：



```
pip3 uninstall WoeUSB-ng

```

你可以在你的系统上保留或移除已安装的依赖项。这完全取决于你。我建议保留它们。


### 总结


大约 10 年前，WoeUSB 是一个非常流行的工具。其他人以另外一种形式将其复活是很好的，这就是开源的艺术。


我希望这篇教程会帮助你。如果通过 WoeUSB 创建的 Windows USB 不能按部就班地工作，你可以 [尝试使用 Ventoy](https://itsfoss.com/bootable-windows-usb-linux/) 。享受它。




---


via: <https://itsfoss.com/install-woeusb-ubuntu/>


作者：[Sreenath](https://itsfoss.com/author/sreenath/) 选题：[lkxed](https://github.com/lkxed) 译者：[robsean](https://github.com/robsean) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Want to create a bootable Windows USB on Linux? Ventoy is a pretty good option.

But before Ventoy, WoeUSB used to be the go-to tool for this purpose. The original WoeUSB project got discontinued around 2014.

Owing to its popularity, a new developer took the task of bringing the project back from the dead. And hence WoeUSB-ng was born. “ng” here stands for “new generation”. In other words, [WoeUSB-ng](https://github.com/WoeUSB/WoeUSB-ng) is the new generation WoeUSB. But since the original tool doesn’t exist anymore, I’ll be referring WoeUSB-ng as WoeUSB.

In this tutorial, I’ll show you how to install WoeUSB on Ubuntu Linux. I’ll also share the steps for creating bootable Windows USBs with WoeUSB.

But before that, let’s quickly look at the features of this awesome tool.

## WoeUSB

![install woeusb ubuntu](https://itsfoss.com/content/images/wordpress/2022/10/install-woeusb-ubuntu.png)

WoeUSB is a simple tool that has the sole purpose of [creating bootable Windows USB on Linux](https://itsfoss.com/bootable-windows-usb-linux/).

The original WoeUSB is a shell script. This same WoeUSB is rewritten as WoeUSB-ng in python, which can be installed on your system and provides both a command-line and GUI interface.

**Features:**

- Support Legacy PC/UEFI booting
- Support FAT32 and NTFS filesystems
- Support using physical installation disc or disk image as source
- It can be used for Windows Vista and later with any language or edition variants
- Legacy/MBR-style/IBM PC compatible boot mode
- Native UEFI booting is supported for Windows 7 and later images (limited to the FAT filesystem as the target)

## Installing WoeUSB on Ubuntu and other Linux distros

Arch Linux users can install WoeUSB-ng from AUR.

For other distros, WoeUSB can be installed using PIP. It’s a Python application, after all. I am going to provide commands for Ubuntu/Debian here.

To install WoeUSB-ng, you need to [install PIP](https://itsfoss.com/install-pip-ubuntu/) and other necessary dependencies first.

`sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin`


After this, you can install WoeUSB-ng by running:

`sudo pip3 install WoeUSB-ng`


For all other installations, you can refer to their [instructions](https://github.com/WoeUSB/WoeUSB-ng#installation).

## Prerequisite: Get Windows ISO and a compatible USB

This one goes without saying. You need to have the ISO file of the Windows version you want to install.

From the Microsoft website, you should be able to get the ISO for Windows 10 and 11.

If you have ISOs for older Windows versions, they can also be used.

Apart from that, you need to have a USB key/pen drive of at least 8 GB in size. You should format it in NTFS filesystem.

## Method 1: Using WoeUSB to create a bootable Windows USB graphically (recommended)

Open woeusb-gui from the activity overview or menu.

![woeusb in ubuntu activities overview](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-in-ubuntu-activities-overview.png)

In the application window, select the downloaded Windows ISO and the desired USB drive as shown in the screenshot and press **Install**.

![woeusb gui setup](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-gui-setup.png)

There are also other tweaks available within the app, which can be accessed by the top menu bar.

After pressing install, the woeUSB will start formatting and copying files. You need to wait for some time because there are approximately 6 GB of files to be copied.

![woeusb writing windows iso to the usb drive](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-writing-windows-iso-to-the-usb-drive.png)

Once copying completes, WoeUSB will prompt a success dialog. You can now safely eject the USB and use it as a bootable USB.

![woeusb completed writing and gives a success message](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-completed-writing-and-gives-a-success-message.png)

## Method 2: Using WoeUSB from the terminal (for experts)

WoeUSB-ng package also provides a command-line utility called woeusb.

To create the bootable Windows USB using WoeUSb, you need to run the following command:

`sudo woeusb --device <path/to/Windows/ISO> <name/of/the/USB/device> --target-filesystem ntfs`


Here, the `--device`

flag is used to wipe the USB and create a bootable from scratch completely. Also, the –target-filesystem flag is set to NTFS, to avoid problems of copying files more than the size limits of the FAT system.

![woeusb commandline](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-commandline.png)

The process will take some time to complete copying. Once completed, it will display a success message.

![woeusb commandline success message](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-commandline-success-message.png)

At this point, you can eject the USB safely and use it as a Windows bootable USB on other PCs.

## Bonus: Using WoeUSB Bash shell script (for experts)

WoeUSB is also available as a bash shell script, which can be used without installing anything on your system.

First, you want to download the shell script from the [releases page of the project](https://github.com/WoeUSB/WoeUSB/releases/tag/v5.2.4).

Before [executing the shell file](https://itsfoss.com/run-shell-script-linux/), you need to get the required dependencies. To install, run:

`sudo apt install wimtools`


Now make it executable either through file manager or through command-line.

![make woeusb script executable](https://itsfoss.com/content/images/wordpress/2022/10/make-woeusb-script-executable.png)

Or you can run `chmod +x <path/to/script>`

to make it executable. Now, run` ./woeusb-5.2.4.bash -h`

inside the downloaded directory to get help.

In order to create a live USB, the process is same as the command-line part of woeusb-ng, except, you are not installing anything.

So, in a terminal, run:

`sudo <path/to/downloaded/script/file> --device <path/to/windows/ISO> <name-of-USB-device> --target-filesystem ntfs`


This will start writing the ISO to USB drive, as shown in the screenshot below:

![woeusb bash script running without installation](https://itsfoss.com/content/images/wordpress/2022/10/woeusb-bash-script-running-without-installation.png)

Once completed, you can safely eject the USB and use it as bootable USB.

## Removing WoeUSB

If you installed WoeUSB using PIP, you can also remove it similarly:

`pip3 uninstall WoeUSB-ng`


You can keep the installed dependencies on your system or remove them. That’s entirely up to you. I would suggest keeping them.

## Wrapping Up

WoeUSB was an immensely popular tool around ten years ago. It’s good that someone else has continued in another form. That’s the beauty of open source.

There are other ways of creating bootable Windows USB. If interested, check them out 👇

[How to Create a Bootable Windows 10 USB in LinuxBrief: This tutorial shows you how to create a bootable Windows 10 USB in Linux with and without a GUI tool called Ventoy. I have talked a lot about creating bootable USB of Linux in Windows. How about the other way round? How about creating a bootable Windows 10 USB](https://itsfoss.com/bootable-windows-usb-linux/)![](https://itsfoss.com/content/images/wordpress/2017/09/create-bootable-windows-10-in-ubuntu-linux.jpeg)


![](https://itsfoss.com/content/images/wordpress/2017/09/create-bootable-windows-10-in-ubuntu-linux.jpeg)

I hope this tutorial helped you. If somehow the Windows USB created by WoeUSB doesn’t work as expected, you may [try using Ventoy](https://itsfoss.com/use-ventoy/). Enjoy it.