To recreate BCD, do the following steps:
Boot from a the BMR boot disk and open a Command Prompt.
Identify the drive and partition where you want the Boot folder located and copy it from C:\Windows\Boot (it may be necessary to copy c:\windows\Boot\PCAT and rename it to boot).
Do a change directory to the new Boot folder.
Do the following:
1. If BCD already exists (unlikely) run:
del C:\boot\bcd
2. Create a BCD store -- please note that it needs to be a temporary one as it needs to be IMPORTED to run:
bcdedit.exe /store c:\boot\bcd.tmp /create {bootmgr} /d "Windows Boot Manager"
3. Import the newly created BCD store:
bcdedit.exe /import c:\boot\bcd.tmp
4. Delete the temporary BCD store:
del c:\boot\bcd.tmp
5. Create the BCD loader and set a timeout
bcdedit.exe /set {bootmgr} device partition=C:
bcdedit.exe /timeout 15
6. Add an OS entry
bcdedit.exe /create /d "Windows 2008R2 Server" /application osloader
7. A success message which includes a GUID is shown. It would look like this:
The entry {36abeb3e-11b8-48e9-9113-44391a8ad048} was successfully created.
8. Copy the GUID value to the clipboard (including the brackets). For the next steps we assume that Windows sits on drive C: and that the newly created GUID is {36abeb3e-11b8-48e9-9113-44391a8ad048}
9. Connect the GUID with the C: volume, indicate that C: contains the OS, state the path to the OS loader and establish the OS root
bcdedit.exe /set {36abeb3e-11b8-48e9-9113-44391a8ad048} device partition=C:
bcdedit.exe /set {36abeb3e-11b8-48e9-9113-44391a8ad048} osdevice partition=C:
bcdedit.exe /set {36abeb3e-11b8-48e9-9113-44391a8ad048} path \Windows\system32\winload.exe
bcdedit.exe /set {36abeb3e-11b8-48e9-9113-44391a8ad048} systemroot \Windows
10. Make the boot loader to boot the new entry by default:
bcdedit.exe /displayorder {36abeb3e-11b8-48e9-9113-44391a8ad048}
bcdedit.exe /default {36abeb3e-11b8-48e9-9113-44391a8ad048}
At this point BCD is fully recreated. Please note that if -- and only if -- the system does not boot you may use diskpart to make the partition containing the BOOT folder active, repair the mbr record (bootrec.exe /fixmbr) and re-write the boot sector (X:\boot\bootsect.exe /nt60 all /force) where x: is the virtual drive created by the boot cd mentioned at the beginning of this KB.