Updating Ubuntu grub

Link to this post 15 May 12

@begueradj Go into /etc/default/grub and change GRUB_TIMEOUT=10 to say GRUB_TIMEOUT=3, or whatever timeout you like and then run update-grub. You will then have permanently changed the Grub Timeout.

In theat same /etc/default/grub file, GRUB_DEFAULT=0 determines which is the default OS to boot. 0 being the first line, 1 being the second line etc.. If you change that, then run grub-update, it will change that option. That is, until you add another OS or update the kernel and get a new entry on top of the grub list. Manually changing options requires you to keep an eye on how those changed options effect grub when new items are added.

Changing the colors is a bit more complicated, so, I will have to look for the link to the how-to. I'll get back to you on that. Meanwhile, here's a link that might be helpful for you. It adds a bit more to the grub2 explanation:

Link to this post 16 May 12

Thank you very much for the answers, both of you.
I think I have to take time to read deeply about the grub.

Link to this post 19 Jul 12

this may help you

Please visit the Grub2/Upgrading community documentation for more information and instructions

Link to this post 17 Sep 12

Hello I am new to this and I have a problem, I have a PC with dual boot with Windows and Ubuntu 12.04, and Windows OS gave poblem and had to reinstall may be using a Ubuntu 10.04 CD or update the grup has to be with a disc on Ubuntu 12.04

Link to this post 28 Jan 13

begueradj said:

but my question is: why when I upgrade the grub then those changes disappear and everything go back to the default settings that file ?

Because update-grub command create configuration file with settings defined in appropriate files. Any configuration changes you should make in mentioned files like /etc/default/grub, beacause any kernel update will run update-grub command and overwrite changes you made in grub.cfg.

Link to this post 28 Jan 13

If you make your changes ONLY to /etc/default/grub, or, to the folders in /etc/grub.d/ and then execute update-grub. It should add those changes to grub.cfg. Any changes made to /etc/default/grub are overwritten by update-grub.

There are 2 good Ubuntu postings on Grub2:


and here:

Or if your question is not answered, let me know. I'm hoping I understood what you were asking. And don't apologize, I often have to use a translator and have been disappointed at the results.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>