@vertka @mischievoustomato @segfault @cvnt @j also do NOT put the "discard" option on the fstab mount options, it is better to run a monthly trim cronjob like this:
#!/bin/sh # # To find which FS support trim, we check that DISC-MAX (discard max bytes) # is great than zero. Check discard_max_bytes documentation at # kernel.org/doc/Documentation/block/queue-sysfs.txt # PATH=/usr/sbin:/usr/bin:/sbin:/bin for fs in $(lsblk -o MOUNTPOINT,DISC-MAX,FSTYPE | grep -E '^/.* [1-9]+.* ' | awk '{print $1}'); do [ -z "$1" ] || printf '%s\n' "sending trim to $fs" fstrim "$fs" doneif you run it interactively and give it an argument it will show which partition is getting trimmed.