在Linux上创建Windows 10可引导USB

在Linux上创建Windows 10可启动USB:在Linux盒子上创建Windows 10可启动USB记忆棒?这是 优盘。 WoeUSB是一个简单的工具,可让您从ISO映像或实际DVD创建自己的USB Stick Windows安装程序。这个项目是 Congelli501 WinUSB软件据官方网站称,自2012年以来一直未进行维护。

WoeUSB软件包包含两个程序。
吵闹:基于WxWidgets的woeusb的GUI包装器
吵闹:命令行实用程序,可让您从现有Windows安装光盘或磁盘映像创建自己的可启动Windows安装USB存储设备。

WoeUSB支持以下Windows映像:

  1. Windows Vista
  2. Windows 7、8和10

在Linux上安装WoeUSB

请按照以下步骤在Linux机器上运行WoeUSB。这是在Linux上创建Windows 10可引导USB之前的先决条件

Arch Linux

$ yaourt -S woeusb-git --noconfirm

您也可以使用 用pacaur代替yaourt

$ pacaur --needed --noconfirm --noedit -S woeusb-git

Ubuntu Linux系统

对于Ubuntu,请使用个人软件包存档(ppa)

sudo add-apt-repository ppa:nilarimogard/webupd8sudo apt updatesudo apt install woeusb

软呢帽

对于Fedora,使用以下命令安装WoeUSB:

sudo dnf install WoeUSB

从源代码安装WoeUSB:

Ubuntu,Debian

sudo apt-get install devscripts equivs gdebi-core
git clone https://github.com/slacka/WoeUSB.git
cd WoeUSB
mk-build-deps
sudo gdebi woeusb-build-deps__all.deb
dpkg-buildpackage -uc -b
sudo gdebi ../woeusb__.deb

软呢帽:

sudo dnf install wxGTK3-devel
git clone https://github.com/slacka/WoeUSB.git
cd WoeUSB
./configure
make
sudo make install

安装WoeUSB之后,您就可以在Linux上为Windows 10创建可引导的USB。这里有两个选择。一种使用命令行,另一种使用GUI版本。

介绍了两种可用于在Linux上创建Windows 10可引导USB的方法。

使用WoeUSB GUI

启动WoeUSB工具的GUI版本。

$ sudo woeusbgui

这将显示类似于以下内容的界面:

然后选择Windows 10 ISO标准 选择图像文件,然后单击屏幕底部列出的正确的目标设备。

    在Linux上创建Windows 10可引导USB

请点击 安装 要在Linux上创建Windows 10可引导USB,请单击屏幕底部的按钮。

    在Linux上创建Windows 10可引导USB

等待安装完成。显示类似于以下内容的完整消息。

    在Linux上创建Windows 10可引导USB使用命令行woeusb

使用命令行 woeusb 要在Linux上创建Windows 10可引导USB,您需要指定iso映像和USB设备的位置作为命令行选项。使用Windows 10的32位版本的USB记忆棒在Linux上创建Windows 10可引导USB参见以下示例 / dev / sdb。

$ sudo woeusb --device  

就我而言,这将是:

$ sudo woeusb --device win_10_rs3_aio_1709.16299.251_x64.iso /dev/sda
WoeUSB [email protected]@[email protected]@
==============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sda...
/dev/sda: 5 bytes were erased at offset 0x00008001 (iso9660): 43 44 30 30 31
/dev/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sda: 2 bytes were erased at offset 0x00000000 (mac): 45 52
/dev/sda: calling ioctl to re-read partition table: Success
Ensure that /dev/sda is really wiped...
Creating new partition table on /dev/sda...
Creating target partition...
Making system realize that partition table has changed...
Wait 3 seconds for block device nodes to populate...
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
Mounting target filesystem...
Applying workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
Copying files from source media...
grep: /media/woeusb_source_1530817244_30290/sources/cversion.ini: No such file or directory
Installing GRUB bootloader for legacy PC booting support...
Installing for i386-pc platform.
Installation finished. No error reported.
Installing custom GRUB config for legacy PC booting...
Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
Unmounting and removing "/media/woeusb_source_1530817244_30290"...
Unmounting and removing "/media/woeusb_target_1530817244_30290"...
You may now safely detach the target device
Done ?
The target device should be bootable now

如果Windows ISO映像大于 4GB USB设备必须使用NTFS文件系统。

sudo woeusb --device Windows-10-Pro-X64-Pre-Activated.iso /dev/sdb 
--target-filesystem ntfs

样本输出:

WoeUSB [email protected]@[email protected]@
==============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sdb...
/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdb: calling ioctl to re-read partition table: Success
Ensure that /dev/sdb is really wiped...
Creating new partition table on /dev/sdb...
Creating target partition...
Making system realize that partition table has changed...
Wait 3 seconds for block device nodes to populate...
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
--2018-11-24 08:40:15--  https://github.com/pbatard/rufus/raw/master/res/uefi/uefi-ntfs.img
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3, 64:ff9b::8c52:7603, ...
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img [following]
--2018-11-24 08:40:17--  https://raw.githubusercontent.com/pbatard/rufus/master/res/uefi/uefi-ntfs.img
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.140.133, 64:ff9b::9765:8c85
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 524288 (512K) [application/octet-stream]
Saving to: ‘/tmp/WoeUSB.YZlT6n.tempdir/uefi-ntfs.img’

uefi-ntfs.img                         100%[========================================================================>] 512.00K   451KB/s    in 1.1s    

2018-11-24 08:40:19 (451 KB/s) - ‘/tmp/WoeUSB.YZlT6n.tempdir/uefi-ntfs.img’ saved [524288/524288]

1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0.173849 s, 3.0 MB/s
Mounting target filesystem...
Applying workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
Copying files from source media...
Installing GRUB bootloader for legacy PC booting support...
Installing for i386-pc platform.
Installation finished. No error reported.
Installing custom GRUB config for legacy PC booting...
Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.
Unmounting and removing "/media/woeusb_source_1543038005_16819"...
Unmounting and removing "/media/woeusb_target_1543038005_16819"...
You may now safely detach the target device
Done ?
The target device should be bootable now

完成后,就可以了。继续并使用Windows 10可引导USB将其安装在您的PC上。

感谢您阅读有关如何在Linux上创建Windows 10可引导USB的文章。希望这会有所帮助。

Sidebar