#Borked grub, sends to Bios menu

37 messages · Page 1 of 1 (latest)

bright marlin
#

I tried to change the grub fonts and borked it. Now it says "welcome to grub" at the top line, with the old font I think, and then the screen goes black for 2-3 seconds and the Bios menu comes up. Continuing the boot from Bios leads back to grub, which leads back to Bios.

WHAT I DID

I sudo mk-grub-font ... or something like that, without error, added a line in /etc/default/grub at the top saying GRUB_FONT=/boot/grub/fonts/FiraCode-Regular.p2 if I recall, did sudo update-grub and rebooted. I am familiar with the command line. The auto complete suggests that the filenames weren't wrong.

Well the expected result was to only change the font. Not to change the boot thing.

ASSUMPTIONS

One possible reason for this is that, since I didn't understand much when I installed Arch about 6 months ago, maybe I did an one shot configuration to grub. Maybe I added some switch to the update-grub command back then that I didn't add this time.

Also I didn't check if I have grub or grub2. Maybe I should have typed update-grub2 right?

NOW

What I can do now is to boot from EFI file.
I don't want to screw this up so any advice would be helpful. Thanks in advance!

#

Sorry, the order is wrong.
EFI contains the Microsoft directory,
grub_uefi contains grubx64.efi,
grub contains core.efi

tacit oyster
#

You don't have a bootable USB?

bright marlin
#

No I don't right now, why?

tacit oyster
#

There would've been a cheap fix but that's fine can you get in the grub emergency command line its called something like that

bright marlin
#

Well, after grub displays the first line, it stops displaying lines and makes the screen black for 2 seconds

#

And then I'm on the Bios menu

#

So I don't know how to get there

tacit oyster
#

grubx64.efi worth a shot

bright marlin
#

You think so?

tacit oyster
#

it could work could not

bright marlin
#

Can I revert easily?

tacit oyster
#

Dont know if it's possible to get to the command line then there is probably a way to fix grub

bright marlin
#

Nothing. Same result.

#

Same result with core.efi in fact

#

I think it crashes when it has to render some specific characters.

tacit oyster
#

Yes most likely

bright marlin
tacit oyster
#

honestly i dont know

#

i wouldve said SSH but you cant do that

#

but a bootable usb with a reinstall would fix it ngl

bright marlin
#

Oh my God I can't do pretty much anything

#

I'm trying some options like "reboot into Windows" because I also have a Windows partition and Bios gives me the option

#

Again Grub tries to load and fails and I'm on the Bios menu

tacit oyster
#

would work but you cant boot into it because you have no bootlaoder

bright marlin
#

So the problem would be called "I broke my bootloader"?

#

Could I have prevented that by having 2 bootloaders?

tacit oyster
#

probably

#

would be a bit bloated though

bright marlin
#

I really hope I can bypass the bootloader using a bootable flash drive

tacit oyster
#

wdym bypass

bright marlin
#

Alright! I've got the Arch iso running

#

Can I possibly revert the changes from within the live environment?

bright marlin
#
> ls /mnt/p1
EFI grub [...]

> grub-install --boot-directory=/mnt/p1 /dev/nvme0n1

Does looking at this freak you out?

bright marlin
#

It probably should. But this?