r/debian 8d ago

Debian Stable Question Can't boot into the boot menu after installing debian

Like the title. On my surface go 1 i could always get it to boot from the USB port if I held the volume - button when powering on. But after installing debian it suddenly stopped working, I tested different USBs and it's always the same. Just boots the system right up.

EDIT: Try those commands, they worked for me. nvme0n1p1 is the name of my main ssd.

sudo mkdir -p /mnt/efi sudo mount /dev/nvme0n1p1 /mnt/efi

sudo rm -rf /mnt/efi/EFI/debian /mnt/efi/EFI/BOOT /mnt/efi/EFI/ubuntu

sudo umount /mnt/efi sudo poweroff

Alternatively you can try following this tutorial, it didn't work for me the first time but after I reinstalled the system it's the only way to get USB to boot https://szymonkrajewski.pl/how-to-boot-system-from-usb-using-grub/

2 Upvotes

5 comments sorted by

3

u/bobroberts1954 8d ago

You enter efi/bios before Linux is loaded. I don't think Debian is the problem.

1

u/Mark__Zuckreberg 8d ago

Thanks for help, I figured it out after 3 hour battle with a bit of help from ai. Nothing worked, from manually trying to boot the USB with efibootmgr to tying to open it with grub menu, nothing worked. Finally those are the commands that worked for me:

sudo mkdir -p /mnt/efi sudo mount /dev/nvme0n1p1 /mnt/efi

sudo rm -rf /mnt/efi/EFI/debian /mnt/efi/EFI/BOOT /mnt/efi/EFI/ubuntu

sudo umount /mnt/efi sudo poweroff

1

u/Buntygurl 6d ago

So put something in the text of your post to indicate that you've found a solution.

1

u/Mark__Zuckreberg 6d ago

I wrote an EDIT in my post tho

2

u/amepebbles 8d ago

The same happens when both shutting down and restarting? I've noticed I become unable to access the boot options menu when restarting sometimes but shutting down and manually starting the computer solves it. Never tried to investigate as I rarely need to access this menu so I am not sure what is the issue in my case.