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 work on a product that is a headless Debian Linux system with removable Intel X-25M solid state drives. Recently we noticed that the read/write performance of these drives degrades over time, and sure enough the culprit was SSD block problems, as described here. So we did a secure erase of the SSD drive (as described here) and the SSD drives' performance is restored to its original/factory level.

Which is great, but what I'm wondering now is if there is some quick-and-easy way to query hdparm (or some other Linux shell command) so it will print out an indication of how badly degraded the SSD's block-structure currently is. If so, then I could add some logic to my own program to automatically notify the user when a secure-erase would significantly improve his system's performance. As it is, the user just has to sort of guess based on observed I/O performance compared to what it was previously... which isn't the end of the world, but it would be nicer if he just got a warning message "your data SSD is currently 35% scrambled, consider doing a secure-erase to get better SSD performance", or something like that.

share|improve this question
up vote 1 down vote accepted

Why don't you dig through SMART indicators for harddrive.

smartctl -data -A /dev/sda

It will definitely give you indicators

Again, have considered SSD optimization tweaks in linux


share|improve this answer
you can install smartctl with "apt-get install smartmontools" – kaji Jan 12 '12 at 3:54

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.