Migrate/copy current system to a new disk

Hey all!
I would like to copy/migrate my current system to my newly installed SSD, and I’ve had some issues doing so.
Inside a live usb, I successfully copied the system partition to the new disk partition using this rsync command:

rsync -avxHAX --progress /mnt/sda4 /mnt/sdc1

Then updated the uuid inside /etc/fstab to reflect the new partition.

Afterwards, ran this command:

grub2-mkconfig -o /boot/grub2/grub.cfg

This is where I get stuck, I run this to re-install grub:
sudo grub2-install /dev/sdc

I get this error:

grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn’t exist. Please specify --target or --directory.

Has anyone have an idea what am I doing wrong?

Try reinstalling/restoring GRUB2:
Bootloading with GRUB2 :: Fedora Docs

Verify that UUIDs match fstab and GRUB2 configs.
Also regenerate initramfs if the issue persists.

1 Like

The most obvious place to check, which I didnt… thanks a lot Vladislav I will give it a try!

1 Like