从 EFI 分区中删除 Microsoft 文件夹后如何恢复 Windows 10 启动?

Chi*_*Abs 10 windows boot windows-10

我不得不调整 EFI 分区的大小并对其进行格式化,它删除了其中的 Microsoft 文件夹,我无法再在 Windows 10 上启动。我想在 Windows 10 上恢复启动功能。

我进入 Windows 10 磁盘中的恢复模式命令行并输入bootrec /rebuildbcd它找到我的 Windows 10 安装并说重建成功,但是我无法在它在 efi 启动菜单中创建的条目上启动(当我选择它)。关于如何修复 Windows 10 启动的任何想法?

小智 10

你不能用/fixmbr. 这将搞砸您的 GPT 磁盘并将其返回到 MBR 两个不同的野兽。

要修复 EFI 引导,请使用功能键加载 Windows USB 以进入设置菜单,单击允许 EFI USB。

出现要升级的框,单击“否”。

然后出现 Windows 安装窗口,单击NEXT Repair Computer > Troubleshoot... > Advanced > Command Prompt

在命令提示符下:

diskpart
list disk  /* rem with a USB and HDD you will only have two selections
sel disk 0 
list vol
sel vol    /* rem look for SYSTEM FAT32 hidden ~100 MB mine was sel vol 3 yours maybe different
format fs=fat32 quick label=(optional)
list vol   /*rem look for and remember which Volume Windows is C or D ?
exit
/* then...
bcdboot C:\Windows
Run Code Online (Sandbox Code Playgroud)

现在在这里,如果它在一分钟点击后挂断CTRL+ c。(我不知道为什么它有时会这样做,但是您会收到一条消息,启动文件已成功创建,并且它可以很好地启动到 Windows。)

exit
Run Code Online (Sandbox Code Playgroud)

单击关闭计算机,移除 USB 并重新启动。


Tod*_*dge 8

这是对knotheu优秀答案的更新。

一个EFI启动必须用适当的工具进行修复。(大多数遗留的 MBR-BIOS 磁盘设置将使用该fixmbr工具。)

要修复 EFI 启动,请通过以下方式启动到 Windows 恢复环境:

  • 使用 UEFI 定义的功能键也启动 Win RE 分区(如果您的计算机有)
  • 使用USB 恢复驱动器启动 Win RE(希望读者有先见之明来创建它)[此外,可能必须编辑 UEFI 设置以允许 USB 设备启动优先级]

Win RE 启动后,通过类似于以下内容的命令进入命令提示符:疑难解答...高级选项? 命令提示符。从那里:

diskpart               # disk-partition editor/formatter…
list disk
select disk [0-9]      # the EFI System partition is usually on disk 0
list partition
sel partition [0-9]    # the EFI _System_ partition is usually the first [1]
detail partition       # details if formatted, healthy, _System_ partition
  ! the next command nullifies any current data on the partition !
  I had to do this because my partition showed RAW, `chkdsk` lacked success,
  zero files were on it; though this method did work for me to restore
  Windows booting, I would recommend try to fix the boot partition first.
format fs=fat32 quick label=System
list vol               # disk label "Windows" to determine disk letter
exit
Run Code Online (Sandbox Code Playgroud)

随着系统格式化的分区和Windows目录盘符的知识,下一步是将启动文件复制到EFI系统分区,我相信NVRAM被更新:

mountvol S: /S                       # the System partition mount to S:
bcdboot c:\windows /s s: /f UEFI /v  # `bcdboot c:\windows` may be enough
                                       /s for mountpoint, /f for firmwaretype
                                       /v for verbose
exit                                 # then rm USB is used, reboot
Run Code Online (Sandbox Code Playgroud)


Hyd*_*oax -2

您是否按照以下顺序进行了rebuildbcd?(每一项后按回车键)

  1. 引导记录/扫描
  2. 引导记录/FIXMBR
  3. 引导记录/修复引导
  4. 引导记录/重建DBCD

如果 bootrec /rebuildbcd 结果

已成功扫描 Windows 安装。已识别的 Windows 安装总数:1

[1] D:\Windows 将安装添加到启动列表?是/否/全部:

然后它不起作用,请尝试以下操作:

  • chkdsk /r

检查磁盘完成后,您可以尝试启动计算机并检查是否可以解决问题。如果不,

  • SFC /SCANNOW 命令重建或恢复计算机上损坏的系统文件。

重启并检查

  • FIXMBR 可能会搞砸 GPT 磁盘上的所有内容。 (2认同)