Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
90 views

ATA error count increased / failing ssd?

So, being annoyed with the constraints of a "fixed" disk layout on my desktop, the other day I decided to migrate my / and /home to a LVM based configuration. A part of this process I did an ...
ndx's user avatar
  • 23
1 vote
2 answers
60 views

Disable automatic S.M.A.R.T. tests

I have a small (single-board) Zimaboard server that is running Debian 12 (bookworm) 24/7 in my bedroom. This server has a single HDD hooked-up, which remains unmounted and in sleep mode except for a ...
MPA's user avatar
  • 113
1 vote
0 answers
258 views

What's the difference between SMART "long" and "offline" tests?

What's the difference between the two below? What exactly is tested by each test? smartctl -t offline /dev/sda smartctl -t long /dev/sda According to the smartctl documentation: offline - [ATA] ...
vvv444's user avatar
  • 111
0 votes
1 answer
210 views

Is this drive dead?: Samsung SSD 970 EVO Plus 1TB

Having bought a used PC and now installing smartd on it, I'm getting smartd "Critical Warning (0x04): Reliability" emails about it (full pastebin). The Percentage Used: 112% is concerning. ...
Peter V. Mørch's user avatar
2 votes
1 answer
81 views

Editors crashing with certain characters, programs crashing, how to diagnoze?

I'm having strange problems with my PC and don't know what to do. It all started with the fact that certain characters (Devanagari characters) could no longer be displayed in my Emacs. Whenever I ...
NIls Jacob's user avatar
0 votes
0 answers
113 views

How to generate daily report of total bytes written (TBW,DWPD) to disk (SSD) in Linux

What is the best way to get the correct value of total bytes written to disk per day? My goal is to log it over time, so as an admin you can gain some sense of activity on a Linux Server and have a ...
ron's user avatar
  • 7,162
0 votes
0 answers
35 views

dmesg shows nvme errors but smartctrl shows no errors

I keep seeing messages scroll in dmesg Jan 27 12:56:11 localhost smartd[1191]: Device: /dev/nvme0, number of Error Log entries increased from 316 to 321 But I ran smartctrl tests on all the ...
dman's user avatar
  • 537
0 votes
0 answers
124 views

nvme device-self-test - no progress for 78 seconds, stop waiting

The description says it all: When running a nvme self-test it is not starting at all: nvme device-self-test /dev/nvme0n1 -s 1h -w && nvme device-self-test /dev/nvme1n1 -s 1h -w && ...
HeartOfGermany's user avatar
0 votes
0 answers
17 views

Smartd reports error on device in hardware raid but smartctl cannot see it [duplicate]

First time I'm using hardware RAID (I only knew soft raid). I'm running Debian 9.13. Smartd daemon reports the following error : Device: /dev/bus/0 [megaraid_disk_04] [SAT], 5 Offline uncorrectable ...
Chebarbudo's user avatar
0 votes
1 answer
74 views

Does the drive need to be replaced?

Got a warning due the FAILED! state from SmartCTL check. === START OF SMART DATA SECTION === SMART overall-health self-assessment test result: FAILED! - NVM subsystem reliability has been degraded ...
palmasd1's user avatar
  • 125
2 votes
0 answers
164 views

Are SMART offline data collection and offline attributes obsolete?

TLDR; I tried to understand the difference between SMART Offline and Always attributes, and thus to understand what SMART offline data collection is, and if I should enable it on my HDDs. ...
ChennyStar's user avatar
  • 1,795
0 votes
0 answers
310 views

`smartctl` and `smartd` commands not working

I have been receiving hard disk warnings from the smartd daemon for a while now (every 24 hours), saying that my error logs have increased. I have been trying to examine this by checking my log files, ...
tobibox's user avatar
0 votes
0 answers
147 views

Interpret the output of smartctl for SSD and hard drive

I have dropped my external hard drive on the floor recently and wanted to know if the electronic parts and mechanical parts were damaged. I have no idea how to find this out from the output of ...
Make42's user avatar
  • 699
0 votes
0 answers
68 views

What are these three numbers in parenthesis next to "Power_On_Hours" in `smartctl -a` output?

Sometimes the output of the smartctl -a command shows three numbers separated by spaces in parenthesis after the value of Power_On_Hours. This can be seen in multiple previously asked questions here: ...
StarryBeta's user avatar
3 votes
1 answer
447 views

I/O errors, but after running badblocks everything works again : how is that possible?

TLDR; HDD seemed damaged. Unable to format partition (mkfs.ext4 I/O errors), even with a newly created GPT table. SMART test shows some errors. I was about to throw the disk away. Before that, out of ...
ChennyStar's user avatar
  • 1,795
0 votes
0 answers
172 views

Meaning of Smartctl output

I'd like to use smartctl to see how long each of my external hard drives has been running (for planned replacement) though I don't understand the man page. I can't see what command I should be ...
Puffin's user avatar
  • 101
1 vote
1 answer
149 views

