Windows 8 won't boot, BCD error
This page helped me restore the BCD on my Intel RSTe Raid SSD Configuration for Windows 7, on UEFI ASRock X79 Extreme 9 after upgrading the Bios.
diskpart
list disk
select disk 0 #Select the desired disk
create partition efi size=100
list partition #Make sure that the 100mb partition is selected
format quick fs=fat32 label="System"
assign letter=B
create partition msr size=128
list partition #Check for errors
list vol
select vol 3 #Use the number corresponding to your windows installation
assign letter=C
exit
Now copy the EFI files by typing:
mkdir B:\EFI\Microsoft\Boot
xcopy /s C:\Windows\Boot\EFI\*.* B:\EFI\Microsoft\Boot
Now we will set the boot configuration data by typing:
b:
cd EFI\Microsoft\Boot
bcdedit /createstore BCD
bcdedit /store BCD /create {bootmgr} /d “Windows Boot Manager”
bcdedit /store BCD /create /d “Windows 7” /application osloader
#This will return a GUID, referred to later as {guid}
bcdedit /store BCD /set {bootmgr} default {guid}
bcdedit /store BCD /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
bcdedit /store BCD /set {bootmgr} displayorder {default}
#Now it's not {bootmgr} anymore but {default}!
bcdedit /store BCD /set {default} device partition=c:
bcdedit /store BCD /set {default} osdevice partition=c:
bcdedit /store BCD /set {default} path \Windows\System32\winload.efi
bcdedit /store BCD /set {default} systemroot \Windows
exit
Credit to: http://www.hasper.info/repair-a-destroyed-windows-7-uefi-boot-sector/
This happened to me for the second time earlier today and I was getting the hardware can't be found
error using just bootrec
so I shall talk you through the steps I used.
Entering the following commands into the recovery terminal on the installation media disk. The first set fix the Master Boot Record (MBR) and the Bootsectors.
bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
I then attempted to rebuild the Boot Config Data (BCD)
bootrec.exe /rebuildbcd
This solved it for me, however if you need further steps, then the information I have used (and more) can be found on this website.