Hi, I installed Debian 10 yesterday & most things are running well thus far! I have an SSD and normally set the following for Debian 9:
1. fstab - add noatime for SSD partitions.
2. Enable TRIM for it using the provided example systemd services:
cp /usr/share/doc/util-linux/examples/fstrim.service /etc/systemd/system/
cp /usr/share/doc/util-linux/examples/fstrim.timer /etc/systemd/system/
systemctl enable fstrim.timer
3. Set the following udev rule tells the system to use the deadline scheduler for any non-rotation drives present:
echo -e 'ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"' > /etc/udev/rules.d/60-schedulers.rules
I've done the first step as normal, but the fstrim.* files don't exist in Buster.
I've found a README.Debian (in /usr/share/doc/util-linux/) that says:
Quote:
Periodic fstrim for SSD disks
-----------------------------
fstrim(8) is used on a mounted filesystem to discard blocks which are not in
use by the filesystem. This is useful in particular for solid-state drives
(SSDs).
A systemd service and matching timer is available to periodically perform
fstrim on relevant filesystems, but is *not* enabled by default. To enable it
according to the default weekly cadence, just do the following as root:
systemctl enable fstrim.timer
|
But no mention of copying the example fstrim.* files first. I've checked all of the files in the destination directory (/etc/systemd/system/) and can't see any filename or contents that refer to fstrim.
My question about step 2 is; is it now really as simple as just running the final command without first copying-in the two fstrim.* files?
I guess step three will be same as before as there's currently nothing else in the target directory, presumably safe to run the same command again.