Results 1 to 8 of 8

Thread: Hide GRUB2 Menu?

  1. #1
    Join Date
    Aug 2006
    Beans
    241
    Distro
    Kubuntu 9.10 Karmic Koala

    Hide GRUB2 Menu?

    In GRUB legacy, there was an option to 'hide' the menu (require to press ESC to access menu at boot).

    Is there an option for this with GRUB2?

  2. #2
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Hide GRUB2 Menu?

    Quote Originally Posted by zzzBrett View Post
    In GRUB legacy, there was an option to 'hide' the menu (require to press ESC to access menu at boot).

    Is there an option for this with GRUB2?
    /etc/default/grub
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  3. #3
    Join Date
    Nov 2007
    Beans
    23

    Re: Hide GRUB2 Menu?

    Well, I figured out that that was a config file, but your response was very terse.

    There seem to only be timeouts for the hidden menu. Do you know how this works? I guess I'll run a clean install on another machine with Grub2 and see how it all gets set up with default settings.

    I install grub to partition, not to MBR, by the way. I use EasyBCD and the Windows 7 bootloader to chainload everything, since Windows is still my production OS, and I can't have that fail.

  4. #4
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,055
    Distro
    Ubuntu Development Release

  5. #5
    Join Date
    Jan 2009
    Location
    Stockholm, Sweden
    Beans
    593
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Hide GRUB2 Menu?

    This citation is from the first link:

    Note to multiple-OS users: If GRUB 2's os-prober identifies additional operating systems while running the /etc/grub.d/30_os-prober script the hidden menu timeout feature is disabled by conditional statements. This also disables the ability to use the SHIFT key to display the menu during boot. Users with multiple operating systems wishing to hide the menu can find script edits on various forums which will allow them to add a hidden timeout feature to the boot sequence.
    took me a while to find it. Wish there was an easy way to hide the menu even if having several os's. But then again, I guess one could just turn off the os-prober in the first place, in case one is not interested in booting the other os's.
    Since when is floor not a synonym of horizontal wardrobe?

  6. #6
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Hide GRUB2 Menu?

    Since it takes a while to find it and you already found it, can you provide us with such a script edit example to hide the GRUB menu even with multiple OSses present?
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  7. #7
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Hide GRUB2 Menu?

    Quote Originally Posted by Redsandro View Post
    Since it takes a while to find it and you already found it, can you provide us with such a script edit example to hide the GRUB menu even with multiple OSses present?
    Users with multiple operating systems wishing to hide the menu can find script edits on various forums which will allow them to add a hidden timeout feature to the boot sequence.
    You might have to go looking if you really want this. I have never seen one on this forum, doesn't mean there aren't any but it is a unusual request
    while dual or multi-booting.

    This is also a really old thread you might start one and get help you never know.





  8. #8
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Hide GRUB2 Menu?

    Meanwhile, found this:

    According to Grub2 @ help.ubuntu.com the solution is in Grub 2 Tweaks @ ubuntuforums.

    Someone mentioned how it it done in 10.10:

    Ubuntu 10.10 Grub 2 hide multi-OS menu guide: (untested)

    Quote Originally Posted by drs305 View Post
    [...]

    If the "GRUB_TIMEOUT=0" does not work, [...] open /etc/grub.d/00_header and go to approximately line 238:
    Code:
    gksu gedit +238 /etc/grub.d/00_header
    Find this section and make the changes in dark red, then save the file and run "sudo update-grub".

    make_timeout ()
    {
    cat << EOF
    if [ "\${recordfail}" = 1 ]; then
    set timeout=-1
    else

    # Manually change timeout to 0
    # set timeout=${2}
    set timeout=0
    # End manual change

    fi
    EOF
    }
    This should eliminate the menu display [...]. It also preserves the ability to display the menu by holding down the SHIFT key during boot.
    [...]
    -update-

    Found out how to do it in 10.04.

    Ubuntu 10.04 LTS Grub 2 hide multi-OS menu guide:

    run gksudo gedit /etc/grub.d/00_header

    near-bottom (line 154), find:
    Code:
      set timeout=${GRUB_TIMEOUT}
    replace with:
    Code:
    #  set timeout=${GRUB_TIMEOUT}
    #RED 2011-03-15 force hidden menu
      set timeout=0
    run sudo update-grub



    Um, I don't get the Grub2 thing. This is clearly not the sweet old grub from the old days, but it sais 1.96, which is not 2 either. Anyway, this is about the standard Grub that comes with Ubuntu.
    Last edited by Redsandro; March 15th, 2011 at 05:33 AM.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

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
  •