# Grub save default not working for me : /

**URL:** <https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307>\
**Category:** Newbie\
**Created:** [March 10, 2024, 9:39pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307 "2024-03-10T21:39:03Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinuxGaming312](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@LinuxGaming312](https://forum.endeavouros.com/u/LinuxGaming312)\
**Post date:** [March 10, 2024, 9:39pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/1 "2024-03-10T21:39:03Z")

</div>

I tried using grub save default to save default grub menu entry based on my previous selection,  
but following guides online it’s not working in endeavorOS

anyone know the correct syntax to get this working?

i have

GRUB\_SAVEDEFAULT=true  
GRUB\_DEFAULT=‘saved’

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [March 10, 2024, 9:52pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/2 "2024-03-10T21:52:45Z")

</div>

Are you using btrfs? If so, grub doesn’t support that option with btrfs.

If you want to set a specific kernel to the default you can use something like this:

```t
GRUB_TOP_LEVEL=/boot/vmlinuz-linux-lts

```

That would set the LTS kernel default for example.

---

<div class="post-metadata">

**Author:** ![LinuxGaming312](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@LinuxGaming312](https://forum.endeavouros.com/u/LinuxGaming312)\
**Post date:** [March 10, 2024, 10:02pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/3 "2024-03-10T22:02:59Z")

</div>

sweet thank you I will try that

No btrfs for me I’m using f2fs

edit: GRUB\_TOP\_LEVEL=‘/boot/vmlinuz-linux67-tkg-pds’

that worked thank you ; D

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 10, 2024, 10:07pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/4 "2024-03-10T22:07:13Z")

</div>

```auto
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

```

isn’t just `GRUB_SAVEDEFAULT=true` then? (not sur it would change anything actually…)

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [March 10, 2024, 10:10pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/5 "2024-03-10T22:10:34Z")

</div>

> [@LinuxGaming312](#):
>
> No btrfs for me I’m using f2fs

f2fs is probably the same. Grub only can write a very small number of filesystems.

---

<div class="post-metadata">

**Author:** ![LinuxGaming312](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@LinuxGaming312](https://forum.endeavouros.com/u/LinuxGaming312)\
**Post date:** [March 10, 2024, 10:11pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/6 "2024-03-10T22:11:11Z")

</div>

I take it from reading the section you quoted in /etc/default/grub  
that we need

GRUB\_SAVEDEFAULT=true  
GRUB\_DEFAULT=‘saved’

both of these settings, and I think I actually tried altering the syntax in the past,  
and following multiple different people’s advice to get this working, and never could.

is it GRUB\_SAVEDEFAULT=‘true’ (?)  
and  
GRUB\_DEFAULT=‘saved’ (?)

or other choices? I don’t know I briefly tried troubleshooting it awhile ago,  
and couldn’t figure out the exact details.

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 10, 2024, 10:12pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/7 "2024-03-10T22:12:37Z")

</div>

```auto
GRUB_DEFAULT=‘saved’

```

~~I would try without that line (so just `GRUB_SAVEDEFAULT=true`)  
~~  
_ **edit** _  
cause I can’t read (…ok… and an idiot)  
so yeah both with `GRUB_DEFAULT=saved`  
💜@dalto

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [March 10, 2024, 10:14pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/8 "2024-03-10T22:14:03Z")

</div>

> [@linuxislife](#):
>
> I would try without that line (so just `GRUB_SAVEDEFAULT=true`)

You need both.

From the config file:

> ```auto
> # Uncomment to make GRUB remember the last selection. This requires
> # setting 'GRUB_DEFAULT=saved' above.
> #GRUB_SAVEDEFAULT=true
> 
> ```

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 10, 2024, 10:20pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/9 "2024-03-10T22:20:41Z")

</div>

indeed !

so

```auto
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

```

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [March 10, 2024, 10:29pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/10 "2024-03-10T22:29:12Z")

</div>

The only thing is that it only works with certain filesystems. Namely, filesystems which grub is capable an environment block to.

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 10, 2024, 10:54pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/11 "2024-03-10T22:54:57Z")

</div>

Even if `/` is btrfs but `/boot/efi` is fat32 (and `/boot` ext4 (but that’s just for the config files of grub, not the actual loader right?)) then GRUB should be “happy” …or?

---

<div class="post-metadata">

**Author:** ![LinuxGaming312](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@LinuxGaming312](https://forum.endeavouros.com/u/LinuxGaming312)\
**Post date:** [March 10, 2024, 10:55pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/12 "2024-03-10T22:55:25Z")

</div>

wow thank you guys for your help

I didn’t consider that that could be a problem

I was convinced I wasn’t using the right configuration or syntax

I do have an ext4 /boot a fat32 /boot/efi with an f2fs root

BUT it’s on an nvme type ssd drive. In fact in my experience lots of different interconnected systems can cause issues ultimately when one configuration doesn’t line up with everything else, so the whole configuration needs to be considered to actually figure these things out appropriately

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [March 10, 2024, 10:56pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/13 "2024-03-10T22:56:06Z")

</div>

> [@LinuxGaming312](#):
>
> I do have an ext4 /boot

It should work if you have an ext4 `/boot`

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 10, 2024, 10:58pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/14 "2024-03-10T22:58:23Z")

</div>

ah, so it’s this part that grub has to “like”…

(I just need to not use `grub` anymore in my case anyway, it’s been 10 times I said I’ll move… mmmmèèèh…)

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [March 10, 2024, 11:52pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/15 "2024-03-10T23:52:01Z")

</div>

Usually, we mark as solution, the very post that actually has given or pointed to solution.

In this case please mark [@dalto’s post](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/2) as solution!

Thank you and welcome to EnOS’ community @LinuxGaming312 !

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [March 12, 2024, 11:52pm UTC](https://forum.endeavouros.com/t/grub-save-default-not-working-for-me/52307/16 "2024-03-12T23:52:40Z")

</div>

Closed on March 12, 2024, 11:52pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
