PINE64
fstrim - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: fstrim (/showthread.php?tid=5251)



fstrim - stuartiannaylor - 10-11-2017

Ubuntu has a cron weekly for fstrim

I have kickstarted it manually and from the delay I think its working but it just doesn't turn up in journalctl.

Anyone know if it will recognise eMMC on the below as a cron weekly.

Code:
#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true



RE: fstrim - stuartiannaylor - 10-15-2017

It does eventually got round to reading about fstrim and fstrim --all -v will give you an output like

fstrim -a -v
/: 786.9 MiB (825085952 bytes) trimmed

like it just did on mine