How to check the life of the SSD or the level of wear of the drive in Linux?

SSD quickly rushed on the market of hard drives, and nearly drove them into laptops and high-performance personal computers. Solid state drives are characterized by higher efficiency compared to traditional hard.

The fastest hard drive speed for recording/reading information is not going to any comparison with solid state disk. On average, if you write to the hard disk 50 GB of data — it will take about 15 minutes. SSD will cope with this task in 3 minutes.

The operating system installed on the SSD after booting is ready to use in seconds. All the programs installed on an SSD run faster.



Thus, SSDS provide better performance, high speed and less power consumption. But such drives also have disadvantages compared to hard: less service life and low reliability.

Performance SSD in Linux

The last thing you want to do is become a victim of that particular day when your SSD will rise. How do you check the health of your disks? Like everything in Linux, there are various options. Although there is a solution with graphical interface (GNOME), for this task I strongly recommend to use the command line tool. Why? In most cases, your Linux servers will not contain any graphical interface; using command line you can easily use it, protecting the shell on your remote Linux server and run your tests from the terminal.

To show will all be on the platform Ubuntu (specifically, Ubuntu 17.10). The required package is present in standard repositories-so set the installation command in accordance with your specific distribution.

Utility smartctl is part of smartmontools package. It can be installed with one command:

sudo apt install smartmontools

Please note that the above command will also install libgsasl7, libkyotocabinet16v5, libmailutils5, libntlm0, mailutils, mailutils-common and postfix.

Once the package is installed, you are ready to go.


To use the smartctl tool, the first thing you need to do is collect information on the disk, which is done with the command:

sudo smartctl -i / dev / sdX

Where sdX is the drive name for testing.

The above command will print out information associated with your disk.

Let’s have a little test drive. These tests will give you the most accurate data of your disk (so it is important to use these tools). Run the command:

sudo smartctl -t short-a / dev / sdX

This command will immediately report certain bits of information

To run a long test, run the command:

sudo smartctl -t long-a / dev / sdX

The first thing you should see is the test results of the SMART self-assessment and the end should say that the test passed. If not, you’ll know something is wrong with your SSD.

A brief test will consider the following:

  • Electrical properties: the Controller tests its own electronics, which is different for each manufacturer.
  • Mechanical properties: checked servos and mechanisms of positioning (also specific to each manufacturer).
  • Reading/test: a certain area of the disk is read to verify certain data (the size and position of the read region is unique for each manufacturer).

It runs everything in a short test, and adds:

  • There is no time limit in the segment of read/verification.
  • The entire disk is checked (in contrast to the simple section).

How to check the remaining resource SSD in Linux

First of all you should install the utility to work with attributes S. M. A. R. T., if you have certainly not done this before:

apt install smartmontools

Now find out what disk device is installed in your system, to do that follow:


In the output we are only interested in the device type diskin our case sda:

To receive information from S. M. A. R. T. disk use the command:

smartctl -a /dev/sda

where /dev/sda — the name of our ROM, which we found in the previous step.

In the resulting conclusion first of all examine the General data on the disk, in particular, pay attention to the logical sector size:

Then go down a bit and see chart S. M. A. R. T. attributes:

Speakers Value, Worst and Threshold contain values for each of the indicators in “parrots”:

  • Value — the current value
  • Worst — the worst time
  • RAW_value — column with absolute values.

Attributes can be of two types:

  • Old_age are parameters that simply grow (change) with time, the critical threshold is missing, for example, the operation time of the drive in hours;
  • Pre-fail are the parameters having a critical value, which is specified in column
  • Threshold and approach pre-crash indicates the disk status. In the screenshot above these include
  • Available_Reservd_Space — available spare area, reducing the value of which indicates the disk wear.

Attribute 241 Total_Host_GB_Written contains the number recorded in the disc information in gigabytes, and an attribute 9 Power_On_Hours stores the number of hours worked. Still need to pay attention to the indicators 233 NAND_GB_Written_TLC and 234 NAND_GB_Written_SLCshowing the number of entries in the TLC and SLC cells, respectively. to assess wear, we should always accept the amount of data written by host (241 Total_Host_GB_Written), since this value focuses the manufacturer, indicating TBW, the internal parameters are of mostly academic interest.

At the end

To extend the lifespan of your SSD it should simply less to wear. Not worth it to write (overwrite) dozens of films, music and other data, movies and music is ordinary HDD drives.

After all, you won’t feel the difference in watching a film or listening to music on one disk will be written. On the SSD drive, it is advisable to install the operating system, additional software, Yes the edge game even allows if disk capacity, and due to the fact that it has very high speed read/write you thereby increase the overall system performance.

Source: and

WARNING! All links in the articles may lead to malicious sites or contain viruses. Follow them at your own risk. Those who purposely visit the article know what they are doing. Do not click on everything thoughtlessly.


0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments

Do NOT follow this link or you will be banned from the site!
Would love your thoughts, please comment.x

Spelling error report

The following text will be sent to our editors: