Basic MBR/BCD repair commands
>
Bootrec /fixmbr>
Bootrec /fixboot>
Bootsect/nt60 sys>
Bootrec /fixboot>
Attrib \boot\bcd -h -r -s>
Ren bcd bcd.old>
Bootrec \rebuildbcdBCDEdit — bootloader configuration
>
bcdedit /set {bootmgr} device boot>
bcdedit /set {default} device boot>
bcdedit /set {default} osdevice boot>
bcdedit /set {default} device partition=c:>
bcdedit /set {default} osdevice partition=c:>
bcdedit /set {default} path \windows\system32\winload.efi>
bcdboot d:\windowsSetting the correct EFI partition (diskpart)
Run diskpart to list partitions. The EFI partition is formatted as FAT32.
>
diskpart>
select volume 3>
assign letter=m>
exit>
cd /d m:\EFI\Microsoft\Boot\>
bootrec /fixboot>
ren BCD BCD.bak>
bcdboot c:\Windows /l en-us /s m: /f ALL>
exitNote: If you assigned a letter other than m, replace it in the bcdboot command.
BCDBoot — EFI partition rebuild (UEFI)
>
bcdboot c:\windows /s S: /f UEFIRequirements: Windows folder mounted as C:\Windows, EFI partition as S:\EFI.
Repair did not work? We repair computers in Rzeszow — 7 days a week, from 180 PLN.