Hey,
My neighborhood experienced a power cut which caused problems with my PC boot-up sequence. I am running Debian trixie stable.
I am stuck in the BIOS (Aptio Setup Utility, American Megatrends) and there are no drives recognized as bootable drives. I tried the following steps with a debian stable live-iso:
mkdir -p /mnt/target
mount /dev/sdb2 /mnt/target
mkdir -p /mnt/target/boot/efi
mount /dev/sdb1 /mnt/target/boot/efi
Here sdb1 is my uefi partition and and sdb2 the root partition. Now I bind the important root directories in order chroot into my system. Finally I tried to rewrite the grub entries.
for d in dev proc sys run; do mount --bind /$d /mnt/target/$d; done
chroot /mnt/target
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian --removable --recheck
update-grub
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.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check device map.
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
Here sda1 is the live-iso on the usb and just as a comment there is a efi entry for my Windows 11 dual boot. So this is expected. Then I exit chroot, unmount the directories, and reboot:
exit
for d in dev proc sys run; do umount /mnt/target/$d; done
umount /mnt/target/boot/efi
umount /mnt/target
reboot
Now I am still stuck with the issue described above - no bootable drives and back to BIOS. Once I already repaired a problem with bootable drive entries in .efi, so I though maybe I can resolve the problem in the same way. I am not entirely new to Linux, but also not a pro. Therefore, I dont know how to continue and would really appreciate if someone in this community has a suggestion what I could try. Thanks!
Edit: the drives ans all other hardware components are fully functional!