First time trying a restore was a sucess even with BCD challenges

Probably a long one, sorry. Have been running urbackup for just a couple weeks on Ugreen NAS. When I rebuilt my PC several months ago I installed a new m.2 and also kept my old Win 10 m.2. When I installed Win 11 on the new m.2 I did not realize the BCD files were created on the old m.2. I decided I wanted to move the old m.2 to my NAS and I removed it. As you can imagine this went badly for me because of the now missing BCD files and I could not boot into windows. I was able to put the drive back in and copy the files to the new m.2 and it would boot, but wasn’t 100% correct. I tried every tutorial I could find and couldn’t seem to get it fixed.

I then decided to make an image backup, format and reinstall windows. Install went fine, so I grabbed the urbackup restore tool and restored my image backup. That worked, but because the image did not contain the BCD files it restored but broke the ability to boot into windows. Reinstalled windows and then tried to restore just the system volume and not the other volumes. The restore tool just sat there saying it was restoring, but never left 0% progress. Reformatted, reinstalled windows again, and then ran a restore and let it overwrite everything again.

After looking at every tutorial available I finally realized what was going on. The restore was overwriting the BCD FAT32 partition to NTFS because that is what my backup was since my BCD partition was on a totally different drive. Using diskpart I reformatted the partition (D:) to FAT32. I then noticed in diskpart the main partition (where Windows is installed) did not have a drive letter so I assigned it one (B:). I was then able to run bcdboot B:\Windows /s D: /f UEFI which rebuilt the directory and finally fixed my issues. I did have to select the right boot drive in the BIOS, but everything is working and my PC is up and running exactly as it was yesterday.

Running a new image backup so as to hopefully not have to do that ever again.