Results 1 to 3 of 3

Thread: How to make grub only show up after pressing shift?

  1. #1
    Join Date
    Jun 2011
    Location
    Netherlands
    Beans
    181
    Distro
    Ubuntu 12.04 Precise Pangolin

    How to make grub only show up after pressing shift?

    I once got it working, but an update has overwritten my /etc/default/grub.
    I want the grub menu to show up only after I pressed the shift key.
    What configuration do I need to put in /etc/default/grub?

    Thanks for any help!
    Vim - Comfortable text editing and coding
    vim-autoformat - a code-formatting plugin for vim supporting various languages - https://github.com/Chiel92/vim-autoformat
    Vimperator - Fast browsing using keyboard only

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to make grub only show up after pressing shift?

    I'll assume you have a multi-boot system.

    There are some long-standing bugs concerning the GRUB_HIDDEN_TIMEOUT and GRUB_HIDDEN_TIMEOUT_QUIET settings. Additionally, the keystatus check (SHIFT) isn't incorporated on multi-OS systems for some reason. But don't fear, GRUB 2 will let us modify things to get it back for you.

    Open /etc/default/grub and /etc/grub.d/30_os-prober:
    Code:
    gksu gedit +29 /etc/grub.d/30_os-prober /etc/default/grub &
    In 30_os-prober find the following line (Gedit should open on this line) and make the following changes. It allows the addition of the keystatus check on multi-OS systems.
    Change:
    make_timeout () {
    if [ "x${found_other_os}" = "x" ] ; then
    To:
    make_timeout () {
    # if [ "x${found_other_os}" = "x" ] ; then
    if [ true ]; then
    In /etc/default/grub, your first settings should look like the following (with GRUB_DEFAULT set to your wishes):
    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=false
    GRUB_TIMEOUT=10
    Save both files and run sudo update-grub.

    Note: Unless they have fixed this, with this change the GRUB_TIMEOUT setting is actually not important, as the system will boot without displaying the menu unless the SHIFT key is held down.
    Last edited by drs305; May 27th, 2012 at 01:27 AM.
    GRUB2

    Retired.

  3. #3
    Join Date
    Jun 2011
    Location
    Netherlands
    Beans
    181
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to make grub only show up after pressing shift?

    Thanks, that worked!
    Vim - Comfortable text editing and coding
    vim-autoformat - a code-formatting plugin for vim supporting various languages - https://github.com/Chiel92/vim-autoformat
    Vimperator - Fast browsing using keyboard only

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •