📝 Added notes on how best to fstrim

This commit is contained in:
z3rOR0ne 2024-02-18 06:07:16 -08:00
parent 9d2c489cef
commit 3b9eac1edb

17
fstrim_howto.md Normal file
View file

@ -0,0 +1,17 @@
## FSTRIM BASICS
fstrim should be run regularly to clean up disk space.
You can think of it as a more modern form of disk defragmentation.
It potentially can extend the life of an ssd hard drive.
fstrim should be run once a week, but should also not be more often.
The most basic essential command to run fstrim is:
```bash
sudo fstrim -a -v -m 1MB
```
Be conscientious when running fstrim like this, as the -a flag indicates we wish
to run fstrim on all mounted file systems that accept this command. The -m 1MB
indicates we wish to only trim in minimum of 1 megabyte chunks. The -v flag
indicates we wish to see 'verbose' output (like many UNIX/UNIX-like commands).