You are not logged in.

#1 2022-08-25 19:09:42

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

[Solved] after update, PC boots into bios

after a routine update, I rebooted. grub is configured to wait for input, but now it goes directly into the bios (EFI).

I was able to boot off a USB with a different disrto on it. I mounted my partitions and chrooted into it.

I attempted to reinstall grub, thinking that was the issue. it's been a while since I've installed grub. my entire /boot is fat with the directory /boot/EFI existing. this happens

grub-install --target=x86_64-efi --efi-directory=EFI --bootloader-id=GRUB  /dev/nvme0n1p1
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `EFI'.

first, is reinstalling grub necessary? second, why is grub not finding my EFI directory. /dev is a bind mount in this chroot.

any ideas?

Last edited by shoelesshunter (2022-08-25 22:54:11)

Offline

#2 2022-08-25 20:40:53

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [Solved] after update, PC boots into bios

Where did you pick up that nonsense command?
https://wiki.archlinux.org/title/GRUB#Installation
Your esp is likely /boot ?

Offline

#3 2022-08-25 20:54:46

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [Solved] after update, PC boots into bios

this system is the first I've ever used UEFI.

I believe I did something wrong when I set this up.

the contents of /boot look like this:

EFI                           initramfs-linux.img               vmlinuz-linux
grub                          initramfs-linux-lts-fallback.img  vmlinuz-linux-lts
grub.cfg                      initramfs-linux-lts.img
initramfs-linux-fallback.img  intel-ucode.img

likewise /boot/EFI looks like this:

EFI             GRUB

/boot/EFI/EFI looks like:

GRUB

/boot/EFI/EFI/GRUB is

grubx64.efi

obviously, I did something wrong here. I'm looking at the wiki, and I'm having a difficult time making sense of it. what do I need to prune here?

Offline

#4 2022-08-25 21:17:05

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [Solved] after update, PC boots into bios

You want /boot to be your esp, /boot/EFI and /boot/grub belong in there, /boot/EFI/GRUB should be there, but no /boot/EFI/EFI - which however is where grubx64.efi is, instead in /boot/EFI/GRUB/grubx64.efi
tl;dr, replace "esp" w/ "/boot" in the wiki and there's one EFI layer too much.

Offline

#5 2022-08-25 21:37:54

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [Solved] after update, PC boots into bios

Thank you. And later when updating grub, is it still

grub-mkconfig -o /boot/grub/grub.cfg

Offline

#6 2022-08-25 22:39:20

cloverskull
Member
Registered: 2018-09-30
Posts: 172

Re: [Solved] after update, PC boots into bios

shoelesshunter wrote:

Thank you. And later when updating grub, is it still

grub-mkconfig -o /boot/grub/grub.cfg

Yep!

Offline

Board footer

Powered by FluxBB