Having issues with grub
So im at the end of an arch linux install, and grub is being a pain in the ass.
Whenever I reboot I get "reboot and select proper boot device, or insert boot media in selected boot device."
However if I got to the EFI shell included on the Arch ISO, I can do
fs1:
cd efi
cd grub
grubx64.efi
Which opens up the grub console, from which I can get into arch
So I created this:
efibootmgr --create --gpt --disk /dev/sda --part 2 --write-signature --label "GRUB2" --loader "\\EFI\\grub\\grubx64.efi"
And it still doesnt want to cooperate. I can even see the new "GRUB2" added in efibootmgr as the first thing to run.
Tips?
About this post
- Posted
- Archived
- Score
- 16 · 100% up
- Kind
- Text
- ID
- 7c6use
15 comments
tbh I used grub on my first arch install, and it was a massive pain in the ass.
Try using systemd-boot
Yeah grub on EFI is pretty terrible. I personally directly boot the kernel as a EFI file (known as EFISTUB), or use
sbupdate-giton the AUR which packs the kernel, command line and initramfs into a single EFI-compatible file, and signs it for Secure Boot.I mean, I'm personally using Grub right now, mainly cuz I installed Antergos temporarily (pls dont kill me /r/archlinux) and I forgot to check off the systemd-boot box
But yeah, when I'm installing arch I go with the systemd-boot way, cuz i cba to install and troubleshoot grub everytime
This also happened to me a few days ago. I thought it was a firmware issue, but maybe it's something more.
I've never had an issue installing grub on my system.... I usually run:
grub-install ---target=x86_64-efi ---efi-directory=/boot ---bootloader-id=arch_grub ---recheck ---debug /dev/sda
https://wiki.archlinux.org/index.php/GRUB#Installation_2
For EFI you don't have to specify /dev/sda. The EFI directory takes care of it.
What is the output of
efibootmgr?BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0000,0001,0002,0007,0008,0004,0009
Boot0000* GRUB 2
Boot0001* UEFI: IP4 Realtek PCIe FE Family Controller
Boot0002* UEFI: IP6 Realtek PCIe FE Family Controller
Boot0004* arch
Boot0007* UEFI: IP4 Realtek PCIe FE Family Controller
Boot0008* UEFI: IP6 Realtek PCIe FE Family Controller
Boot0009* UEFI: Geek Squad 4096 <-- Arch ISO
Looks pretty good. What is the output of
efibootmgr -v(the-vwill also show the file path to the efi loader of each entry).I think your problem are the double backslashes in quotes. EFI uses backslashes but your terminal will interpret a backslash as an escape sequence. To overcome this you can to one of two things:
If do you both the terminal will not interpret the first backslash as a start of an escape sequence and instead give a string containig double backslaches to the efibootmgr.
That's a reddit formatting thing. He was trying to escape the backslashes and they didn't need escaping.