如何从 0* 创建 Windows 10 的可启动磁盘分区?

Joa*_*oan 12 windows boot

我刚刚将(Windows 10 的)硬盘分区克隆到新硬盘。

问题是我做错了,我只是复制了数据部分,而不是引导部分。所以现在我有一个新的硬盘驱动器,其中包含没有启动分区的 Windows 副本。

我测试了很多教程,但问题是新硬盘上从来不存在可启动部分(因此无法恢复!)。

如果有人知道如何从头开始为 Windows 10 创建一个新的可启动分区。我有很多许可的程序和很多很多的配置。

如果有人问我刚刚删除了旧硬盘驱动器中的所有数据(天才!),所以我现在无法复制可启动磁盘分区。

use*_*686 19

BCDBoot 文档中有一般步骤:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di#repair-the-system-partition

对于UEFI,分区布局记录在:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions

  1. 创建一个大约 250 MB 的新“系统”分区:

    DISKPART> create partition efi size=250
    
    Run Code Online (Sandbox Code Playgroud)
  2. 使用FAT32格式化,并分配一个临时驱动器号:

    DISKPART> format quick fs=fat32 label="System"
    DISKPART> assign letter="S"
    
    Run Code Online (Sandbox Code Playgroud)
  3. 安装 Windows 启动管理器所需的文件以及 UEFI NVRAM“启动项”:

    C:\> bcdboot C:\Windows /s S: /f UEFI
    
    Run Code Online (Sandbox Code Playgroud)

    (将“C:”更改为当前分配给操作系统分区的任何驱动器号。)

对于BIOS,分区布局记录在:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-biosmbr-based-hard-drive-partitions

  1. 创建一个大约 100 MB 的新“系统”分区:

    DISKPART> create partition primary size=100
    
    Run Code Online (Sandbox Code Playgroud)
  2. 使用 NTFS 格式化,并分配临时驱动器号:

    DISKPART> format quick fs=ntfs label="System"
    DISKPART> assign letter="S"
    
    Run Code Online (Sandbox Code Playgroud)
  3. 设置该分区的“活动”或“可启动”标志:

    DISKPART> active
    
    Run Code Online (Sandbox Code Playgroud)
  4. 安装分区引导扇区:

    C:\> bootsect /nt60 S:
    
    Run Code Online (Sandbox Code Playgroud)
  5. 将兼容的 MBR 引导扇区安装到整个磁盘:

    C:\> bootsect /nt60 S: /mbr
    
    Run Code Online (Sandbox Code Playgroud)
  6. 安装Windows启动管理器所需的文件:

    C:\> bcdboot C:\Windows /s S: /f BIOS
    
    Run Code Online (Sandbox Code Playgroud)

    (替换C:\Windows为 Windows 安装的实际路径。)