GRUB: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== GRUB == == Dual Boot - Remember Last Choice == dual boot - How to get grub2 to remember last choice? - Ask Ubuntu - http://askubuntu.com/questions/148662/how-to-get-grub2-to-remember-last-choice Ubuntu: /etc/default/grub # GRUB_DEFAULT=0 GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true # GRUB_TIMEOUT=0 GRUB_TIMEOUT=60 note the GRUB_SAVEDEFAULT line needs to be added then run: sudo update-grub To force a default for next boot use: <ref>https://askubuntu.com/quest...") |
|||
| Line 32: | Line 32: | ||
NOTE: tab auto complete also works with grub-set-default!! | NOTE: tab auto complete also works with grub-set-default!! | ||
See [[grub-menu.sh]] | |||
== GRUB Legacy == | == GRUB Legacy == | ||
Revision as of 17:41, 1 July 2026
GRUB
Dual Boot - Remember Last Choice
dual boot - How to get grub2 to remember last choice? - Ask Ubuntu - http://askubuntu.com/questions/148662/how-to-get-grub2-to-remember-last-choice
Ubuntu:
/etc/default/grub
# GRUB_DEFAULT=0 GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true
# GRUB_TIMEOUT=0 GRUB_TIMEOUT=60
note the GRUB_SAVEDEFAULT line needs to be added
then run:
sudo update-grub
To force a default for next boot use: [1]
# list menu options
awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
# specify default boot option grub-set-default "some-boot-menu-option"
grub-set-default Ubuntu
grub-set-default 0
NOTE: tab auto complete also works with grub-set-default!!
See grub-menu.sh
GRUB Legacy
See GRUB Legacy