Quantcast
Viewing all articles
Browse latest Browse all 3387

Installation • I upgraded my CPU and a UEFI Debian installation I have no longer works!

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:

grub-install /dev/sdX --target=x86_64-efi --efi-directory=/boot/efi/
with X replaced with the letter that the live session gave.

More specifically, if I remember correctly I had done.:

Code:

cryptsetup open --type luks /dev/mapper/sdX3 sdc3_crypt

Code:

mount -o autodefrag,compress=zstd,subvol=@rootfs /dev/mapper/debian-vg /mnt

Code:

mount --bind /dev/pts /mnt/dev/pts

Code:

mount --bind /dev /mnt/dev

Code:

mount /dev/sdX2 /mnt/boot

Code:

mount /dev/sdX1 /mnt/boot/efi

Code:

chroot /mnt

Code:

grub-install /dev/sdX --target=x86_64-efi --efi-directory=/boot/efi/

Code:

update-grub && update-initramfs -u && updategrub
When I reboot, it just doesn't detect anything. It's not like Debian boots but has errors; it just doesn't get detected at all.

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:

efibootmgr add 1 /dev/sdX
in different rescue attempts of mine, one attempt outside the chroot (in the live Debian) and one inside the chroot.

Any input would be GREATLY appreciated!

Statistics: Posted by s3a — 2023-12-24 12:49 — Replies 1 — Views 62



Viewing all articles
Browse latest Browse all 3387

Trending Articles