I’d like to change the default boot option from Fedora to Windows. I’ve tried to read the docs but I’m a bit confused.
If I show my
sudo ls /boot/loader/entries I see
giuliohome@localhost ~]$ sudo ls /boot/loader/entries 1cb178663c5e44d1a4ff2c09f5819ae7-0-rescue.conf 1cb178663c5e44d1a4ff2c09f5819ae7-5.3.7-301.fc31.x86_64.conf
And the second conf (without rescue in its name) contains the title for Fedora 31
title Fedora (0-rescue-1cb178663c5e44d1a4ff2c09f5819ae7) 31 (Thirty One)
and other things
Then I see the Windows options by issuing another command:
[giuliohome@localhost ~]$ sudo grep -P "submenu|^menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2 Windows Recovery Environment (on /dev/sda1) Windows 7 (on /dev/sda2)
I’m confused because there is no way to see together Fedora and Windows entries and I’d like to do a modification but I’m afraid to do it wrong causing some damage
Btw, I also wonder why
grubby is not recognized as a command
giuliohome@localhost ~]$ sudo grubby --default-kernel sudo: grubby: command not found
Anyway, according to this doc paragraph, I think that I should do
grub2-set-default "Windows 7 (on /dev/sda2)"
Am I understanding it well? Is the above command correctly spelt (I’m not sure how to correctly render the
"<submenu title><menu entry title>" part, so I simply copied from the output of the previous suggested command to list all possible menu entries) for my situation? Is it the safest way to change the boot default? After it, there is no need of a
grub2-mkconfig -o /boot/grub2/grub.cfg, is there? Anything else I’m supposed to do/check?
Thank you for your kind support.