How do I verify that TRIM is activated? (Linux)

10

5

I have kernel*.32 and I use ext4 on my drive. Now I just don't know how to check if trim support is enabled?

Found this: http://blog.patshead.com/blog/2009/12/a-quick-and-dirty-wipersh-fix-for-intel-x25-m.html

Algific

Posted 2010-03-28T18:03:30.247

Reputation: 1 143

and this blog post really verifies: http://andyduffell.com/techblog/?p=852

– Mengdi Gao – 2011-10-01T03:58:46.707

I recently also asked this question, and got a great answer from Janne Pikkarainen. http://superuser.com/questions/181238/how-do-i-determine-whether-my-ssd-samsung-um41-supports-the-trim-command/181324#181324

– Yang – 2010-08-27T18:18:06.937

Answers

7

The TRIM command has only been supported on Ext4 since kernel version 2.6.33. It is disabled by default (as it is slightly experimental), but can be enabled with the mount option "discard".

sblair

Posted 2010-03-28T18:03:30.247

Reputation: 12 231

3

When calling 'mount' on the CLI you should get a response that looks similar to:

/dev/sdx on / type ext4 (rw,noatime,discard,errors=remount-ro,commit=0)

Note the discard option is present, which signifies the volume is mounted with the TRIM option.

harry

Posted 2010-03-28T18:03:30.247

Reputation: 31