When you clone the disk you will want to copy all of the partitions.
If you just copy the data partitions without the boot partitions, the reimaged computer will not boot.
If you create the EFI
partition from scratch you will need to recreate the Windows boot loader and all of the settings for it. Same with any other operating system that uses the EFI
partition to boot.
The easiest way to clone partitions is to clone all partitions rather than only the data partition. If you do only the data partition then you have to recreate all of the partitions and any configurations needed within each partition.
Boot partition (EFI
)
The EFI
partition is used to hold the boot loader and configuration for the boot loader.
You will want to copy this as it usually holds necessary data for the successful booting of the system.
It is possible to rebuild the partition but it is rather difficult and I would not recommend it for the faint of heart.
the best option is to image the entire disk (or all of the partitions) and restore it (or all of them).
If you want to manually create the boot partition, here is the diskpart
command:
create partition efi [size=<n>] [offset=<n>] [noerr]
MRP Partition
Based upon my research for this partition, it is just a buffer space that windows may or may not use.
The best bet is to copy and restore it because it appears that it could hold partition metadata that you may not want to lose.
If you want to manually create this partition, here is the diskpart
command:
create partition msr [size=<n>] [offset=<n>] [noerr]
Windows Boot Loader
You will need to use bcdboot
to make the Windows Boot loader files required to boot the Windows system. Use bcdboot
with the /f UEFI
option to specify that you need to set up a UEFI set of the Windows Boot Loader files. Make sure that you customize the command as I left out a bunch of options that are system specific. See bcdboot /?
for more information.
There is also a link to the technet article below.
After the windows boot loader files have been recreated then you will need to configure the BCD database. You can do this by using the bcdedit
command.
I am not going to go into detail about this command as it is huge, just run bcdedit /?
for more info or read more at technet. There is also a link to the technet article below.
It is even easier to use EasyBCD as it has a nice interface you can use to edit the BCD database and it is free. (see link below)
Tl;Dr
Always migrate all partitions for Windows systems that the system creates (E.G. EFI
, boot
, MRP
, system
, recovery
, etc...
).
Links
What is the MRP
?
https://en.wikipedia.org/wiki/Microsoft_Reserved_Partition
What is the EFI
partition?
https://en.wikipedia.org/wiki/EFI_system_partition
How to create the MRP
:
https://technet.microsoft.com/en-us/library/cc770438(v=ws.11).aspx
How to create the EFI
Partition:
https://technet.microsoft.com/en-us/library/cc725927(v=ws.11).aspx
How to use BCDBoot:
https://technet.microsoft.com/en-us/library/gg577238(v=ws.11).aspx
How to use BCDEdit:
https://technet.microsoft.com/en-us/library/cc731662(v=ws.11).aspx
Neosmart EasyBCD:
http://neosmart.net/EasyBCD/