SMART error (CurrentPendingSector) and (OfflineUncorrectableSector)

I have been receiving the following error messages every day for several months now, and I do not know how to stop receiving these messages. CurrentPendingSector This message was generated by the ...
jameszp's user avatar
  • 53
0 votes
0 answers
114 views

smartctl; need help to recover usb disk

I have a 2TB usb disk. I can not see it anywhere, can not mount it anyway. Here is the smartctl output. I am using ubuntu-22.04. How I rescue/use my usb disk? Any help (base) ubuntu@ubuntu-Precision-...
zillur rahman's user avatar
0 votes
1 answer
665 views

Does hd-idle check if the disk is idle prior to spin down the drive?

I was thinking about to let hd-idle manage the spin down of all my drives after 3 hours because I am having trouble doing so with hdparm or smartctl in conjunction with apm or sleep command. So my ...
AlexOnLinux's user avatar
0 votes
1 answer
442 views

Does Smartctl require a file system to run a test, and is my drive toast?

I have a brand new drive that I want to test before using. Just installed it, did not format/partition, nor create a filesystem on it yet. First thing I did was check the smartctl stats, then start ...
sgbrown's user avatar
  • 313
2 votes
1 answer
2k views

How can I view the smart logs for an NVMe disk in Linux when smartclt is showing there are errors?

My daily driver (Debian Bookworm RC3 + KDE Plasma) is configured to send me emails containing error notifications. Today, I received the following email: This message was generated by the smartd ...
IMTheNachoMan's user avatar
1 vote
1 answer
112 views

Does my disk support SMART?

I'm confused about this smartctl output. It says SMART status is not supported, but then it says it PASSED. # sudo smartctl -H -d megaraid,24 /dev/sdb smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10....
Timothy Pulliam's user avatar
1 vote
0 answers
166 views

smarctl - SSD dying due to age? other hardware fault causing SSD failure?

Trying to interpret the smartctl output from an SSD to understand if this SSD errors are a result of age or possibly other hardware errors causing the disk to fail? Those of you who understand ...
JetStream's user avatar
  • 111
0 votes
1 answer
82 views

What storage/device type are HDD/SSD when shared with Linux on ChromeOS?

On Linux, I'm used to accessing e.g. HDD data through lsblk. However, sharing my WD HDD external drive with Linux on my chromebook (appears under /mnt/chromeos/externals/) lsblk or lshw will not yield ...
WhiteSwanBlackSwan's user avatar
1 vote
1 answer
83 views

KVM: how do I access information on the underlying SSD?

I have a small number of VMs in a datacenter, which run on SSDs. I'd like to get some information on the SSD for status reports (ideally, a wear level/percentage used), and to get some idea of whether ...
QF0's user avatar
  • 305
1 vote
1 answer
838 views

How to Verify a Fix to smartctl Error?

My harddrive got some errors per smartctl short test result (see below). Then, I just zero-ed out data on my disk first for privacy reason: sudo dd if=/dev/zero of=/dev/sdc1 bs=1M sudo dd if=/dev/zero ...
HCSF's user avatar
  • 213
1 vote
1 answer
1k views

interpreting smartctl, is a hard drive failing?

I noticed about a week ago that the file system on one of my drives is corrupted. I've repaired it several times with fsck, but I keep running into problem. I suspect that this may be a hardware ...
jyoung's user avatar
  • 111
1 vote
1 answer
194 views

Understanding Smartctl Output

I'm trying to determine if an old hard drive is failing. It makes a constant, loud, buzzing noise, and has problems shutting down properly. Smartctl indicates that my hard drive has passed, but also ...
pencilPEN's user avatar
0 votes
1 answer
650 views

New HDD: Number of Mechanical Start Failures: 6

I have bought a new HDD. Toshiba P300 2TB; HDWD120UZSVA Data sheet: https://www.toshiba-storage.com/products/toshiba-internal-hard-drives-p300/ To be sure, that this drive is in good health and will ...
Wogehu's user avatar
  • 123
2 votes
1 answer
271 views

hddtemp with raid controller

# hddtemp /dev/sda: DELL PERC H740P Adp: S.M.A.R.T. not available /dev/sdb: DELL PERC H740P Adp: S.M.A.R.T. not available # smartctl --scan smartctl --scan /dev/sda -d scsi # /dev/sda, SCSI device /...
ron's user avatar
  • 7,162
1 vote
0 answers
164 views

ZFS On Linux - recover lacked MBR after physical problem

