InsideDarkWeb.com

grub2: Booting operating system booted last time, the "saved method", throws "error: Diskfilter writes are not supported". How to resolve?

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?

Ask Ubuntu Asked by Josef Švenda on November 11, 2021

1 Answers

One Answer

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 /boot/grub/grub.cfg.

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

Update #1:

This won't work on LVM.

See here and here for more info about this.

Answered by heynnema on November 11, 2021

Add your own answers!

Related Questions

Validity VFS301 Fingerprint Reader – Ubuntu 20.04

0  Asked on July 28, 2020 by julio-ortiz

   

WPF programming in ubuntu

3  Asked on July 24, 2020 by hojat-sajadinia

 

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.