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
- 269
1 Answers
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, typegksudo gedit /etc/default/grubpress Enter and enter your password.Set the options like following:
GRUB_HIDDEN_TIMEOUT=6 GRUB_HIDDEN_TIMEOUT_QUIET=trueSave 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
- 858