Moving EFI and BIOS partitions to new Disk

kylelt

New Member
Jun 22, 2020
1
0
1
30
Hi All,

I have a need to move the boot disk to new media,

My actual VMStore is on separate disks and will be left alone accordingly,

So far in my test environment i have:

Added new disk, added new disk to pve lvm vgroup,
vgreduce (original boot disk)
pvremove (original boot disk)
mount new and old efi partition copy old -> new
grub install efi target to new efi partition on new disk ( partition settings except size match old boot disk )
grub install bios target to new bios partition (partition settings except offset ( 40 instead of 34 ) match old boot disk )
update-grub

Power Off
Remove disk

Reboot:
I get a kind of working EFI (shows some size mismatch errors but still loads) boot after the original media is moved
I cannot boot from the bios partition,

What I need to do is understand is
1. how to make the bios partition detectable by hardware ( currently using virtualbox for my test environment )
2. How to configure EFI boot to point at pve 'root' partition (

Would it be easier to dd from the original disk to the new disk?