You are not logged in.
Pages: 1
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
Where did you pick up that nonsense command?
https://wiki.archlinux.org/title/GRUB#Installation
Your esp is likely /boot ?
Offline
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.imglikewise /boot/EFI looks like this:
EFI GRUB/boot/EFI/EFI looks like:
GRUB/boot/EFI/EFI/GRUB is
grubx64.efiobviously, 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
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
Thank you. And later when updating grub, is it still
grub-mkconfig -o /boot/grub/grub.cfgOffline
Thank you. And later when updating grub, is it still
grub-mkconfig -o /boot/grub/grub.cfg
Yep!
Offline
Pages: 1