Change boot select timeout

On a dual boot I want to change the timeout selecting the OS
I’m reading this : Making sure you're not a bot! and I’m scared. I dont’t want to install anything very thing is installed and working I just want to change the timeout. After editing /etc/default/grub I want to activate these changes

AI suggested sudo grub2-mkconfig -o /boot/grub2/grub.cfg but this results in:

~$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Running grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg' will overwrite the GRUB wrapper. Please run grub2-mkconfig -o /boot/grub2/grub.cfg’ instead to update grub.cfg.
GRUB configuration file was not updated.

should I indeed run grub2-mkconfig -o /boot/grub2/grub.cfg without breaking anything?

The command you ran doesn’t seem to be the same one that AI suggested?

But yes, grub2-mkconfig -o /boot/grub2/grub.cfg is the correct one.

2 Likes

thanks.

It says :

Generating grub configuration file ...
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

I guess that is a good sign.

3 Likes

This has been the correct command since about f32. You can also verify that by looking at the 2 links in /etc (/etc/grub2.cfg & /etc/grub2-efi.cfg) which both point to the file /boot/grub2/grub.cfg.

$ ls -l /etc/grub2*
lrwxrwxrwx. 1 root root 22 Aug  5  2025 /etc/grub2.cfg -> ../boot/grub2/grub.cfg
lrwxrwxrwx. 1 root root 22 Aug  5  2025 /etc/grub2-efi.cfg -> ../boot/grub2/grub.cfg
1 Like