We had a physical problem in our backup server (we suppose an electrical shock due to the thunderstorm). The system is Linux Debian on a disk and the storage in on a two 4 TB disks RAID-1 ZFS (ZFS On ...
Le Nain Jaune's user avatar
1 vote
1 answer
506 views

SMART test fixed itself after a few runs

I found something bizarre to me: SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline ...
kiler129's user avatar
  • 119
1 vote
0 answers
923 views

How to interpret blk_update_request: critical medium error?

I am getting this error message every now and then from one drive: blk_update_request: critical medium error, dev sdf, sector 4820053408 op 0x0:(READ) flags 0x1000 phys_seg 4 prio class 0 The output ...
J. Doe's user avatar
  • 121
1 vote
2 answers
833 views

Why smartd need database?

Do smartd need the database? or smartctl needs the database? I saw smart tool github keep updating database: https://github.com/smartmontools/smartmontools/labels/drivedb In my understanding, smartd ...
Mark K's user avatar
  • 885
7 votes
1 answer
5k views

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,...
user983447's user avatar
1 vote
3 answers
916 views

Deciphering smartctl results

I'm trying to use an internal 2.5" HDD to serve as my external storage media and for backups. This HDD had been previously on a Windows machine for a long time before some of my files became ...
Sepp A's user avatar
  • 63
1 vote
1 answer
805 views

Smartd how to wake disks only for scheduled scans

I am using smartd to monitor my disks in Ubuntu and have it configured to run a short scan daily at 2am and a long test 3am every Saturday morning: /dev/sda -a -n standby -o on -S on -s (S/../.././02|...
Dibly's user avatar
  • 11
7 votes
3 answers
3k views

Really Remapping Bad Blocks on disk

I have a SATA drive which has a total of 8 bad blocks identified by the badblocks program. Supposedly the drive firmware should be able to remap them and substitute spares. I've run badblocks in -n ...
kmand's user avatar
  • 111
0 votes
1 answer
208 views

smartctl Power_Cycle_Count on new SSD

After one power cycle on my system and one smartctl long test, my Samsung EVO 1T SSD : ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE ... 12 ...
Stephen Boston's user avatar
0 votes
1 answer
55 views

Will dmesg always report file system read errors?

OS is Debian 10. Smartctl reports a bad block on a hard drive. Rsync has been regularly doing backups to a backup drive. dmesg has not reported any errors. Does that mean the data on the backup drive ...
cat pants's user avatar
  • 487
0 votes
1 answer
2k views

ssd won't mount: bad superblock but no bad blocks: write errors

just noticed I was using SDD for SSD. Corrected I need help interpreting this situation. /dev/sda is a data disk backed up and with reproducible data so this is not system critical but I'd like to ...
Stephen Boston's user avatar
1 vote
1 answer
1k views

Ubuntu smartctl – running test from cron: How do I know when the results were created?

I've followed various tutorials and ended up with running smartctl tests from cron. crontab: 0 2 2 * * /usr/sbin/smartctl --test=long /dev/sda &> /dev/null 0 2 3 * * /usr/sbin/smartctl --test=...
Jeff Baker's user avatar
1 vote
1 answer
932 views

Checking a HDD's health in Raid?

I have a few HDDs in an Ubuntu SW-RAID array, and now I came across to quite a number of questions sticking together: 1.) Is it safe to do smartctl -t (SMART selftest) while the drive is part of an ...
Daniel's user avatar
  • 339
0 votes
1 answer
93 views

Whats the status of my HDD ? it freezes time to time

Just a random day my win 7 froze and crashed with blue screen , i thought it was power problem as the battery was almost dead so i changed it and installed Linux dual boot ,was fine for few weeks but ...
Vikky's user avatar
  • 1
1 vote
0 answers
270 views

SmartMonTools: tests get cancelled without any traces

I am testing hard disks with SmartMonTools under Ubuntu 20.04. Tests for some hard disks are not working - they disappear without leaving any warnings or errors. Hard drive status before the test (...
Andriy's user avatar
  • 111
1 vote
1 answer
312 views

Checking the drive status using Smartctl

Can anyone help me identify my drive issue using the smartctl command? When I execute smartctl -h the output contains "passed" but I still doubt the state of the disk.
Phanisai gs's user avatar
0 votes
2 answers
2k views

how to verify number of disks in RAID but from OS

we have Linux RHEL server - 7.6 version in server disks are : lsblk -S NAME HCTL TYPE VENDOR MODEL REV TRAN sda 0:2:0:0 disk DELL PERC FD33xD 4.27 sdb 1:0:0:0 disk ...
yael's user avatar
  • 13.4k
3 votes
1 answer
3k views

Linux on Marvell 88SE9230. How to get stats?

I use Marvell 88SE9230 controller on my home Linux server. HP does have utility to setup raid and get some stats. But I'm wondering how to get any status from a Linux system. Quick googling shows only ...
Hills of Eternity's user avatar
0 votes
0 answers
2k views

disc failures, blk_update_request: I/O error

I'm currently having a trouble accessing all recently installed discs on a server after a zfs pool rebuild. When I tried to partition using parted, I got the following error: Error: Input/output error ...
hbar's user avatar
  • 101
0 votes
1 answer
3k views

Is my hard drive failing? / Need help with smartctl -a output

I have an old Seagate 4TB internal drive from a crapped out pc that I was planning to repurpose as a spare drive for gaming. Figured I'd run some smartctl scans on it first just to be safe so I did ...
zpangwin's user avatar
  • 891