Warning
Make sure the CSM in the motherboard's UEFI is disabled.
Note
When using Ventoy, always select the grub2
option.
...
...
...
...
(old drive: /dev/sda
, new drive: /dev/nvme0n1
)
mkdir -vp /mnt/old_root /mnt/new_root /mnt/new_root/boot/efi
mount /dev/sda /mnt/old_root
mount /dev/nvme0n1p2 /mnt/new_root
mount /dev/nvme0n1p1 /mnt/new_root/boot/efi
rsync -qaHAXS /mnt/old_root /mnt/new_root
genfstab -U /mnt/new_root >> /mnt/new_root/etc/fstab
arch-chroot /mnt/new_root /bin/bash
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader=GRUB
grub-mkconfig -o /boot/grub/grub.cfg