Can Grub be configured to remember the last OS you booted into?

Posted by Matthew on Super User See other posts from Super User or by Matthew
Published on 2010-05-05T15:51:09Z Indexed on 2010/05/05 15:59 UTC
Read the original article Hit count: 197

I typically have 2-3 OSes in my boot menu:

  • Ubuntu 10.04
  • Windows 7
  • [Sometimes, a third option, such as Ubuntu 10.04 Netbook]

If I am in an OS other than the default choice (Windows 7 in this case), and I reboot, Grub boots into Ubuntu 10.04. This shouldn't happen--when I reboot in Windows 7, I want to stay in Windows 7. Is there any way to configure Grub to remember my last choice, and boot into that?

Alternatively, it would be even better if Grub only did this when I rebooted (not when I first turn the computer on). I realize this may not be possible, so I'd be happy with simple last-choice-remembering.

© Super User or respective owner

Related posts about grub

Related posts about ubuntu-10.04-lts