I have dual boot, and used the most popular answer in this thread to create a script and desktop icon to reboot into Windows: How to reboot into Windows from Ubuntu?
And, it works - UNTIL and only until there's a security update for Ubuntu.
The process of making the grub's default boot option 'SAVED' seems to get reset very frequently (weekly or more often than that) by security updates.
The steps that work -
edit the file /etc/default/grub
so that
GRUB_DEFAULT=saved
persists, but I guess the step
sudo update-grub
updates the file /boot/grub/grub.cfg
which is replaced by security updates, so then the sudo update-grub required again.
Is there no way to have this persist through security updates?
Actually, just running sudo update-grub
is not enough - I must make a change to the /etc/default/grub
file for the update-grub
to work. So, for example, sudo gedit /etc/default/grub
, and just add a space, so the file changes and can be re-saved. then sudo update-grub