How do I determine whether my SSD (Samsung UM41) supports the TRIM command?

All we need is an easy explanation of the problem, so here it is.

I’m running Ubuntu 10.04 and lshw shows a “SAMSUNG SSD UM41”. Any way for me to determine (1) that my SSD supports TRIM, and (2) that my OS and FS (ext4) are actually using this?

Update: Rather than doing web searches and inspecting various indirect variables, I’d like to get the as direct as possible a confirmation that the system is actually using TRIM, so I’m mostly interested in any tools or techniques for inspection/monitoring for active TRIM use. E.g., many folks point out TRIM has been in Linux since .28, but fail to realize that it was (is?) frequently disabled due to experimental status, that the filesystem has to also support TRIM, and so on.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Newish releases of hdparm should report you something like this if TRIM is supported:

*Data Set Management TRIM supported

You can try hdparm -I /dev/yourssd.

Kernel has supported TRIM from version 2.6.28 and at least ext4 supports TRIM.

Method 2

Ubuntu 10.04, like almost any recent Linux, supports TRIM. I believe this support is at the kernel level, so the only reason Ubuntu would not be using TRIM would be if you have compiled a custom kernel specifically removing (or making a module that is being unused) certain SATA abilities. Therefore, your OS supports it and will use TRIM unless something is preventing it from doing so.

Also, from the Samsung website:

All Samsung branded consumer solid state drives offer TRIM support.

The only other thing to look for is that your SSD should be using AHCI. To check this, you should enter your BIOS setup. Usually you do this by pressing F1, F2, or DEL when you first turn on the computer, but it varies. Then look around and make sure the SATA mode is either AHCI or ENHANCED (depending on your computer). RAID mode will also support TRIM, and if that is selected, do not change this or else you will likely lose data. If the SATA mode is either IDE EMULATION, COMPATIBILITY, LEGACY or similar, you should change it to improve performance and allow TRIM.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply