Advertisement
wagnux

CORRIGINDO_TIMEOUT

Dec 24th, 2022 (edited)
1,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.63 KB | Fixit | 0 0
  1. ## CORRIGINDO TIMEOUT NO GRUB ##
  2.  
  3. # If you change this file, run 'update-grub' afterwards to update
  4. # /boot/grub/grub.cfg.
  5. # For full documentation of the options in this file, see:
  6. #   info -f grub -n 'Simple configuration'
  7.  
  8. GRUB_DEFAULT="0"
  9. #GRUB_TIMEOUT_STYLE="hidden"
  10. GRUB_TIMEOUT="5"
  11. GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
  12. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  13. GRUB_CMDLINE_LINUX=""
  14. GRUB_DISABLE_OS_PROBER="false"
  15.  
  16. # Uncomment to enable BadRAM filtering, modify to suit your needs
  17. # This works with Linux (no patch required) and with any kernel that obtains
  18. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  19. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
  20.  
  21. # Uncomment to disable graphical terminal (grub-pc only)
  22. #GRUB_TERMINAL="console"
  23.  
  24. # The resolution used on graphical terminal
  25. # note that you can use only modes which your graphic card supports via VBE
  26. # you can see them in real GRUB with the command `vbeinfo'
  27. GRUB_GFXMODE="1920x1080"
  28.  
  29. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  30. #GRUB_DISABLE_LINUX_UUID="true"
  31.  
  32. # Uncomment to disable generation of recovery mode menu entries
  33. #GRUB_DISABLE_RECOVERY="true"
  34.  
  35. # Uncomment to get a beep at grub start
  36. GRUB_INIT_TUNE="480 440 1"
  37.  
  38. # Descomente para falha em GRUB_TIMEOUT
  39. GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
  40.  
  41. ## Assim que instalei o Ubuntu 22.04 LTS em meu desktop, não conseguia ajustar o timeout do GRUB de 30 segundos para 5
  42. ## segundos e isso era um incômodo pra mim. Adicionando no final em /etc/default/grub  a linha
  43. ## GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT consegui enfim corrigir o timeout de 30 para 5 segundos como deixava por default no ## GRUB.
  44.  
  45. ## Só proceder desse modo no terminal.
  46. ## 1. Abra o terminal apertando CTRL + ALT + T
  47.  
  48. ## 2. Abra o /etc/default/grub para edição usando o nano:
  49. sudo nano /etc/default/grub
  50.  
  51. ## 3. Comente com # na frente da linha abaixo:
  52. #GRUB_TIMEOUT_STYLE=hidden
  53. GRUB_TIMEOUT=5
  54.  
  55. ## 4. Adicione a linha abaixo ao final do arquivo:
  56. GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
  57.  
  58. ## 5. Aperte CTRL + O pra salvar e CTRL + X pra sair
  59.  
  60. ## 6. Atualize o GRUB com o comando abaixo:
  61. sudo update-grub
  62.  
  63. ## 7. Reinicie:
  64. reboot
  65.  
  66. ## O timeout para o tempo desejado será ajustado para o que você determinar. Ressaltando que ajustando para 0 o menu do GRUB
  67. ## nem aparecerá, carregando diretamente o Ubuntu. O timeout em 0 é o default quando se instala apenas o Ubuntu na máquina e
  68. ## 30 segundos para dual boot.
  69.  
  70. #LinuxDicas #GRUB #GRUB_TIMEOUT
  71.  
  72. ## Link de referência - https://www.shellhacks.com/grub_timeout-change-not-working/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement