Skip to content

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?

16 points15 comments
Open on Reddit
About this post
Posted
Archived
Score
16 · 100% up
Kind
Text
ID
7c6use

Author

4
posts
9
comments
1
media
View profile

15 comments

tbh I used grub on my first arch install, and it was a massive pain in the ass.

Try using systemd-boot

5 points

Yeah grub on EFI is pretty terrible. I personally directly boot the kernel as a EFI file (known as EFISTUB), or use sbupdate-git on the AUR which packs the kernel, command line and initramfs into a single EFI-compatible file, and signs it for Secure Boot.

2 points

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

2 points

This also happened to me a few days ago. I thought it was a firmware issue, but maybe it's something more.

5 points

What is the output of efibootmgr?

2 points

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

1 points

Looks pretty good. What is the output of efibootmgr -v (the -v will also show the file path to the efi loader of each entry).

2 points

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:

  1. put quotes around your string or
  2. use double backslashes wich is the escape sequence for a backslash.

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.

2 points

That's a reddit formatting thing. He was trying to escape the backslashes and they didn't need escaping.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.