TransWikia.com

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

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

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?

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!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP