For what it's worth, I changed the subject of the first post / this thread from what it used to be, "I upgraded my CPU and a UEFI Debian installation I have no longer works!", to "How to boot Debian from a USB hard drive using UEFI from different computers".
</Edit>
I upgraded my CPU (but not motherboard) and a UEFI Debian installation I have no longer works!
For future reference, is there a way that's possible to have a Debian installation that's installed to a USB hard drive be able to boot from two (x86_64 / x64 / amd64) computers?
If so, what would I need to do?
I booted a live Debian session and chrooted into the installation and did
Code: Select all
grub-install /dev/sdX --target=x86_64-efi --efi-directory=/boot/efi/
More specifically, if I remember correctly I had done.:
Code: Select all
cryptsetup open --type luks /dev/mapper/sdX3 sdc3_crypt
Code: Select all
mount -o autodefrag,compress=zstd,subvol=@rootfs /dev/mapper/debian-vg /mnt
Code: Select all
mount --bind /dev/pts /mnt/dev/pts
Code: Select all
mount --bind /dev /mnt/dev
Code: Select all
mount /dev/sdX2 /mnt/boot
Code: Select all
mount /dev/sdX1 /mnt/boot/efi
Code: Select all
chroot /mnt
Code: Select all
grub-install /dev/sdX --target=x86_64-efi --efi-directory=/boot/efi/
Code: Select all
update-grub && update-initramfs -u && updategrub
Could someone please help me fix this?
Also, is it possible to make it so that I can boot the USB installation on two different computers? If so, what would I have to do?
I also vaguely recall having done
Code: Select all
efibootmgr add 1 /dev/sdX
Any input would be GREATLY appreciated!