Home » Questions » Computers [ Ask a new question ]

Is there Linux support for TRIM on SSD drives?

Is there Linux support for TRIM on SSD drives?

Does any know if there is a way to enable TRIM support on Linux for SSDs? This is included with Windows 7, and I was surprised that I couldn't find much information about it under Linux.

Asked by: Guest | Views: 29
Total answers/comments: 3
Guest [Entry]

"Notice that you probably need a more recent kernel than 2.6.28, see here (based on 2.6.30-rc4 with last activity in May this year). I do not know to what degree that tree has been merged, maybe you can search the linux-ide@vger.kerneldotorg mailing list. Update: see for instance this thread (also discussed on the kernel list).

For using TRIM you are probably interested in hdparm-9.20, released a few days ago (and I see there is even a newer wiper-1.7 release).

Update: See also this LWN article about the relationship between filesystem, TRIM, performance and SSD disks."
Guest [Entry]

I think Linux already supports Trim. Its just no SSD has support for it yet. The firmware upgrade is required for current generation OCZ and Intel drives for Trim to be enabled.
Guest [Entry]

"I tracked TRIM command on UBUNTU 9.10. But I can't find any TRIM Command when I'm using the kernel 2.6.31.
When I generated TRIM command using the hdparm, I can find TRIM command.
So, I think current linux kernel version does not support TRIM command."