How to hide grub2 menu?

7,625

You should use the following steps to hide GRUB (it is still installed)

  1. Run this command in terminal

    sudo -H gedit /etc/default/grub
    
  2. Set these lines (create them if they don't exist), doesn't have to be this order

    GRUB_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_DEFAULT=0
    
  3. Save then close the file

  4. Run this command in terminal

    sudo update-grub
    
Share:
7,625
user193537
Author by

user193537

Updated on September 18, 2022

Comments

  • user193537
    user193537 almost 2 years

    I need some help, I screwed up while trying to auto-mount on boot my USB external HDD, something went wrong and it doesn't boot to Ubuntu.

    I installed this https://help.ubuntu.com/community/Boot-Repair and I ran it to repair the boot, and now I have a boot menu.

    The menu shows down booting and I don't need it so how do I remove it?

    • kiri
      kiri almost 11 years
      I think you do need GRUB, it is the program that boots your computer. You could install an alternate bootloader if you needed to, though
    • user193537
      user193537 almost 11 years
      tks @minerz029 thing is, i did a fresh install on an empty hdd, and on first boot and the next ones util i screw up grub was never showed. maybe i can disable it ?
    • kiri
      kiri almost 11 years
      GRUB never showed because usually, you press Shift when booting to show GRUB, otherwise it is hidden. Boot repair shows GRUB for you
    • user193537
      user193537 almost 11 years
      by "you press shift" you mean that i have deslocated my hand and finger near shift button and pressing it ? It didn't never happen, not on boot.
    • lmat - Reinstate Monica
      lmat - Reinstate Monica about 9 years
      I think the most helpful resource on this would be the configuration documentation which is not the first thing you'll find when using a search engine: gnu.org/software/grub/manual/html_node/…
  • zorkerz
    zorkerz over 7 years
    Unfortunately this did not work for me. I got the grub menu for 10 seconds.