linux刻录win10u盘_在Ubuntu Linux下制作Windows 启动安装 USB盘
发布日期:2021-06-24 15:57:21 浏览次数:2 分类:技术文章

本文共 2196 字,大约阅读时间需要 7 分钟。

最近想 ,在Ubuntu上刻录个windows的安装U盘,在网上看了些资料,不过好多都说的很模糊,于是乎,我走了不少弯路。这里记录下来,希望了帮到大家。

首先你的有个USB吧,这里我们假定USB在ubuntu中为/dev/sdb

1. 给USB设备 /dev/sdb 分区,注意,要是主分区,

sudo fdisk /dev/sdb

Command (mforhelp): n

Partition type:

p primary (0 primary, 0 extended, 4 free)

e extended

Select (default p): p

Partition number (1-4, default 1):

Using default value1First sector (2048-15564799, default 2048):

Using default value2048Last sector,+sectors or +size{K,M,G} (2048-15564799, default 15564799):

Using default value15564799Command (mforhelp): p

Disk/dev/sdb: 7969 MB, 7969177600bytes246 heads, 62 sectors/track, 1020 cylinders, total 15564800sectors

Units= sectors of 1 * 512 = 512bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier:0x8d55b9cbDevice Boot Start End Blocks Id System/dev/sdb1 2048 15564799 7781376 83 Linux

上面/dev/sdb1就分出来了,全部的空间都给了sdb1

2. 然后把/dev/sdb1设置为启动分区

Command (mforhelp): a

Partition number (1-4): 1​

Command (mforhelp): p

Disk/dev/sdb: 7969 MB, 7969177600bytes126 heads, 10 sectors/track, 12353 cylinders, total 15564800sectors

Units= sectors of 1 * 512 = 512bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier:0x8d55b9cbDevice Boot Start End Blocks Id System/dev/sdb1 * 2048 15564799 7781376 83 Linux

我们可以看到,sdb1后面,多了个*

3. 接下来,把上面做的所有改动写入USB

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.

The kernel still uses the old table. The new table will be used at

the next reboot or after you run partprobe(8) or kpartx(8)

Syncing disks.

然后就是q退出

4. 将分区格式化为ntfs的

sudo mkfs -t ntfs /dev/sdb1

这个过程中,会把分区中写入全0,大概会等几分钟

5. 接下来就是把下载好的iso文件dd到这个启动分区了

# 把下载的iso文件刻录到usb的分区中(及得,一定是分区,否则下次用这个usb是会出现 Operating not found的问题sudo dd if=/home/peter/Downloads/WindowsTechnicalPreview-x64-ZH-CN.iso of=/dev/sdb1 bs=4M iflag=direct​

看到了吧,我在安装win10

6. 现在还不可以从usb盘启动,还要在usb盘MBR区信息写入,这需要一个工具LILO

sudo apt-getinstall lilo

sudo lilo-M /dev/sdb mbr

下次启动的时候,选择这个USB启动就会出现windows的安装界面了!

另外,我自己也试了unetbootin,不过没有成功,选择从U盘启动后,一直卡在一个选择界面。大家有试成功的麻烦推荐下

转载地址:https://blog.csdn.net/weixin_33682804/article/details/114322086 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:linux按照mysql为何如此简单_MySQL菜鸟实录(一):服务安装扫盲(Linux & Windows)...
下一篇:2017年java漏洞_【漏洞公告】Oracle多个Java漏洞更新-2017年7月

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月05日 03时52分13秒