Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm aware of the DOS utility to "Reset" an Intel SSD to factory settings, but I'd rather not shut down my system to do this to my SSDs.

Supposedly newer kernels support TRIM, but I haven't found any utilities to actually run TRIM.

Has anyone found a way to do this?

share|improve this question
Found this link, but it looks a little gnarly.… Finding a version of hdparm to work with this also appears to be a challenge. Looking for something better. – Joel K Jan 22 '10 at 23:26

I found instructions for running an ATA security erase command here:

I intend to try it myself, since I have been naively running my X25-M SSD on a laptop with suboptimal settings and I think the performance is falling.

share|improve this answer

From what I've been able to gather...

TRIM is an OS command, you don't call it, the OS does. So there's no 'TRIM' utility.

It's called (by a compatible OS) when you delete a file from an SSD drive. See Here and Here.

The SSD drive firmware needs to support the TRIM command as well.

If you want to "reset you wear leveling tables" then you're going to have to wipe the drive completely, as it requires either re-writing every block on the drive to one state; or by wiping the LBA tables by issuing a "SECURE ERASE" command (see here) - AKA 'low-leveling the drive'.

All of which will blow away your OS (and anything else) if it's on that drive, effectively preventing you from doing it from within the OS. :)

If your SSD is a COMPLETELY separate drive from your OS drive(s) you may be able to get some decent results by using a good 'secure hard drive eraser' app of some kind, but I wouldn't count on it.


share|improve this answer
Right. Two options: 1. Low level utility to wipe drive's wear tables (what I'm asking for, and can't find) 2. Filesystem (as a part of the OS) implements TRIM to keep wear tables in check.. I have found neither in LINUX. :) Thus my original post. – Joel K Jan 26 '10 at 17:00

There isn't just a 'wear leveling table' that you can wipe and be merrily on your way.

Without an OS that supports the TRIM command the drive does not know which subblocks are empty and so the data on the SSD becomes fragmented below the level that the OS sees. The only way to 'reset' it involves clearing all the data whether you use the proper utility or try and do it manually.

If you want to avoid the hassle of backing up/ghosting regularly when it slows down then you need to use an OS that supports TRIM.

share|improve this answer
The question is about Linux. So "use an OS that supports TRIM" is not an usable answer to this question. – user29047 Jan 25 '10 at 13:30
Linux will have support sooner than later. In the meantime you could run Linux in a virtual machine under Windows, not use SSDs yet, put up with the speed degredation or regularly wipe the drive (which might have an adverse effect on the lifetime). Plenty of usable solutions to the problem. The main point of my answer is that the OP is asking the wrong question because he misunderstands how TRIM works. – JamesRyan Jan 25 '10 at 20:49
Rather I'm acknowledging that there is no TRIM support that I'm aware of, and that I'm forced to occasionally wipe the drive. Right now, wiping the drive requires rebooting in to a DOS utility from Intel. I'd prefer to avoid that. – Joel K Jan 26 '10 at 17:02
The DOS utility doesn't just run a command, it includes the driver as well. So if there was a utility on linux then there would pretty much already be native support. – JamesRyan Jan 28 '10 at 14:50

This is not the whole story.

For the X25 there is a toolbox, working under XP and Vista. You can activate it as a job. Intel says you should set it to an auto job for every week. There are some problems to get the thing working allright. Read Intel communities very carefull.

My 160G X25 works like a charm, (I had to patch xp because I have no English version) it is worth the effort.

I am not aware of a toolbox for linux.

Does anyone know about the same efforts in linux?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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