Monday, October 20, 2008

Rebuild the BCD Store

I was testing some different debug settings today with the Windows Boot Manager on my development machine and accidentally set the debug transport provider to a non-existent DLL. This is pretty easy to do when using the BCDEDIT utility on your Windows Vista machine so be warned. Once I restarted my machine, Windows would no longer boot and I couldn't even enter safe mode. My only option was to rebuild the Boot Configuration Data (BCD) after booting from a Windows install disk and entering the recovery environment.

If you find yourself in a similar situation and have corrupted your BCD, the steps to recover your machine are pretty straight forward. First of all, you need a copy of a Windows Vista Install disk. If you can't find one of these, you've got a problem!

  1. Restart your machine, enter the Bios <F2> and make sure you can boot from CD/DVD.
  2. Insert your licensed Windows Vista Install disk
  3. Once Windows Vista boots, choose Repair your computer
  4. Choose Advanced recovery options and click Command Prompt
  5. At the console, enter bootrec /rebuildbcd
  6. Restart your computer

If the rebuild does not succeed in the above, you will need to remove the current BCD before attempting to rebuild. Here's what to do:

bcdedit /export c:\bcd.bak
rename c:\boot\bcd bcd.old
bootrec /rebuildbcd

Good luck! :)

1 comment:

  1. Looks like there's an easier way to do this instaead of rebuilding the bcd:

    bcdedit /deletevalue {default} dbgtransport

    ReplyDelete