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

link|improve this question

69% accept rate
and this blog post really verifies: andyduffell.com/techblog/?p=852 – M. Gao Oct 1 '11 at 3:58
feedback

5 Answers

up vote 6 down vote accepted

I just did a bunch of research on using TRIM with my Intel X25-M drive. I had a hard time finding everything in one place (probably since it's so new), so I wrote up a quick how-to guide. Hope this helps:

http://cptl.org/wp/index.php/2010/03/30/tuning-solid-state-drives-in-linux/

link|improve this answer
Great post, thank you ! – Julien Nicoulaud May 6 '10 at 9:06
feedback

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".

link|improve this answer
feedback

Run this in a terminal window, replacing /dev/sda with your SSD's block device:

sudo hdparm -I /dev/sda | awk '/.*TRIM supported.*/{ if ($1 == "*") print "Yes, TRIM is enabled"; else print "No, TRIM is not enabled.";}'

Et voila, your answer.

link|improve this answer
feedback

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

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.