Wednesday, July 19, 2023

cloning bootable SSD / HDD / NVME

 cloning bootable SSD / HDD / NVME  

* target disk - make it GPT 

* tool used AoMei Partition Assistan 10.1.0

* the system clone wizard does not work !


Use bootable USB tool to clone 4 usual windows 10 / 11 partitions one by one 

this way the partitions will keep it content type and status 

then 

* open command prompt 


diskpart the target disk

list volumes 

IMPORTANT - not partitions but volumes 

select volume X

 assign letter=N:

exit 

>N:

check the letter that the target system disk has  assuming C: but if D: does not matter

>bcdboot C:\windows /s N: /f UEFI


reboot 


* On Boot will give a boot options menu. 

* Usually first will work but - try other.

* when booted ok 

* run msconfig as Administrator 

* -> boot tab - delete the not working boot options. 

reboot


DONE


=====

when moving from MBR to GPT drive 

need to create a EFI partition - this one is exactly what works and takes few minutes https://www.tenforums.com/installation-upgrade/52837-moving-recreating-efi-partition.html#post698559

Can be done from any WinPE not only Windows install media

- Boot the computer using the Windows 7/8/8.1/10 installation media.
- On the first screen, press SHIFT+F10 to bring up the command prompt.
- Run the following commands at the command prompt.

diskpart
list disk
select disk # Note: Select the disk where you want to add the EFI System partition.
list partition
select partition # Note: Select the Windows OS partition (# number) or your data partition.
shrink desired=100
create partition efi size=100
format quick fs=fat32
assign letter=s

list partition
list volume Note: Note the volume letter where the Windows OS is installed.
exit

bcdboot X:\windows /s S:
Note: Replace "X" with the volume letter of the Windows OS partition.

BCDBoot copies the boot files from the Windows partition to the EFI System partition and creates the BCD store in the same partition.

Remove the Windows installation media and restart the computer into your BIOS settings and set the SSD as the First Boot Device.



No comments:

Followers