Ubuntu: Make grub not show at all during boot



Question:

I have a PC with Windows 7 and Ubuntu.
Is there a way to make grub not show at all and boot directly into the default os, and when I want I can press a key or something and choose to boot into something else.
This is my grub file.
I have tried many options like hidden timeout , timeout style ,etc but nothing works


Solution:1

First of all, please check this question to see how Windows can be set as the default for booting: How do I set Windows to boot as the default in the boot loader?

To hide grub unless a button is pressed, you need to configure grub to do so:

  • Press Alt+F2, type gksudo gedit /etc/default/grub press Enter and enter your password.

  • Set the options like following:

    GRUB_HIDDEN_TIMEOUT=6  GRUB_HIDDEN_TIMEOUT_QUIET=true  
  • Save the file by pressing CTRL+s.

  • Then to activate the changes you made, run this command and enter your user password when prompted:

    $ sudo update-grub2  

Now if you reboot, grub menu should't display unless you don't press a button in 6 seconds (which is set by GRUB_HIDDEN_TIMEOUT configuration).

Another option is this:

Set both GRUB_TIMEOUT and GRUB_HIDDEN_TIMEOUT as 0 and grub menu won't be displayed unless you press shift button while booting.

For more information about grub configuration, you can check this page: https://help.ubuntu.com/community/Grub2#Configuring_GRUB_2


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »