Last active
August 3, 2016 21:55
-
-
Save salex89/fd3e71bab63e459d18fb9be810a469f1 to your computer and use it in GitHub Desktop.
Configuring xubuntu for SSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Use ext4 | |
2. Add "noatime" to each Linux SSD volume in /etc/fstab like so: | |
/dev/sda1 / ext4 defaults,noatime 0 1 | |
UUID=xxxxx / ext4 noatime,errors=remount-ro 0 1 | |
3. Set up TRIM | |
A trim command (known as TRIM in the ATA command set, and UNMAP in the SCSI command set) allows an operating system to inform a solid-state drive (SSD) which blocks of data are no longer considered in use and can be wiped internally. | |
TRIM can be executed daily, weekly or monthly. To set up when should it be executed, copy /etc/cron.weekly/fstrim to the appropriate /etc/cron.[weekly|daily|monthly] directory. *Note to myself* keep it at weekly, it's fine enough. | |
DISABLE TRIM WHEN SOMETHING IS DELETED BY ACCIDENT. | |
4. Add to /etc/sysctl.conf . | |
vm.swappiness=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment