Kubuntu GRUB no listen

So till recently I ran Mint and decided to try out Kubuntu. After jumping throe some hoops with nvidia drivers and openvpn configuration import I finaly got it to work … well … kind of…

I run 2 nnvmes - one with Linux and the other with Windows and back in Mint I had this script that would restart the pc to a Windows grub option

sudo grub-reboot 1
sudo reboot now

Option 0 is Linux, 1 is Windows. Worked like a charm. But for some reason I cannot get it to work properly - so the script it self works but GRUB keeps this option then memorized for all boots even despite the option 0 being set as default.

I am lost.

here is my grub

GRUB_DEFAULT=“saved”
GRUB_TIMEOUT_STYLE=“hidden”
GRUB_TIMEOUT=“2”
GRUB_RECORDFAIL_TIMEOUT="$GRUB_TIMEOUT"
GRUB_DISTRIBUTOR="lsb_release -i -s 2> /dev/null || echo Debian"
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash”
GRUB_CMDLINE_LINUX=""

GRUB_SAVEDEFAULT=“true”

grub default used to be 0 but now I used a command to set it to 0 - result of some searching online for solutions. Does not work. Also the grub_recordfail_timeout line had to be set like this otherwise it would have a 30s timeout

grub customizer in kubuntu does not affect these, just the order of options

Have you tried running upgrade-grub2 after updating the grub settings? Otherwise it doesn’t update the grub config in /boot.

I did

Did you install the uEFI aware version of Grub? Are you running a GPT/uEFI boot partition?

What happens if you try to boo to the Kubuntu Drive from your BIOS boot menu and then reboot? Does it still boot into MS Windows after the reboot?

It was the installation. I installed with LVM (non encrypted) and that seems to brake stuff. I reinstalled with the option of using the entire disk and it works great.

Interesting.

I’m intending to do exactly this (new build, not yet built). Where’s your boot partition? I figure I want a 3 NVMe config - small boot drive, 2 x 2TB system drives for the different OSs. When I’ve tried this in a VM it wouldn’t work - I had to make the Linux drive bootable. Yet to try it on the metal. Thx.

You will need one boot partition on one of those NVMEs if your are not going to run any secondary drive.

I had Windows running first, then I added the second NVME and installed Linux on it. At that point GRUB took over.

1 Like

Don’t these two parameters make grub boot whatever you booted last? This might prevent the script from switching.

Also, the grub defaults are now enumerated differently… more like this and based on the menu names… I’m not sure if this is the issue for you, but I ran into this recently and thought it might be related.

GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 5.10.0-13-amd64"

Lastly, since you have several drives that might be bootable, is it possible that you have several installations of grub, each with their own sets of options? You could edit the menu names in /boot/grub/grub.cfg so that you can tell if you are booting the correct grub.