Translated

This commit is contained in:
2022-11-03 15:26:08 +08:00 committed by GitHub
parent 29497bac08
commit f66ab91375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 190 additions and 190 deletions

View File

@ -1,190 +0,0 @@
[#]: subject: "Install WoeUSB on Ubuntu to Create a Bootable Windows USB"
[#]: via: "https://itsfoss.com/install-woeusb-ubuntu/"
[#]: author: "Sreenath https://itsfoss.com/author/sreenath/"
[#]: collector: "lkxed"
[#]: translator: "robsean"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Install WoeUSB on Ubuntu to Create a Bootable Windows USB
======
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][1] is the new generation WoeUSB. But since the original tool doesnt exist anymore, Ill be referring WoeUSB-ng as WoeUSB.
In this tutorial, Ill show you how to install WoeUSB on Ubuntu Linux. Ill also share the steps for creating bootable Windows USBs with WoeUSB.
But before that, lets quickly look at the features of this awesome tool.
### WoeUSB
![install woeusb ubuntu][2]
WoeUSB is a simple tool that has the sole purpose of [creating bootable Windows USB on Linux][3].
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. Its a Python application, after all. I am going to provide commands for Ubuntu/Debian here.
To install WoeUSB-ng, you need to [install PIP][4] 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][5].
[WoeUSB-ng][1]
### 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.
[Download Windows][6]
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][7]
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][8]
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][9]
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][10]
### 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][11]
The process will take some time to complete copying. Once completed, it will display a success message.
![woeusb commandline success message][12]
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][13].
Before [executing the shell file][14], 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][15]
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][16]
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. Thats entirely up to you. I would suggest keeping them.
### Wrapping Up
WoeUSB was an immensely popular tool around ten years ago. Its good that it has been continued in another form by someone else. Thats the beauty of open source.
I hope this tutorial helped you. If somehow the Windows USB created by WoeUSB doesnt work as expected, you may [try using Ventoy][3]. Enjoy it.
--------------------------------------------------------------------------------
via: https://itsfoss.com/install-woeusb-ubuntu/
作者:[Sreenath][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/sreenath/
[b]: https://github.com/lkxed
[1]: https://github.com/WoeUSB/WoeUSB-ng
[2]: https://itsfoss.com/wp-content/uploads/2022/10/install-woeusb-ubuntu.png
[3]: https://itsfoss.com/bootable-windows-usb-linux/
[4]: https://itsfoss.com/install-pip-ubuntu/
[5]: https://github.com/WoeUSB/WoeUSB-ng#installation
[6]: https://www.microsoft.com/en-in/software-download/
[7]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-in-ubuntu-activities-overview.png
[8]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-gui-setup.png
[9]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-writing-windows-iso-to-the-usb-drive.png
[10]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-completed-writing-and-gives-a-success-message.png
[11]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-commandline.png
[12]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-commandline-success-message.png
[13]: https://github.com/WoeUSB/WoeUSB/releases/tag/v5.2.4
[14]: https://itsfoss.com/run-shell-script-linux/
[15]: https://itsfoss.com/wp-content/uploads/2022/10/make-woeusb-script-executable.png
[16]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-bash-script-running-without-installation.png

View File

@ -0,0 +1,190 @@
[#]: subject: "Install WoeUSB on Ubuntu to Create a Bootable Windows USB"
[#]: via: "https://itsfoss.com/install-woeusb-ubuntu/"
[#]: author: "Sreenath https://itsfoss.com/author/sreenath/"
[#]: collector: "lkxed"
[#]: translator: "robsean"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
在 Ubuntu 上安装 WoeUSB 来创建一个可启动 Windows USB
======
想在 Linux 上创建一个可启动 Windows USB Ventoy 是一个很好的选择。
但是,在 Ventoy 出道之前WoeUSB 是用于创建可启动 Windows USB 的首选工具。原始的 WoeUSB 工程在 2014 年左右香消玉损。
鉴于其流行程度一位新的开发者接过了将其起死回生的任务。因此WoeUSB-ng 诞生了。在这里“ng” 是 <ruby>新生代<rt>new generation</rt></ruby> 的缩写。换句话说,[WoeUSB-ng][1] 是新生代的 WoeUSB 。但是,因为原始的工具已经不存在了,我将 WoeUSB-ng 描述为 WoeUSB 。
在这篇教程中,我将向你展示如何在 Ubuntu Linux 上安装 WoeUSB 。我也将分享使用 WoeUSB 来创建可启动 Windows USB 的步骤。
但是,在此之前,让我们快速查看这个令人惊叹的工具的特色。
### WoeUSB
![install woeusb ubuntu][2]
WoeUSB 是一个简单的工具,其唯一的目的是 [在 Linux 上创建可启动 Windows USB][3] 。
原始的 WoeUSB 是一个 shell 脚本。这个原始的 WoeUSB 被使用 Python 重写为 WoeUSB-ng ,它可以安装在你的系统上,并且通过命令行或 GUI 界面。
**特色:**
- 支持 Legacy PC/UEFI 启动
- 支持 FAT32 和 NTFS 文件系统
- 支持使用物理安装盘或磁盘镜像作为源
- 它可以用于 Windows Vista 及其更高版本的任意语言或变体版本
- Legacy/MBR/IBM PC 兼容启动模式
- 本机 UEFI 启动支持 Windows 7 及其更高版本的镜像 (仅限于将 FAT 文件系统作为目标的情况)
### 在 Ubuntu 和其它的 Linux 发行版上安装 WoeUSB
Arch Linux 用户可以从 AUR 安装 WoeUSB-ng 。
对于其它的发行版,可以使用 PIP 来安装 WoeUSB 。毕竟,它是一个 Python 应用程序。在这里,我将为 Ubuntu/Debian 提供一些命令。
为安装 WoeUSB-ng ,你首先需要 [安装 PIP][4] 和其它必要的依赖项。
```
sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin
```
在这之后,你可以安装 WoeUSB-ng ,通过运行:
```
sudo pip3 install WoeUSB-ng
```
对于所有的其它安装,你可以参考其 [操作指南][5] 。
[WoeUSB-ng][1]
### 前提条件: 获取 Windows 的 ISO 文件和一个兼容的 USB 磁盘
这一点没有什么需要说的。你需要有一个你将要安装的 Windows 版本的 ISO 文件。
从微软的网站,你应该能够获取 Windows 10 和 11 的ISO 文件。
[下载 Windows][6]
如果你有较旧的 Windows 版本的 ISO 文件,也可以使用它们。
除此之外,你需要有一个至少 8 GB 大小的 USB 驱动器磁盘。你应该使用 NTFS 的文件系统来格式化它filesystem.
### 方法 1: 使用图形用户界面化的 WoeUSB 来创建一个可启动的 Windows USB (推荐)
<ruby>活动概述<rt>activity overview</rt></ruby> 或菜单中打开 woeusb-gui 。
![woeusb in ubuntu activities overview][7]
在应用程序窗口中,选择下载的 Windows ISO 和所希望的 USB 驱动器,如截屏所示,然后按下 <ruby>安装<rt>Install</rt></ruby> 按钮。
![woeusb gui setup][8]
在应用程序中也其它可用的调整,可以通过顶部的菜单栏来访问使用。
在按下安装按钮后woeUSB 将开始格式化和复制文件。你需要等待一些时间,因为这里有大约 6 GB 的文件需要复制。
![woeusb writing windows iso to the usb drive][9]
在复制完成后WoeUSB 将会提示一个成功的对话框。你现在可用安全弹出 USB 驱动器,并将其作为一个可启动 USB 驱动器来使用。
![woeusb completed writing and gives a success message][10]
### 方法 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][11]
该过程将花费一些时间来完成复制。在完成复制后,它将显示一条成功的信息。
![woeusb commandline success message][12]
此时,你可以安全地弹出 USB 驱动器,并在其它的个人电脑上将其作为一个 Windows 可启动 USB 来使用。
### 惊喜欲狂: 使用 WoeUSB 的 Bash shell 脚本 (针对专家)
WoeUSB 也提供一个 bash shell 脚本,在你的系统上,它不需要安装任何东西就可以使用。
首先,你需要从 [该工程的发布版本页面][13] 下载 shell 脚本。
在 [执行 shell 文件][14] 之前,你需要获取所需要的依赖项。为安装它,运行:
```
sudo apt install wimtools
```
现在,通过文件管理器或通过命令行来使它可执行。
![make woeusb script executable][15]
或者,你可以运行 `chmod +x <path/to/script>` 来使它可执行。现在,运行已下载目录中的 `./woeusb-5.2.4.bash -h` 来获取帮助。
为创建一个 live 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][16]
在完成后,你可以安全地弹出 USB 驱动器,并将其作为可启动 USB 使用。
### 移除 WoeUSB
如果你使用 PIP 安装 WoeUSB ,你也可以类似地移除它:
```
pip3 uninstall WoeUSB-ng
```
你可以在你的系统上保留或移除已安装的依赖项。这完全取决于你。我建议保留它们。
### 总结
大约 10 年前WoeUSB 是一个非常流行的工具。其他人以另外一种形式将其复活是很好的,这就是开源的艺术。
我希望这篇教程会帮助你。如果通过 WoeUSB 创建的 Windows USB 不能按部就班地工作,你可以 [尝试使用 Ventoy][3] 。享受它。
--------------------------------------------------------------------------------
via: https://itsfoss.com/install-woeusb-ubuntu/
作者:[Sreenath][a]
选题:[lkxed][b]
译者:[robsean](https://github.com/robsean)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/sreenath/
[b]: https://github.com/lkxed
[1]: https://github.com/WoeUSB/WoeUSB-ng
[2]: https://itsfoss.com/wp-content/uploads/2022/10/install-woeusb-ubuntu.png
[3]: https://itsfoss.com/bootable-windows-usb-linux/
[4]: https://itsfoss.com/install-pip-ubuntu/
[5]: https://github.com/WoeUSB/WoeUSB-ng#installation
[6]: https://www.microsoft.com/en-in/software-download/
[7]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-in-ubuntu-activities-overview.png
[8]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-gui-setup.png
[9]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-writing-windows-iso-to-the-usb-drive.png
[10]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-completed-writing-and-gives-a-success-message.png
[11]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-commandline.png
[12]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-commandline-success-message.png
[13]: https://github.com/WoeUSB/WoeUSB/releases/tag/v5.2.4
[14]: https://itsfoss.com/run-shell-script-linux/
[15]: https://itsfoss.com/wp-content/uploads/2022/10/make-woeusb-script-executable.png
[16]: https://itsfoss.com/wp-content/uploads/2022/10/woeusb-bash-script-running-without-installation.png