UEFI boot fix (after HDD to SSD migration)

This procedure explains how to fix a drive ghosted (or cloned) when it has UEFI enabled.

Please not that this was done using Windows 8.

I’ve tested this procedure with SSD and HDD, both of them working fine after.

To clone, you can use Ghost (with full disk clone) or EaseUs ToDo Backup (Free) , as demonstrated here:

 

 

Boot with Windows 8 UEFI media

(windows 7 is similar)

After choosing language options, you’ll be able to click “repair my computer”

Select the “troubleshoot” menu, then “advanced”, then “Command Prompt”

Find the UEFI partition

on the command prompt, type “Diskpart

on the diskpart> prompt, type “sel disk 0” (number zero),

then “list vol” to list the partition on your drive

Look for the partition formated in  “FAT 32” with no letter assigned

Select the partition using “sel vol n

assign a letter using “assign letter=b:

Enter these commands to fix UEFI issue after migrating and HDD to an SSD over windows

Enter these commands to fix UEFI issue after migrating and HDD to an SSD over windows

NOTE:  If you don’t see any FAT32 partition, just do this command:

bootrec /RebuildBcd

Then reboot.  You should be good to go.

Fix Windows file

Now exit dispart using “exit

type “cd /d b:\EFI\Microsoft\Boot

type “bootrec /fixboot

Rename the BCD file, type “ren BCD BCD.bak

Recreate the BCD file, type “bcdboot c:\Windows /l en-us /s b: /f ALL

replace the “en-us” with your language settings

Type “Exit” to quit and return to the troubleshoot screen, then turn off.

Reboot and it should be working.