Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing grub installs bad grubx64.efi file preventing loading grub menu edit Pop os 20.04 #1007

Open
foxtrotdragon opened this issue May 9, 2020 · 4 comments

Comments

@foxtrotdragon
Copy link

As stated, The grubx64.efi refuses to read grub.cfg in same directory can manually load it, I tried various methods of installing, all failed

You can fix the issue by overwriting the default efi from /boot/grub, this allows to boot fine

cp /boot/grub/x86_64-efi/grub.efi /boot/efi/EFI/pop/grubx64.efi

@foxtrotdragon foxtrotdragon changed the title Installing grub installs bad grubx64.efi file preventing loading grub menu Installing grub installs bad grubx64.efi file preventing loading grub menu edit Pop os 20.04 May 9, 2020
@foxtrotdragon foxtrotdragon reopened this Jul 14, 2020
@SamDM
Copy link

SamDM commented Oct 26, 2020

I believe I had the same problem.

It seems like grub is hard-coded to read the configuration in /EFI/ubuntu/grub.cfg, but by default grub-install will put the configuration in /EFI/pop/grub.cfg. Therefore, the latter is ignored.

So this is what happens on my system:

  1. UEFI boot manager loads up /EFI/pop/grubx64.efi
  2. grub tries to read /EFI/ubuntu/grub.cfg which doesn't exist
  3. grub panics and displays the command prompt.

An overly detailed SO question is here: https://unix.stackexchange.com/q/615109/141189

@SamDM
Copy link

SamDM commented Oct 27, 2020

Digging deeper into the workaround of @foxtrotdragon, a SO user (telcoM) posted this suggestion, it may be helpful:

If copying /boot/grub/x86_64-efi/grub.efi to /boot/efi/EFI/pop/grubx64.efi helps, it might be that the actual GRUB package of Pop!OS is now fixed, but the fix may have not been propagated to the grub-efi-amd64-signed package (which provides another copy of grubx64.efi that's been signed for Secure Boot).

@rsescu
Copy link

rsescu commented Mar 27, 2021

Ran into same issue, SO post helped a lot! For me this was enough:
sudo cp /boot/efi/EFI/pop/grub.cfg /boot/efi/EFI/ubuntu/grub.cfg

@AustinStarnes
Copy link

AustinStarnes commented Apr 15, 2024

I'm here in 2024 and @rsescu's solution has worked for me. I've been struggling with this for ages ever since I decided to repartition my drive (and redo the EFI partition, "oh, it'll be easy to set up", damn that was rough) Thanks to everyone here for giving me a workaround.

Edit: it's worth noting that I have this exact issue on Pop! OS 22.04 LTS, rather than 20.04, as the title specifies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants