Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ssd.md: Implemented fstrim in a more general manner. Added instructions. #577

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lefuglyduck
Copy link

Also implemented fstrim more generally. Added instructions on how to TRIM on system start or shutdown using rc.local or rc.shutdown.


```
# fstrim /
# fstrim --fstab
```

To automate running TRIM, use cron or add the `discard` option to `/etc/fstab`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should mention the new method in this list: "To automate running TRIM, use cron, run fstrim at boot or shutdown time, or add the discard option to /etc/fstab.

Comment on lines 24 to +27
To automate running TRIM, use cron or add the `discard` option to `/etc/fstab`.
Note: using `discard` is not recommended. The `discard` method might cause the
system to slow down because it forces the system to apply TRIM instantly on
every individual file deletion.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this downside should be mentioned in the fstab section. Maybe use "add the appropriate mount option to /etc/fstab" above so people don't just use the option and move on without reading everything.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants