I’ve just copied my system from a hard disk drive to a new SSD through rsync using instructions from the arch wiki (I’m not allowed to include the link). I’d like to boot from this new drive. What I’ve done so far:
modifying /etc/fstab on the SSD with the SSD’s UUID
executing update-grub
The output is the following:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Manjaro Linux (21.3.7) on /dev/nvme0n1p1
Adding boot menu entry for UEFI Firmware Settings ...
done
I do not see any new grub boot menu entry at boot time after that. My /boot partition is located on my HDD, because I think my motherboard is too old to boot using an NVME drive.
And did you keep the previous device attached to the system?
If yes then detach the previous device as you will have duplicated disk/partition UUIDs which is Universal Uniqui IDentifier - which is no longer unique and thus creating problems.
I used rsync, as in the Arch wiki’s rsync page, “As a backup utility” paragraph.
After the copy, I modified the /etc/fstab to include the new copied system’s partition UUID as /and removed the HDD’s partition UUID (and associated line). Sorry for not mentioning this second part in my intial post.
The /boot partition however, is the same in both /etc/fstab, since I did not copy this partition to the new disk. Should I delete it from the SSD’s fstab ?
The problem seems to be that grub was installed from the system on the old drive.
Boot from a usb, chroot into your new system and reinstall grub from there.