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.

2 Answers 2


in /etc/default/grub set


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
    Commented Jan 24, 2014 at 6:08
  • Same here. My grub also hides 'em.
    – sterz
    Commented Jan 24, 2014 at 7:03

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .