在linux系统中使用WoeUSB工具制作U盘启动盘
这里写目录标题
- 用WoeUSB在Linux上制作Win10启动盘
- 安装WoeUSB
- 制作U盘启动盘
- 附录:常见问题
用WoeUSB在Linux上制作Win10启动盘
工作中有时需要配置Windows的开发/测试环境,那么如何用Linux制作Win10启动盘呢?
可以使用WoeUSB工具,这款工具是纯python开发的,可以安装在python虚拟环境里。制作U盘的过程可以是图形化也可以是命令行。
所以非常方便
安装WoeUSB
这里我们需要用到的是一个叫WoeUSB的软件,有两种方式安装:
复制代码
#pre-install
sudo apt-get install git p7zip-full python3-pip python3-wxgtk4.0 # install by pip3
sudo pip3 install WoeUSB-ng# install by source code
git clone https://github.com/WoeUSB/WoeUSB-ng.git
cd WoeUSB-ng
sudo pip3 install .
复制代码
制作U盘启动盘
安装完成之后,可以选择UI方式安装,也可以选择command line的方式。
By UI
在Ubuntu的桌面上找到WoeUSB的图标
后面的就比较傻瓜了,插好U盘,在UI里选择Windows的ISO文件,选择NTFS模式,选择好目标设备(也就是你插入的U盘),点击Install就可以了。
# By Command line
woeusb --device <Your_Win10_iso_path> <Your_USB_Strorage_Path_Default_/dev/sdb> --target-filesystem NTFS
比如我想在Debian系统(Linux系统的一种)中制作windows server 2019的启动盘,使用如下命令
woeusb --device /resources/ISO/cn_windows_server_2019_x64_dvd_4de40f33.iso /dev/sdb --target-filesystem NTFS
记录一下我的命令行返回:
root@server001:~/WoeUSB-ng# woeusb --device /resources/ISO/cn_windows_server_2019_x64_dvd_4de40f33.iso /dev/sdb --target-filesystem NTFS
WoeUSB v0.2.10
==============================
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: 成功
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.
Mounting target filesystem...
Copying files from source media...
/bootmgr
/boot/boot.sdi
/boot/fonts/chs_boot.ttf
/boot/fonts/cht_boot.ttf
/boot/fonts/kor_boot.ttf
/boot/resources/bootres.dll
/efi/microsoft/boot/cdboot_noprompt.efi
/efi/microsoft/boot/memtest.efi
/efi/microsoft/boot/fonts/chs_boot.ttf
/efi/microsoft/boot/fonts/cht_boot.ttf
/efi/microsoft/boot/fonts/kor_boot.ttf
/sources/acmigration.dll
/sources/appraiser.dll
/sources/background_svr.bmp
/sources/boot.wim
/sources/diagtrack.dll
/sources/gatherosstate.exe
/sources/install.wim
/sources/mediasetupuimgr.dll
/sources/migapp.xml
/sources/migcore.dll
/sources/migstore.dll
/sources/reagent.dll
/sources/setuphost.exe
/sources/setupplatform.dll
/sources/setupprep.exe
/sources/sflistrs1.dat
/sources/sflistw7.dat
/sources/sflistwb.dat
/sources/sflistwt.dat
/sources/sflistwt.woa.dat
/sources/spwizimg.dll
/sources/upgradeagent.dll
/sources/w32uires.dll
/sources/windlp.dll
/sources/wpx.dll
/sources/dlmanifests/printing-spooler-core-dl.man
/sources/dlmanifests/microsoft-windows-iis-dl/iismig.dll
/sources/migration/wtr/powershell_en-us_noloc.inf
/sources/replacementmanifests/onecore_speechcommon-rep.man
/sources/replacementmanifests/microsoft-windows-appmanagement-migration/appmanmigrationplugin.dll
/sources/replacementmanifests/microsoft-windows-textservicesframework-migration/imjpmig.dll
/sources/sxs/microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab
/sources/zh-cn/setup_help_upgrade_or_custom.rtf
/support/adprep/dca8f425-baae-47cd-b424-e3f6c76ed08b.dcpromo.csv
Copied 4.7GiB from a total of 4.7GiB
/support/samples/headlessunattend.xml
Copied 4.7GiB from a total of 4.7GiBased with EFI support, applying workaround to make it support UEFI booting
100%
INFO: Detected existing EFI bootloader, workaround skipped.
Installing GRUB bootloader for legacy PC booting support...
正在为 i386-pc 平台进行安装。
安装完成。没有报告错误。
Installing custom GRUB config for legacy PC booting...
Unmounting and removing /media/woeusb_source_1662701347_3445...
Unmounting and removing /media/woeusb_target_1662701347_3445...
You may now safely detach the target device
Done :)
The target device should be bootable now
root@server001:~/WoeUSB-ng#
附录:常见问题
如果报错:Target device is currently busy, unmount all mounted partitions in target device then try again.
则需要unmount掉U盘已经挂载的分区,比如
umount /dev/sdb1
如果出现Remote end closed connection without response
说明USB接口不稳定,U盘与电脑连接断了,重新制作一下。
在linux系统中使用WoeUSB工具制作U盘启动盘相关推荐
- Linux系统中使用linux-wifi-hotspot工具开启网络热点
更好的干净纯洁阅读体检请访问个人网站:Linux系统中使用linux-wifi-hotspot工具开启热点. 本文描述如何在Linux系统中使用linux-wifi-hotspot工具开启网络热点. ...
- dd linux 格式化u盘启动盘_在Linux系统下用DD命令制作ISO镜像U盘启动盘
穆僮电脑小课堂 (QQ群:141826908)摘编整理 我的当前的系统是Linux(版本Xubuntu),之前是通过软通牒(UltraISO)在Windows系统下制作了这个Linux系统的U盘启动 ...
- UOS系统下如何使用ventoy制作多合一启动盘
Ventoy是一款开源免费的多合一系统安装盘/启动盘制作工具支持 Windows家族与 Linux几乎所有主流发行版.它最大的好处在于,你可以在 1个U盘里集成N多款不同类型的操作系统安装盘 (比 ...
- 关于Linux系统中的ext4文件系统制作命令的学习与理解,make_ext4fs 参数介绍。
使用的工具是make_ext4fs 例子:make_ext4fs -s -l 3141572800 -a root -L linux system.img system 在网上查看了些质料对该命令 ...
- 在Linux系统下制作U盘启动盘
本文介绍在Linux系统中制作U盘启动盘的三种方法:使用启动盘创建器.dd命令和Etcher,以下以优麒麟Ubuntu Kylin 19.04为例,为你介绍这三种方法.如果要在Windows中制作U盘 ...
- linux下dd做优盘启动_Linux中制作U盘启动盘的三种方法,使用启动盘创建器/dd命令和Etcher...
本文介绍在Linux系统中制作U盘启动盘的三种方法:使用启动盘创建器.dd命令和Etcher,以下以优麒麟Ubuntu Kylin 19.04为例,为你介绍这三种方法.如果要在Windows中制作U盘 ...
- linux内核 绿皮书,制作Linux的U盘启动盘
转载自互联网: USB闪存存储装置(优盘)一般只有钥匙扣大小,存储容量多为32MB和64MB.由于具有轻巧精致.使用方便.便于携带等优点,特别是对比软盘具有容量较大.安全可靠.读取速度较快等特性,越来 ...
- winsetup制作linux启动盘,WinSetupFromUSB -u盘启动盘制作工具 (制作多合一u盘系统)
u盘启动盘制作工具网上已经屡见不鲜,用u盘装系统已经成为如今安装系统的首选,对于众多的U盘启动盘制作工具各有各的说法,比如老毛桃.大白菜以及ISO to USB等,具体哪个更好使也难以辩论,只要适合自 ...
- linux系统sql语句报错_如果数据库管理工具1045错误出现在Linux系统中怎么
原标题:如果数据库管理工具1045错误出现在Linux系统中怎么 连接MySQL数据库时难免会遇到1045错误,主要是因为用户输入的用户名或密码错误被拒绝访问,如果不想重装,需要找回密码或者重置密码. ...
最新文章
- 高颜值的神经网络可视化工具:3D、彩色、可定制,还能可视化参数重要性
- 是什么专业_聚焦专业:什么是好专业?考古专业明年会成为热门吗?
- Excel技巧之——英文大小写转换(转)
- 邻接表建立图(c语言)
- Mysql @RN :方式ROW_NUMBER的实现方法
- poj 1654 Area 多边形面积
- clickhouse安装_初识ClickHouse——安装与入门
- 在监控网络项目中该如何选择光纤交换机?
- linux fall delay 10,Cell的Rise delay和Fall delay、Rise transition和fall transition
- Keras 的预训练权值模型用来进行预测、特征提取和微调(fine-tuning)
- 漏洞奖励计划的五大成功要素问答实录
- c++不好可以学qt吗_学美容好不好,学美容有前途吗?
- 使用 p6spy,拦截到持久层执行的sql及参数
- 2021中国科学院文献情报中心期刊分区表 计算机
- 亚马逊中国发布2018图书排行榜
- php.ini在哪?找不到php.ini,已解决
- R语言之长宽数据转换
- [转载]2016美国数学建模MCM F题(政策)翻译:难民移入政策建模
- 7-163 判断正整数n是否同时含有奇数和偶数
- 哈夫曼树及哈夫曼编码(考试常考版)