制作可启动的Windows安装U盘

  1. 制作环境为Windows 8,其他系统可能略有不同。
  2. 准备4G+容量的U盘
  3. 准备好Windows安装盘的镜像iso文件
  4. 在Windows的命令行窗口运行DiskPart工具:

    C:\Users\UserName>diskpart
    Microsoft DiskPart version 6.3.9600
    Copyright (C) 1999-2013 Microsoft Corporation.
    On computer: ComputerName
    
  5. 在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

  6. 选中Disk 2,清楚盘上所有数据,包括分区表:

    DISKPART> select disk 2
    Disk 2 is now the selected disk.
    DISKPART> clean
    DiskPart succeeded in cleaning the disk.
    
  7. 在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.
    
  8. 退出DiskPart:

    DISKPART> exit
    Leaving DiskPart...
    C:\Users\UserName>
    
  9. 加载iso文件
    Windows 8以上版本自带虚拟光驱,双击iso文件即可。
    假设iso加载后的盘符是I:盘,而U盘的盘符是U:盘。
  10. 修改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
    
  11. 复制安装文件到U盘,复制完成后就做好了一个可以启动的Windows安装U盘:

    I:\boot>robocopy I:\ U:\ /mir
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值