2

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

  • See http://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader for the answer to how to make GRUB default to boot Windows, – user68186 Apr 20 '15 at 14:16

1 Answers1

5

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