Technical Anshu
Tutorials Blog
🛠️ BCD 启动修复

Windows 显示错误 0xc000000f 并且您的 PC 设备需要修复 - 我该如何修复它

蓝色恢复屏幕表示启动配置数据丢失或包含错误,并且 Windows 根本无法启动。 The good news: Windows itself is usually intact — only its boot files are damaged, and they can be rebuilt in about fifteen minutes from a WinPE toolkit USB.

✍️ Technical Anshu🪟 UEFI + Legacy systems⏱️ 15 minute repair
🎥 本次修复使用的WinPE工具包USB在视频中一步步搭建

BCD(启动配置数据) 是 Windows 启动管理器读取以查找和启动 Windows 的小型数据库。 It breaks after failed updates, sudden power loss, dual-boot experiments, disk errors or a careless clone — and when it breaks, the PC stops before Windows even begins loading.重建它不会影响您的文件或程序;它只重写引导文件。 One honesty note before starting: if this error keeps coming back every few days, the disk underneath is probably failing — Fix 5 covers that check.

RECOVERY SCREEN — THE ERROR ITSELF
Recovery
Your PC/Device needs to be repaired
The Boot Configuration Data for your PC is missing or contains errors.
File: \Boot\BCD
Error code: 0xc000000f
You'll need to use recovery tools. If you don't have any installation media (like a disc or USB device), contact your PC administrator or PC/Device manufacturer.
📷 这个错误是什么样子的 — 注意文件名 \Boot\BCD 和代码 0xc000000f;该组合正是这个修复
1

启动 WinPE 并打开命令提示符

  1. Boot your Ventoy toolkit USB and choose Sergei Strelec WinPE (or boot a Windows ISO from the same USB and choose Repair your computer → Troubleshoot → Command Prompt)
  2. 在 Strelec 中,从桌面或“开始”菜单打开命令提示符
  3. 本指南中的所有内容都是在该提示符下键入的 - 命令完全按照必须输入的方式显示
2

查找真正的 Windows 驱动器盘符

在 WinPE 中,驱动器盘符会被打乱 — 您的 Windows 分区通常是 D: 或 E:,尽管通常是 C:。永远不要猜测;测试一下。

  1. 键入 dir C:\Windows 并按 Enter — 如果出现文件列表,则 C: 是您的 Windows 驱动器
  2. 如果报告未找到该文件,请尝试 dir D:\Windows,然后 dir E:\Windows,直到一个有效 - 请注意该字母,将其称为 Windows 字母
  3. 现在运行 diskpart,然后运行 list vol — 注意大约 100–300 MB 的小 FAT32 分区(EFI 分区,通常没有字母)和您的 Windows 分区
  4. 如果您的 PC 是 UEFI(过去十年的大多数 PC),请将 diskpart 打开 - 您在下一步中需要它。对于旧版/MBR PC,请键入 exit 并转到修复 4
3

UEFI PC:使用 bcdboot 重建启动文件 ⭐

这是现代、可靠的方法。仍在diskpart内:

  1. 选择 EFI 分区:sel vol 2(使用与 PC 上的小 FAT32 EFI 分区相匹配的卷号 - 每个计算机的数字不同)
  2. 给它一封信:assign letter=Z:
  3. 离开磁盘部分:exit
  4. 使用 Fix 2 中的 Windows 盘符重建启动文件(本示例使用 C: — 如果不同,请将其替换为您的盘符):bcdboot C:\Windows /s Z: /f ALL
  5. 成功准确地读取:成功创建启动文件。
COMMAND PROMPT — THE REPAIR, AS TYPED
X:\> diskpart
DISKPART> list vol
DISKPART> sel vol 2
DISKPART> assign letter=Z:
DISKPART> exit

X:\> bcdboot C:\Windows /s Z: /f ALL
Boot files successfully created.
📷 成功是什么样子的 — 一行确认新的启动文件已写入

The WinPE environment these commands run in is part of the toolkit built on screen in the video above — one USB gives you the PE desktop, the prompt, and every supporting tool.

4

旧版/MBR PC:使用 bootrec 命令

在具有 MBR 磁盘的旧版传统 BIOS 计算机上,适用经典三重奏。键入每个命令并在每个命令后按 Enter:

  1. bootrec /fixmbr
  2. bootrec /fixboot
  3. bootrec /rebuildbcd — 当它找到您的 Windows 安装并要求将其添加到启动列表时,按 Y

诚实的说明:在 UEFI/GPT 计算机上 bootrec /fixboot 通常会回答“访问被拒绝”。这是预期的行为 - 使用 Fix 3 中的 bcdboot 方法而不是对抗它。

5

重新启动、验证 — 并检查磁盘是否恢复

  1. 关闭提示,重新启动电脑并拔下 USB — Windows 应该正常启动
  2. 如果几天内再次出现相同的错误,请将其视为磁盘警告,而不是 Windows 怪癖:再次启动工具包并打开 CrystalDiskInfo 以读取驱动器的运行状况
  3. 您还可以使用 chkdsk C: /f (使用您真正的 Windows 字母)从 PE 提示符检查文件系统 — 应该备份和更换反复产生新错误的驱动器
⚠️ 磁盘分区安全:本指南仅列出卷并分配一个字母 - 它不会格式化任何内容。在执行修复 3 时,请勿运行 clean 或 format 之类的命令,除非您完全理解它们,否则您可能会在其他教程中看到它们;磁盘编号错误意味着数据被删除。

🎥 在视频中构建修复工具包

Ventoy + Strelec + MediCat + Gandalf 位于一个 USB 上 - 完整的构建,因此您的维修环境在故障发生之前就已准备就绪。

▶️ Watch Full Video
❓ 常见问题

重建 BCD 是否会删除我的文件或程序?

不。bcdboot 和 bootrec 只写入小引导文件和引导数据库。 Your Windows installation, user files and programs are not modified — the repair simply teaches the PC how to find and start the Windows that is already there.

bcdboot 显示“尝试复制启动文件时失败”。怎么了?

Usually one of three things: the Windows letter in your command is not the partition that actually contains the Windows folder, the EFI partition letter was not assigned, or the disk has errors.重新检查修复 2,确认 diskpart 中的 Z: 分配,如果仍然失败,请运行磁盘健康检查。

现在 BIOS 会显示“未找到引导设备”。这是同样的错误吗?

否 — 该消息来自固件,在读取任何 Windows 文件之前。这意味着 PC 没有看到该磁盘或未将其提供为引导设备。 Check that the drive is detected in BIOS, that the boot mode (UEFI/Legacy) matches how Windows was installed, and that Windows Boot Manager is in the boot order.

本指南基于Technical Anshu的“一个USB = 所有工具”视频 • 被某个步骤卡住了?在视频评论中提问——你会在那里得到帮助🙏