john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Grub 2 boot menu timeout hidden

grub 2.0 has /boot/grub/grub.cfg (which is created/modified by "sudo update-grub") (the old grub had /boot/grub/menu.lst )

HOLD THE SHIFT KEY DOWN DURING BOOT TO ENSURE YOU SEE THE GRUB MENU

Configuration should occur with: /etc/default/grub and /etc/grub.d/ (remember after modifying above to run sudo grub-update )

nano /etc/default/grub

this file has a few more grub settings, most importantly, the timeout

GRUB_CMDLINE_LINUX_DEFAULT="quiet" (delete the quiet to see full boot messages)

OR, if you want to hide everything uncomment the 2 HIDDEN LINES and set the TIMEOUTS to 0

afterwards, run update-grub

grub-install --recheck /dev/sda


in /etc/grub.d if a file is not executable (chmod -x ) then it won't be listed in the menu options

To remove an old kernel entry simply use synpatic/aptitude etc. to remove it, grub will auto clean itself

GRUB_HIDDEN_TIMEOUT_QUIET=true true - No countdown is displayed. The screen will be blank. false - A counter will display on a blank screen for the duration of the GRUB_HIDDEN_TIMEOUT value.

If the user presses the SHIFT key to display the menu, the menu will be displayed for the number of seconds designated by the GRUB_TIMEOUT value unless the user again intervenes.

The menu will be hidden unless the user adds a # symbol to the beginning of this line ( # GRUB_HIDDEN_TIMEOUT=0 ) and the GRUB_TIMEOUT value is greater than 0.


  • « Rsyslog monitor file tcp remote server
  • shutdown halt poweroff »

Published

Dec 12, 2012

Category

linux

~212 words

Tags

  • 2 6
  • boot 11
  • grub 6
  • hidden 3
  • linux 249
  • menu 9
  • timeout 2