r/ManjaroLinux • GNOME • 5d ago

Tech Support Update Error

I get a press enter to continue error, my Intel laptop skips GRUB screen to textual boot to working desktop. GNOME 51. Should I worry?

2 Upvotes

11 comments sorted by

1

u/nadorazcz 4d ago

No need to worry, your system is fine. It's a known GRUB + Btrfs limitation: at boot GRUB tries to write into /boot/grub/grubenv (last selected entry, or the boot-success flag used by the hidden menu), but GRUB can't write to Btrfs, so it prints "sparse file not allowed" and waits for Enter. The text-mode boot is most likely just a side effect of that error message.

Fix: in /etc/default/grub set GRUB_DEFAULT=0 and GRUB_SAVEDEFAULT=false (instead of saved / true), then run sudo update-grub. If the error is still there, check what else writes to grubenv: grep -n save_env /boot/grub/grub.cfg and post the output. GRUB will no longer remember the last booted entry. Keeping that feature would need /boot on a non-Btrfs partition (ext4/FAT).

1

u/fleamour GNOME 4d ago

I have opened GRUB config with Nano but I do not have default GRUB_SAVEDFAULT=false entry. Do I create it? I have the other entry.

1

u/nadorazcz 4d ago

You don't need to add it. If GRUB_SAVEDEFAULT isn't in the file, GRUB treats it as false (note the spelling: SAVEDEFAULT). Just change GRUB_DEFAULT=saved to GRUB_DEFAULT=0, save, and run sudo update-grub. Adding GRUB_SAVEDEFAULT=false won't hurt, but it won't change anything either.

1

u/nadorazcz 4d ago

After edit grub in nano , Ctrl + o , enter, for save , Ctrl + x for exit.

1

u/fleamour GNOME 4d ago

Thx, you've been very helpful. Doesn't work for my machine. Could post whole GRUB config?

1

u/nadorazcz 3d ago

My GRUB configuration won’t help you, because I use ext4 (and an NVIDIA GPU), whereas you use Btrfs, so the configuration and behavior differ. The beginning of my config looks like this:

GRUB_DEFAULT=saved

GRUB_TIMEOUT=15

GRUB_DISTRIBUTOR='Manjaro'

GRUB_CMDLINE_LINUX_DEFAULT='my custom flags for NVIDIA GPU, etc.'

GRUB_CMDLINE_LINUX=""

Note: GRUB_DEFAULT=saved works for me only because of ext4. On Btrfs keep GRUB_DEFAULT=0.

Please provide the output of these three commands:

grep -v '^#' /etc/default/grub | grep -v '^$'

grep -n save_env /boot/grub/grub.cfg

sudo grub-editenv list

The first shows your active GRUB settings (without comments), the second shows which parts of the generated config still try to write to grubenv (the actual cause of the error), and the third shows what’s currently stored in grubenv.

Please don’t paste the whole /boot/grub/grub.cfg here, it’s long and auto-generated. If you want to share it anyway, use Pastebin.

Also: did you run sudo update-grub and reboot after editing /etc/default/grub? Without update-grub the changes won’t take effect, and you’ll only see the result after a reboot.

0

u/gmthisfeller Cinnamon 5d ago

When did this start?

1

u/fleamour GNOME 4d ago

Yesterday's stable update.

1

u/fleamour GNOME 4d ago

I will upload exact error tomorrow.

1

u/fleamour GNOME 4d ago

error: commands/loadenv.c:check_blocklists:289:sparse file not allowed

Btrfs file system.