This is my /etc/fstab:
UUID=E6DE-3AD7 /boot/efi vfat umask=0077 0 2
UUID=ad93372f-89de-4719-ba29-f9ff18128859 / btrfs subvol=/@,defaults,discard=async,noatime,compress=zstd:3 0 0
UUID=ad93372f-89de-4719-ba29-f9ff18128859 /home btrfs subvol=/@home,defaults,discard=async,noatime,compress=zstd:3 0 0
UUID=ad93372f-89de-4719-ba29-f9ff18128859 /var/cache btrfs subvol=/@cache,defaults,discard=async,noatime,compress=zstd:3 0 0
UUID=ad93372f-89de-4719-ba29-f9ff18128859 /var/log btrfs subvol=/@log,defaults,discard=async,noatime,compress=zstd:3 0 0
UUID=ad93372f-89de-4719-ba29-f9ff18128859 /swap btrfs subvol=/@swap,defaults,discard=async,noatime,compress=zstd:3 0 0
/swap/swapfile swap swap defaults,noatime 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
I took the hint about continuous trimming using discard=async
from the Arch wiki. It sounds sensible to me, but since I don’t know enough about Btrfs yet, I have a bad feeling about the effects on the lifespan of my SSD. The SSD with Btrfs does not contain any important data (are on Xfs-HDD, will be integrated into the fstab), but only the system itself. I have now activated discard=async
and deactivated the fstrim.timer
on a trial basis. What do you think, can it stay like this?