Best fstab options

for my root partition in fstab I use these configuration:

defaults,noatime,commit=120

it’s a SSD EXT4 partition and I use my PC just for internet.
in your opinion fstab is well written in this way? or should I change something?

I’d go by https://wiki.archlinux.org/index.php/Improving_performance

4 Likes

may enable TRIM schedule instead of the default continuous TRIM:

3 Likes

thanks for the answers

also I have not understand if the /boot/efi partition should be mounted or not
do I need it in the fstab file?

I’m back to the topic :smiley:
the /boot/efi partition should be mounted in the fstab file?

If you are using grub and want to be able to use grub-install then yes.

However, it will boot without it mounted if you would prefer not to.

If you are using systemd-boot then you should mount it since it will be needed whenever the kernel and/or initrds are updated.

1 Like

I’m using systemd-boot
could I use the option noauto in FSTAB? will it be mounted when needed so?

Then you probably don’t even have a /boot/efi if your systemd-boot was installed by EOS. In that case, your ESP would be mounted on /efi.

I am pretty sure that noauto just means it isn’t mounted. I don’t think that mounts it when needed.

You can use a systemd-automount to mount it on demand but…why? It is probably a partition on an internal drive. I would just mount it normally.

1 Like

you are right :grin:
I’ve tried to use noauto and updated the kernel
but now it does not boot anymore…

3 Likes

Continuous trim is not the default, is it?

That post is over 2 years old…

Oops… didn’t notice, but I don’t remember it ever was the default.

1 Like

I believe it was the default at one point in time.

It looks like it was removed in October of 2021.

Ah ok! I didn’t use endeavouros back then, and I thought we were talking about the “defaults” option including immediate trimming in general in Linux.

1 Like