Grub time out =0

I don’t need a grub to display for 5 sec so i have edited the file and mkconfig it but i want to be more sure


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.

1 Like

Hi,
/etc/grub2.cfg is just a softlink to /boot/grub2/grub.cfg

Just edit /etc/default/grub and edit the line

GRUB_TIMEOUT=5

to

GRUB_TIMEOUT=0

Afterwards, do a grub2-mkconfig -o /boot/grub2/grub.cfgand reboot …

Regards,
A.

2 Likes

I coud not find this is this what i the screenshot says have you lookinto it

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.

1 Like

Done that though i can boot but i can see some error while booting into.


What kind of issue it is.?
Did i mess up the grub so do i need to install grub again freshly?

Here’s a solution:

I don’t know if I’m allowed to post a link to another distro forum. I hope I can.

1 Like

Are you using btrfs for /boot?

https://discussion.fedoraproject.org/t/error-grub-core-commands-loadenv-csparse-file-not-allowed/15566/2?u=grumpey

He’s indeed. I agree that having /boot on ext4 is a good idea and Fedora default.

Right i am on btrfs

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?

Yes was still there here is some output

$ cat /etc/default/grub
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=0
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                         
├─sda1
│    crypto 2           f7744b08-5ccc-489b-83d0-5407b2bd0df8                
├─sda3
│    btrfs        fedora_localhost-live
│                       55f27120-3127-4073-9a18-4166fd6765a0  301.5G     4% /
└─sda4
     ntfs         ntfs files
                        26D63C56D63C2907                                    
sr0                                                                         
zram0
                                                                            [SWAP]

Even reinstall does remove that error