I can't remember if the
bcdboot command always fixes the error below.
The Boot Configuration Data for your PC is missing or contains errors.
File: \EFI\Microsoft\Boot\BCD
Error code:
0xc000000f
View attachment 159389
There would have been no need to create a new EFI partition. A new EFI partition is often created manually on the Windows disk when the disk that originally contained the EFI partition needs to be removed.
1. Delete the new EFI partition
diskpart
list volume (find the EFI partition number)
select volume # (use the EFI partition number)
delete partition override
exit
2. Rebuild the EFI boot files on the original EFI partition
Boot from the Windows USB flash drive in UEFI mode and open a Command Prompt from WinRE.
diskpart
list volume (find the Windows partition letter)
exit
bcdboot x:\windows
Replace "x" with the Windows partition letter.
You will see the error "
Failure when attempting to copy boot files"
- if the USB flash drive is booted in BIOS mode
- if you enter the wrong volume letter for the Windows partition
- if the EFI partition is missing or not formatted as FAT32
The bcdboot command automatically identifies the FAT32-formatted EFI system partition, copies the required UEFI boot files from the Windows partition to it, and creates a new Boot Configuration Data (BCD) store on that partition.
edit: The
/s <volume letter> option is useful on systems with multiple EFI partitions, where you want to explicitly specify which EFI partition should receive the UEFI boot files.
Note that the
bootrec /RebuildBcd command is not used on UEFI/GPT systems, nor are the
bootrec /FixMbr and
bootrec /FixBoot commands.
bootrec /RebuildBcd
- Scans all disks for Windows installations that are
not in the BCD store.
- It then gives you the option to add them into the BCD store.
Limitations of bootrec /RebuildBcd
- bootrec /rebuildbcd only manipulates the BCD database itself.
- It does
not recreate the actual boot files (like bootmgfw.efi or bootmgr) — that’s what the
bcdboot command does.
- If the system partition’s boot files are missing or corrupted, bootrec /rebuildbcd alone won’t fix that.