Ubuntu下制作Windows启动盘

该文详细描述了如何下载特定脚本并安装依赖,然后利用woeusb工具将Win10_22H2_Chinese_Simplified_x64.iso镜像文件写入到/dev/sdb设备上,目标文件系统为NTFS。过程中还包括安装GRUB引导加载器以支持legacyPC启动,最终确认设备已可启动并安全卸载。

下载脚本https://download.youkuaiyun.com/download/idwtwt/87559777

安装依赖

sudo apt install wimtools

执行制作

 ./woeusb-5.2.4.bash  --device  Win10_22H2_Chinese_Simplified_x64.iso /dev/sdb --target-filesystem NTFS

2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.252395 s, 4.2 MB/s
Info: Mounting target filesystem...
Info: Copying files from source media...
Info: Installing GRUB bootloader for legacy PC booting support...
Installing for i386-pc platform.
Installation finished. No error reported.
Info: Installing custom GRUB config for legacy PC booting...
Info: Done :)
Info: The target device should be bootable now
Info: Unmounting and removing "/tmp/woeusb-source-20230311-165932-Saturday.da9S8w"...
Info: Unmounting and removing "/tmp/woeusb-target-20230311-165932-Saturday.Oz8qGk"...
Info: You may now safely detach the target device

Ubuntu 24 系统中制作可用于启动的 Windows U 盘,通常需要将 Windows ISO 镜像写入 U 盘,并确保 U 盘可引导。以下是几种常见方法: ### 使用 WoeUSB 工具 WoeUSB 是一个专为在 Linux 系统上创建 Windows 启动盘的工具。它支持 NTFS 文件系统,并能处理 Windows 10 及以上版本的安装镜像。 1. 安装 WoeUSB: ```bash sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt update sudo apt install woeusb ``` 2. 插入 U 盘并确认其设备路径(例如 `/dev/sdb`)。 3. 使用 WoeUSB 制作启动盘: ```bash sudo woeusb --device <ISO文件路径> <设备路径> --target-filesystem NTFS ``` 例如: ```bash sudo woeusb --device Win10_22H2_Chinese_Simplified_x64.iso /dev/sdb --target-filesystem NTFS ``` ### 使用 `dd` 命令 `dd` 是一个强大的命令行工具,可以用来复制文件和转换数据。它也可以用来创建启动盘。 1. 插入 U 盘并确认其设备路径(例如 `/dev/sdb`)。 2. 使用 `dd` 命令写入 ISO 文件到 U 盘: ```bash sudo dd if=<ISO文件路径> of=<设备路径> bs=4M status=progress ``` 例如: ```bash sudo dd if=Win10_22H2_Chinese_Simplified_x64.iso of=/dev/sdb bs=4M status=progress ``` ### 使用 GNOME Disks 工具 GNOME Disks 是一个图形化工具,可以用来创建启动盘。 1. 打开 GNOME Disks 应用程序。 2. 插入 U 盘并选择它。 3. 点击“菜单”按钮(三个点),选择“恢复磁盘映像”。 4. 选择 Windows ISO 文件并开始写入。 ### 注意事项 - **格式化为 NTFS**:Windows 启动 U 盘必须格式化为 NTFS 格式,否则可能会出现无法识别硬盘的问题 [^3]。 - **备份数据**:在使用 `dd` 或 WoeUSB 时,确保 U 盘上没有重要数据,因为这些操作会清除 U 盘上的所有数据。 - **验证 ISO 文件**:确保下载的 Windows ISO 文件是完整且未损坏的。 通过上述方法之一,可以在 Ubuntu 24 系统中成功制作一个可用于启动的 Windows U 盘。
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值