Guide 01 · Barth.pl

Boot blue screen (BSOD) — often after cloning HDD→SSD

After disk migration the system often fails to boot due to a broken bootloader. Below are commands we use in the service — run them from Windows recovery media.

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 \rebuildbcd

BCDEdit — 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:\windows

Setting 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
>exit

Note: 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 UEFI

Requirements: 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.