You are not logged in.

#1 2022-10-03 17:31:37

neocat
Member
Registered: 2022-09-16
Posts: 25

[SOLVED] Boot to BIOS after changing grub by grub-customizer

I've installed linux-zen package and wanted to change the boot order through grub-customizer. I dragged linux-zen from Advanced boot options to the top and rebooted the machine. After that it stopped opening the grub menu but boots into BIOS.

Also I found a new boot option inside boot order menu called "boot (P1: Samsung SSD ...)" which wasn't there before changes in grub-customizer.

My system uses efi boot if that matters.

How can I restore grub menu?

Thanks

Last edited by neocat (2022-10-04 17:21:36)

Offline

#2 2022-10-04 02:14:02

jonno2002
Member
Registered: 2016-11-21
Posts: 870

Re: [SOLVED] Boot to BIOS after changing grub by grub-customizer

first regenerate the config:

grub-mkconfig -o /boot/grub/grub.cfg

then if you want to change the order open the generated file and manually move the blocks around to your liking:

### BEGIN /etc/grub.d/10_linux ###
[BLOCK]
menuentry 'Arch Linux' --class arch ..... {
.....
.../initramfs-linux.img
}
[/BLOCK]
submenu 'Advanced options for Arch Linux' ..... {
[BLOCK]
	menuentry 'Arch Linux, with Linux linux' --class arch ...  {
	.......
	..../initramfs-linux.img
	}
[/BLOCK]
[BLOCK]
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch ...... {
	.........
	..../initramfs-linux-fallback.img
	}
[/BLOCK]
}

### END /etc/grub.d/10_linux ###

i hope that makes sense, ive simplified the blocks using "....." and added block quotes around the blocks, dont actually put [BLOCK] and [/BLOCK] in your config

Offline

#3 2022-10-04 17:13:02

neocat
Member
Registered: 2022-09-16
Posts: 25

Re: [SOLVED] Boot to BIOS after changing grub by grub-customizer

I've fixed it. Grub-customizer removed the original grubx64.efi file and created a new one that don't work.

Running grub-install with no arguments solves the problem by recreating /boot/efi/EFI/arch/grubx64.efi

Offline

Board footer

Powered by FluxBB