i have a fresh installed Ubuntu (Server) 18.04.
I added a custom menu entry /etc/grub.d/40_custom:

menuentry "Backup" {
set root=(hd0,3)
linux /vmlinuz root=/dev/sda3 ro quiet splash
initrd /initrd.img

Until now anything works fine, the custom menu entry is visible and i can boot from it.
Now i tried to set the default via grub-set-default 3 an/or set the default temporary grub-reboot 3.
Sometimes it works fine, but sometimes not.

As example currently the file /boot/grub/default contains 0 and the file /boot/grub/grubenv contains saved_entry=0.

My grub config(/etc/default/grub) looks like this

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"

I also did the update-grub command.

Any ideas or suggestions how i can fix it ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.