Developer's notes

Go to Blog

I have a dual boot setup on my PC: Ubuntu and Windows 10. Sometimes it’s required to reload Windows for processing system updates. By default, Grub loads the first system from the list, which is Ubuntu. It’s inconvenient. I think it’s better to make Grub remember the last loaded OS and start it after reboot.

To achieve this behaviour you need to perform such steps:

  1. Add to /etc/default/grub following strings:

     GRUB_DEFAULT=saved
     GRUB_SAVEDEFAULT=true
    
  2. Execute sudo update-grub.