I just cloned a hard drive partition (of Windows 10) to a new hard drive.
The thing is that I did it wrong and I just copied the data part, NOT the boot part. So now I have a new hard drive with a Windows copy with no boot partition.
I tested many tutorials, but the problem is that the bootable part NEVER existed on the new hard drive (so it can't be recovered!).
If someone knows how to create from scratch a new bootable partition for Windows 10. I have many licensed programs and lots and lots of configuration.
And if someone asks I just deleted all the data from the old hard drive (genius!), so I can't copy now the bootable disk partition.
Best Answer
There are general steps in the BCDBoot docs: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di#repair-the-system-partition
For UEFI the partition layout is documented at: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions
Create a new "system" partition of approximately 250 MB:
Format using FAT32, and assign a temporary drive letter:
Install the files needed by Windows boot manager, together with an UEFI NVRAM "boot entry":
For BIOS the partition layout is documented at: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-biosmbr-based-hard-drive-partitions
Create a new "system" partition of approximately 100 MB:
Format using NTFS, and assign a temporary drive letter:
Set the 'active' or 'bootable' flag for this partition:
Install a partition boot sector:
Install a compatible MBR boot sector to the whole disk:
Install the files needed by Windows boot manager: