Is this all right. I have said that and should i make sudo grub-mkconfig -o /etc/grub2.cfg will it remove that 5sec of grub screen.
Edit- I don’t know much about the grub but editing that part make me curious.
what are the difference between sudo grub2-mkconfig -o /etc/grub2.cfg sudo grub2-mkconfig -o /boot/grub2/grub.cfg
I want to know about the file difference why there are two files and if i need to updating with the first one is enough.
I think you’re trying to edit the wrong file. The file to edit is /etc/default/grub and not /etc/grub2.cfg.
sudo nano /etc/default/grub and modify GRUB_TIMEOUT=5 to GRUB_TIMEOUT=0. You could also set GRUB_TIMEOUT_STYLE=hidden if you don’t want any menu at boot.
After that, grub2-mkconfig -o /boot/grub2/grub.cfg and systemctl reboot.
Out of curiosity, if you change GRUB_DEFAULT=saved to GRUB_DEFAULT=0 and update grub2-mkconfig -o /boot/grub2/grub.cfg do you get the same error when rebooting?