Am Samstag, den 07.03.2020, 20:07 +0800 schrieb Xi Ruoyao: > On 2020-03-07 12:47 +0100, Thomas Seeling wrote: > > Hallo, > > > > > > I thought that trim stuff was all handled automagically by kernels now. > > > isn't very long since fedora were deciding whether or not fstrim > > > should be automatically enabled in their installer, and my memory > > > says that they went with the systemd service to run it daily. > > > > fstrim is neither in LFS nor BLFS book. It's a small download from > > sourceforge, latest release from 2010 is 0.2. > > fstrim is now a part of LFS package util-linux. A systemd timer unit is also > shipped so we can tell systemd to run fstrim weekly: > > systemctl enable fstrim.timer > > For sysvinit I'm not sure how to do this.
For sysv, a scheduler (fcron) might be required. If installed, drop a file containing #/bin/bash /usr/bin/fstrim --fstab --verbose --quiet into the directory /etc/cron.weekly. That should be enough. (Not tested yet) -- Thomas -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
