Windows won’t boot – how to repair the Windows Boot Loader (BCD)

Several times after performing a system restore I’ve found my computer doesn’t boot – instead I get a message which says ‘Boot device not found’.

Other messages that fall into the same problem are:

  • no bootable device – insert boot disk and press any key
  • NTLDR is missing or corrupted
  • Ntoskrnl.exe is missing
  • Ntdetect.com is missing
  • BOOTMGR is missing or corrupted
  • NTFS.SYS is missing
  • Hal.dll is missing

Below is the process I use to repair a corrupt or missing Windows Boot Loader (BCD). The same process applies for Windows 8, Windows 8.1 and Windows 10.

Step 1: Get the command prompt loaded

To repair the BCD you will need to enter some commands into the command prompt.

The easiest way to get the command prompt loaded is to boot from your Windows install media and clicking ‘Repair your computer’.

If you don’t have a Windows install media, see Windows 10 – How to create an install USB drive.

  1. Boot the Windows install media
  2. At the first window just click ‘Next’
  3. windows-repairbcd1
  4. Click ‘Repair your computer’ at the bottom left of the window
  5. windows-repairbcd2
  6. From the options, click on ‘Troubleshoot’
  7. windows-repairbcd3
  8. Then ‘Advanced options’
  9. windows-repairbcd4
  10. Then ‘Command Prompt’
  11. windows-repairbcd5
  12. The command prompt will now load on the screen

Step 2: rebuild Windows Boot Loader (BCD)

In the command prompt, run the following commands

  1. diskpart
  2. sel disk 0
  3. list vol
  4. This will display a list of all the volumes on the drive. In the next step you need to select the windows boot volume — it will be relatively small, e.g. 500 MB. In this example the volume is vol 2
  5. sel vol 2
  6. assign letter=v:
  7. exit
  8. v:
  9. dir
  10. This should display either an empty drive (“File Not Found”) or a single directory called EFI
  11. Now to run the important command – the rebuild
  12. bcdboot C:\Windows /l en-us /s v: /f all
  13. When completed you will see ‘Boot files successfully created.’
  14. Type exit to close the command prompt and choose ‘Turn off this computer’ to leave the Windows install environment.
  15. Remove the install media and turn on the computer – Windows should now load.

windows-repairbcd6