[SOLVED] Is it possible to configure GRUB2 booting time?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi folks!
I've been facing this problem since the release of Ubuntu 9.10 (I guess), as GRUB was changed into GRUB2.
In earlier Ubuntu releases it was possible to configure the booting menu loaded from /boot/grub in the "menus.lst" file. In this file it was possible to change the booting menu time, even to "0" (zero), what would make the menu to stay on display.
Now, in GRUB2 there's no "menus.lst" file anymore. There's a file "boot.cfg", which I think would be the "menus.lst" similar in the newer Ubuntu versions. I've made a copy of this file, so that I could try changing it in order to change booting time. I succeeded in increasing the boot menu time, but could not change it so that there would be no time in the menu. Is there anything that can be done to set this time to "0" (zero), so that it won't boot directly to the first OS in the list?
With attention
darthpinguim "May the Linux Force be with you!"
You should not modify the grub.cfg-file. This file is auto-generated, and all your changes will be lost the next time an update issues the update-grub command.
If you want to modify Grub's behavior you should modify /etc/default/grub instead. There is an option named GRUB_TIMEOUT. If you set this to zero the time-out should be disabled.
Remember to do
Code:
sudo update-grub
every time you have modified that file, so that Grub can generate a new grub.cfg.
Hey there! Thanks for the replies.
I have already done that, and that's something I've mentioned above.
I can increase the boot menu time, by increasing the number in "GRUB_TIMEOUT=x". I've done that, and it worked fine.
But my question was about the possiblity of setting off the boot menu time, so that if I turn my computer on and leave for a while (before selecting the OS), when I get back the boot menu will still be on my screen.
If I set the time to zero (GRUB_TIMEOUT=0) then the computer boots directly to the first operating system in the list. Therefore, the menu won't be displayed.
I just had a look at the Grub 2 manual, especially the part about the config-file. The right value for GRUB_TIMEOUT is -1 to disable the time-out.
I hope this will help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.