moving ubuntu installation (BIOS LEGACY) into a new drive (EFI)

prepare new drive GPT partition, make sdx1 as fat32 with 550MB with flag boot/efi make sdx2 as ext4 sdx3 as swap boot to ubuntu flashdrive open gparted display source drive, right click copy partition, paste into sdx2 boot to ubuntu flashdrive dont mount anything install boot-repair chroot to sudo chroot "/mnt/boot-sav/sdx2/" make internet works with echo "nameserver 8.8.8.8" > /etc/resolv.conf && echo "nameserver 8.8.8.8" > /run/systemd/resolve/stub-resolv.conf sudo apt update folllow steps from boot repair (reinstalling grub)