I have found excellent solution to dual boot configuration selection of default OS to be last saved OS (great for update restarts). Editing and update of grub file went without any problems, but after reboot, right after unchanged grub menu selection
error: Diskfilter writes are not supported
is reported and OS selected in grub menu (or default OS) is booted (not the last saved).
I have Ubuntu 20.04 LTS as default on /dev/sda1 in Linux LVM (Bootable) partition and Windows 10 on separate disk /dev/sdb1 with NTFS/exFAT/HPFS (Bootable) partition. How to make it work as descibed in original post?
You didn't make it clear as to which GRUB file you edited, and what changes that you made. Revert whatever edits you made.
You never should edit
You do want to edit
/etc/default/grub. Making the following changes...
GRUB_DEFAULT=saved <- edit this existing line GRUB_SAVEDEFAULT=true <- add this line
This will allow GRUB to remember the last OS that you booted, until such time you select a different OS to boot.
sudo update-grub # write changes to disk
reboot # reboot the computer
This won't work on LVM.
Answered by heynnema on November 11, 2021
0 Asked on July 28, 2020 by julio-ortiz
0 Asked on July 22, 2020 by protofik
Get help from others!