- 制作环境为Windows 8,其他系统可能略有不同。
- 准备4G+容量的U盘
- 准备好Windows安装盘的镜像iso文件
在Windows的命令行窗口运行DiskPart工具:
C:\Users\UserName>diskpart Microsoft DiskPart version 6.3.9600 Copyright (C) 1999-2013 Microsoft Corporation. On computer: ComputerName
在DiskPart中执行’list disk’查看系统中所有硬盘:
DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 931 GB 0 B Disk 1 Online 238 GB 0 B Disk 2 Online 14 GB 0 B
可以看到Disk 2是要操作的U盘,大小为14GB
选中Disk 2,清楚盘上所有数据,包括分区表:
DISKPART> select disk 2 Disk 2 is now the selected disk. DISKPART> clean DiskPart succeeded in cleaning the disk.
在U盘上创建分区、激活分区、分配盘符,并格式化为NTFS:
DISKPART> create partition primary DiskPart succeeded in creating the specified partition. DISKPART> active DiskPart marked the current partition as active. DISKPART> assign DiskPart successfully assigned the drive letter or mount point. DISKPART> format fs=ntfs quick 100 percent completed DiskPart successfully formatted the volume.
退出DiskPart:
DISKPART> exit Leaving DiskPart... C:\Users\UserName>
- 加载iso文件
Windows 8以上版本自带虚拟光驱,双击iso文件即可。
假设iso加载后的盘符是I:盘,而U盘的盘符是U:盘。 修改U盘的启动区,并将其改名为WinSetup:
C:\Users\UserName>cd /d I:/boot I:\boot>bootsect.exe /nt60 U: /mbr /force Target volumes will be updated with BOOTMGR compatible bootcode. U: (\\?\Volume{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}) Successfully updated NTFS filesystem bootcode. \??\PhysicalDrive2 Successfully updated disk bootcode. Bootcode was successfully updated on all targeted volumes. I:\boot>label U: WinSetup
复制安装文件到U盘,复制完成后就做好了一个可以启动的Windows安装U盘:
I:\boot>robocopy I:\ U:\ /mir
制作可启动的Windows安装U盘
最新推荐文章于 2024-08-03 15:44:20 发布