Questions tagged [smartctl]

smartctl is a command-line utility for analysing various types of hard drives (ATA, SATA, SCSI, SSD etc.) and predicting drive failures. It is part of the smartmontools package.

smartctl controls the Self-Monitoring, Analysis and Reporting Technology (SMART) system built into most ATA/SATA and SCSI/SAS hard drives and solid-state drives. The purpose of SMART is to monitor the reliability of the hard drive and predict drive failures, and to carry out different types of drive self-tests. smartctl also supports some features not related to SMART.

See also

150 questions
72
votes
2 answers

SmartMonTools: How can I know if there is any smartctl test running on my hard disk?

I am testing a hard disk with SmartMonTools. Hard disk status prior to the testings (only one short test performed days ago): $ sudo smartctl -l selftest /dev/sda smartctl 6.2 2013-07-26 r3841 [i686-linux-3.16.0-30-generic] (local build) Copyright…
Sopalajo de Arrierez
  • 6,281
  • 21
  • 60
  • 98
56
votes
5 answers

smartctl on external hdd inside ide-to-usb enclosure

I have a very old 2.5" IDE drive inside a USB enclosure that gives some buffer I/O error. I tried to use smartctl to see what SMART says about it, but I can't manage to make it work. Being root, if I just write: #> smartctl --all /dev/sde smartctl…
Avio
  • 870
  • 2
  • 10
  • 10
39
votes
4 answers

How to check the life left in SSD or the medium's wear level?

We all know that SSDs have a limited predetermined life span. How do I check in Linux what the current health status of an SSD is? Most Google search results would ask you to look up S.M.A.R.T. information for a percentage field called…
Tankman六四
  • 937
  • 2
  • 10
  • 13
16
votes
1 answer

How to evaluate the wear level of a NVMe SSD?

I have a laptop with NVMe SSD: # nvme list Node SN Model Namespace Usage Format FW Rev ---------------- --------------------…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
14
votes
2 answers

List features of NVMe drive (like hdparm -I for non-NVME)

With a non-NVMe drive, I can run: # hdparm -I /dev/whatever | grep TRIM Data Set Management TRIM supported (limit 8 block) Deterministic read data after TRIM With a Samsung 960 EVO 1TB NVMe drive (PCI Express), I get: # hdparm -I…
user1902689
  • 1,178
  • 3
  • 12
  • 23
14
votes
2 answers

In smartctl output, what does LifeTime(hours) mean?

Specifically, in smartctl output, how is LifeTime(hours) calculated? I'm assuming it's one of the following: The difference (in hours) between the time of the test and the manufacture date of the drive. The difference (in hours) between the time…
rinogo
  • 283
  • 1
  • 2
  • 9
13
votes
2 answers

How to get smartd to ignore an HDD?

I have an external HDD which does not report SMART information properly (it gives nonsense results). As such, the smartd daemon (part of smartmontools) keeps giving false alarms on how the device might be failing. In /etc/smartmontools/smartd.conf…
Renan
  • 16,976
  • 8
  • 69
  • 88
12
votes
2 answers

Swap appears to not be in use

(I am currently using Ubuntu 14.04 LTS, GNOME environment) tl;dr How can I force more memory swapping (swappiness already at 100)? I have recently been experiencing a lot of system freezes/crashes. Often when accessing busy websites. It has been…
No Time
  • 1,147
  • 3
  • 13
  • 23
9
votes
5 answers

How can I prevent smartd from reporting that it cannot find a disk?

I have smartd monitoring my hard drives. It works fine generally, but the following error window has been consistently popping up every 24 hours. This email was generated by the smartd daemon running on: host name: sparhawk-XPS-17 DNS domain:…
Sparhawk
  • 19,561
  • 18
  • 86
  • 152
9
votes
1 answer

Does my hard-drive have bad sectors or not?

I got a new drive and I'm confused if smartctl detects bad sectors or not. Both short and extended self-tests completed without error. But the Error Log indicates Uncorrectable error in data for 96 sectors. Here's the smartctl output: smartctl 5.41…
landroni
  • 10,288
  • 12
  • 30
  • 48
7
votes
3 answers

smartctl retest bad sectors

I got a notification today that my drive was going to fail in 24 hours. The 'Reallocated_Sector_Ct' was already around 3000 and it has since risen to over the last few hours 4004. However, I turn my case on its side a few weeks ago, and tried…
Clinton
  • 689
  • 2
  • 7
  • 15
7
votes
5 answers

S.M.A.R.T shows high Load_Cycle_Count | Why and how to prevent the number from increaseing?

i just realized that some of my HDD's have a huge Load_Cycle_Count when reading out their S.M.A.R.T data. Some are short before failing and i am asking myself why this is the case and if there is anything i can do to prevent them from…
AlexOnLinux
  • 635
  • 1
  • 8
  • 17
7
votes
2 answers

Run smartctl on all disks of a server

My question is a quite simple , I want to run the command smartctl -i -A on all disks that the server have. Think that I've too much server with different number of disks and RAID Controllers, then I need to scan all drivers for a diagnosis. I'm…
ZeroNegative
  • 93
  • 1
  • 1
  • 4
6
votes
1 answer

I don't see results of a self test of an SSD in smartctl

I want to test my SSD. It seems that I can start a self test with smartctl, but when I try to display test's results, I don't see anything. My SDD's model is PNY CS3030 250GB SSD: $ lsblk -d -o name,model /dev/nvme0n1 NAME MODEL nvme0n1 PNY…
user983447
  • 531
  • 2
  • 8
  • 16
6
votes
2 answers

smartctl reports overall health test as passed but the tests failed?

Why is SMART overall-health self-assessment test result: PASSED being displayed when the two tests done failed? sudo smartctl -a /dev/sdc smartctl 6.6 2018-12-05 r4851 [x86_64-linux-4.14.98] (local build) Copyright (C) 2002-17, Bruce Allen,…
Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
1
2 3
9 10