2

How can I make Grub2 boot into windows or an old kernel once (i.e Windows becomes the default option for once and grub boots into that after the timeout)? The reason being:

  1. My keyboard usually hangs during Grub timeout screen
  2. I would like to make the command (after the configuration, if possible) an alias (e.g bootonce). So whenever I want to boot into Windows or an old kernel I would just run the alias and Grub would boot into that option without me having to choose it manually from the menu.
1

in /etc/default/grub set

GRUB_DEFAULT=saved

then run update-grub.

After that you can use grub-reboot number (with number being the entry number of your Windows in the grub menu list).

More details can be found on the debian wiki

  • @sterz You have to watch out that depending on the grub setup that number might change when a new kernel is installed. I used to have that problem, but now my grub hides "old" kernels in a sub-menu and the position of windows does not change anymore. – Timo Jan 24 '14 at 6:08
  • Same here. My grub also hides 'em. – sterz Jan 24 '14 at 7:03
1

You can use startupmanager for this issue.

Just run:

sudo apt-get install startupmanager

You can easily choose which OS you want to boot with this application, and you can change timeouts with it too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.