Tutorial on how to enable Trim for SSD (Solid State Drives) in Linux, I show you two methods of enabling Trim in Ubuntu 12.04:
1. Edit /etc/fstab
Add "discard,noatime" to the mount options
2. Manually run "fstrim / -v"
Both these methods apply to most (if not all) Linux distros, including: Ubuntu, Debian, Fedora, Arch, and Gentoo.
Trim works on Ext4, BTRFS, XFS, and FAT drives.
Using trim can extend the life of the SSD's, but can cause a loss in performance.
There is no need to use Trim on Rotational Hard Drives (HDD's)
38 Comments