Skip to content

Instantly share code, notes, and snippets.

@salex89
Last active August 3, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salex89/fd3e71bab63e459d18fb9be810a469f1 to your computer and use it in GitHub Desktop.
Save salex89/fd3e71bab63e459d18fb9be810a469f1 to your computer and use it in GitHub Desktop.
Configuring xubuntu for SSD
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