On a Windows 11 laptop, booting up stopped at:
Missing File: \BCD (instead of File: \boot\bcd)
Error code: 0xc0000098
We tried Startup Repair but it failed.
The laptop had secure boot enabled in CMOS & Bitlocker was on, so we needed to get the Recovery Key from the customer’s Microsoft account. We were prompted to enter this recovery key during this process. (Fortunately, they had used their MS account on the laptop!)
- Boot from a Windows 11 install media on USB created with Rufus using UEFI option.
- On the initial screen, choose language, etc., then Next
- Click on “Repair your computer” (don’t click Install)
- Click Troubleshoot then click Command Prompt and use the following commands.
- c:
- cd windows\system32
- bootrec /fixmbr (this should say it’s successful)
- bootrec /fixboot (this returned “Access is denied”)
- bootsect /nt60 sys (should be successful)
- bootrec /fixboot (now this was successful)
- attrib c:\boot\bcd -h -r -s (returned “Path not found” error)
- diskpart
- list disk (note disk number of bootable disk, usually C. Ours was 0)
- select disk 0
- list volume (the bootable volume is the one that is FAT32 <500MB.)
(This was Volume 1 for us) - select vol 1
- assign letter=v:
- list volume (note Volume 1 now has asterisk with drive letter V)
- format fs=fat32 override
- list volume (should show same as before)
- exit (returns to command prompt)
- v:
- bcdboot c:\windows /s v: /f UEFI
- exit
Now everything is back to normal.
This was a big help in our fixing this: https://www.youtube.com/watch?v=-jjmfB20m9o