Modern distributions automatically run fstrim.
This can be checked with:
systemctl status fstrim.timer
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
mail-files mail-if-fail mail-statistics \
replace.pl \
rotatelogs \
mail-files mail-if-fail mail-statistics \
replace.pl \
rotatelogs \
setdate \
strip-debug-symbols \
tildes-clean \
setdate \
strip-debug-symbols \
tildes-clean \
+++ /dev/null
-#!/bin/bash
-
-MOUNT_POINTS="\
- / \
- /mnt/rescue \
- /mnt/hvlinux-latest \
- /mnt/mint \
- /mnt/debian \
- /mnt/stockage"
-
-for mount in ${MOUNT_POINTS}; do
- fstrim ${mount}
-done