GRUB

From Omnia
Revision as of 17:41, 1 July 2026 by Kenneth (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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!!

GRUB Legacy

See GRUB Legacy

keywords