Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 31922  / 3 Years ago, wed, june 23, 2021, 5:20:02

I have two operating systems: Windows 8.1 and Ubuntu 14.04. I want to hide grub menu. I'm using grub 2.02~beta2-9. I tried following combinations of /etc/default/grub:




  1. #GRUB_HIDDEN_TIMEOUT=1  
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=0


    grub menu is visible for 10 seconds (if timeout is set for value larger than 0 it is displayed correctly: GRUB_TIMEOUT=5 - 5 seconds delay)


  2. GRUB_HIDDEN_TIMEOUT=1  
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=0


    grub menu is visible, I also tried GRUB_HIDDEN_TIMEOUT=false and setting both GRUB_TIMEOUT and GRUB_HIDDEN_TIMEOUT to zero and non-zero values


  3. #GRUB_HIDDEN_TIMEOUT=1  
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=1
    GRUB_TIMEOUT_STYLE=hidden


    grub menu is visible for 1 second, tried also GRUB_TIMEOUT_STYLE=countdown with the same result, if GRUB_TIMEOUT is set to 0, 10 seconds delay




After each change I type update-grub and restart computer to see the results.



According to GRUB documentation found in info -f grub -n 'Simple configuration' second way is deprecated. The right way is the third one - by using GRUB_TIMEOUT_STYLE, but unfortunately it doesn't work. It's probably some kind of a bug.


More From » dual-boot

 Answers
2

Normally if you had only one OS running the option GRUB_TIMEOUT=0 would work.
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.



Check this answer if it helps you.


[#25123] Friday, June 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
steaocyte questions
;