Most current SSDs support the ATA_TRIM command for sustained long-term performance and wear-leveling. On Linux TRIM is supported by the Ext4 and Btrfs filesystems but the latter is out of the scope of this tutorial. We need two things in order to enable TRIM:
- Installed and working Ubuntu or other GNU/Linux distribution with root and text editor. We use
gedit
for our editing purposes, but if you have another tool on your machine – you are free to use that instead.- Linux kernel 2.6.33 or later. Ubuntu 10.10 (Maverick) ships with kernel 2.6.35. This kernel is also available for Ubuntu 10.04 (Lucid) via a backport package.
Having met the two requirements, all we need to do to enable TRIM is the following:
Full article here:
HOWTO: Configure Ext4 to Enable TRIM Support for SSDs on Ubuntu and Other Distributions (Forked by Nicolay)