Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [smartctl]

The tag has no usage guidance.

1
vote
1answer
18 views

Recover file list from NTFS formatted (MBR) failing hard drive

My Seagate Backup Plus Ultra Slim 2TB USB hard disk is not detected on Windows(explorer, disk management, safety remove dialog all crashes when I plug in) but on fedora, it takes 2 minutes to ...
1
vote
1answer
21 views

Read raw SMART data with smartmontools from CF card

I have a Transcend CompactFlash card; its datasheet specifies the SMART data structure i.e. "Power cycle count" is bytes 115-116 in this structure. I am running on a custom embedded system with ...
-1
votes
1answer
111 views

dmesg gave errors blk_update_request: I/O error, dev xxx, sector xxxxxxxxxx

I'm newbie for linux system. founded errors by performing dmesg, seems like there're something wrong with all of disks. I keep tracking the errors until now. Here're a log from dmesg. [Wed Mar 13 17:...
1
vote
2answers
56 views

From the look of smartctl findings, is my SSD dying?

My SSD is getting missed at BIOS sometimes from yesterday. Today morning though, it was completely gone out of the boot menu. I swapped the SATA cable and reconnected the power cable as part of ...
0
votes
2answers
51 views

S.M.A.R.T show's 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 ...
0
votes
1answer
25 views

SMART test completes with no failure after failing test previously, without reallocating any sectors?

I had a drive that was failing on it's SMART test in the form of: smartctl -a /dev/sdc: ... # 1 Short offline Completed: read failure 50% 6354 4377408 # 2 Extended offline ...
2
votes
2answers
181 views

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 ...
2
votes
2answers
76 views

Is it possible to get S.M.A.R.T Monitoring for Debian 9 into Slack?

I've recently set Debian 9 up on a home server and I would like to run some S.M.A.R.T checks against my HDD's and then get alerted if there are any issues. Ideally I'd like the alerts to come into my ...
0
votes
1answer
414 views

smartctl megaraid,N ( how to find the right value for N ? )

we run the smartctl on sdb disk smartctl -a /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www....
0
votes
0answers
105 views

External HDD failure due to bad blocks

My external HDD failed, I searched on the internet and found that it may have been caused by bad blocks. I therefore ran sudo badblocks -vs -b 4096 -c 64 /dev/sdb1 > ~/Downloads/badsectors.txt in ...
0
votes
2answers
70 views

how to know who is fail when doing ssh with test

Let's say I want to do some test VIA ssh example ssh 18.23.24.2 2>/dev/null "smartctl -a /dev/sdb -q silent" echo $? 1 in that case we get exit code 1 How to know if the problem is about ssh ...
1
vote
1answer
253 views

what is the indications from smartctl that show bad status from disk

when we run the smartctl -a on disk we get a lot of output what is the final status that indicates that disk is bad or good? smartctl -a /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-...
3
votes
1answer
704 views

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 (...
0
votes
0answers
292 views

smartctl over USB - on external hdd maxtor m3

any hint to use smartctl on Maxtor M3 2,5" 4TB external HDD? It is listed as supported here: https://www.smartmontools.org/wiki/Supported_USB-Devices I tried these options: sudo smartctl -a /dev/...
0
votes
1answer
197 views

Understanding smartctl and hard-drive errors

I have a raidz2 ZFS pool and my 2 disks started to give I/O error and after that zfs marked them as faulted. click for dmesg log I removed the disks and I ran some test on them. Smartctl says; DISK ...
2
votes
1answer
2k views

Unable to enable SMART support for external hard drive

I use my recently bought 1T Seagate Backup Plus Slim external hard disk ID 0bc2:ab24 Seagate RSS LLC (NTFS filesystem) as a backup tool. I want to run the Smartmontools software on this disk, but when ...
1
vote
0answers
439 views

Cannot enable smartctl Auto Offline Data Collection

smartctl --offlineauto=on /dev/sda [-d TYPE] will not enable Auto Offline Data Collection as reported by smartctl -c /dev/sda which shows Auto Offline data collection on/off support Auto Offline ...
1
vote
0answers
61 views

hard disk high temperature and frequent access while idle

I have bought two WD Gold 4TB and installed debian sid with kde on a single RAID1 partition, md0: # cat /proc/mdstat Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [...
1
vote
0answers
75 views

Why doesn't ZFS on Linux report a dropped drive?

I found one of my personal file servers had slowed to a crawl. On further examination it turned out that one of the drives in a ZFS pool had stopped responding. I can find no indication of this in any ...
1
vote
1answer
437 views

fix Invalid S.M.A.R.T. checksum

So whenever I run smartctl I always get this error like this for example when running smartctl -l selftest /dev/disk0: === START OF READ SMART DATA SECTION === Warning! SMART Self-Test Log Structure ...
0
votes
1answer
300 views

How to disable smartd

So I have a Mac which I installed smartontools, to see my smart data. And I thought that smartd would be helpful in doing short tests on my Mac SSD But I found out via Google that smartd only runs ...
0
votes
1answer
116 views

smartmontools - Is the automatic test the same as running a short test?

We're busy setting up smartmontools on our various Linux based servers and although it works, we want to streamline the process a bit. As I understand, we can enable automatic testing which should ...
0
votes
1answer
53 views

Recovering from an AMNR Hard Drive error (ext4)

I am trying to recover whatever data I can from a bad partition on a hard drive. Unfortunately fsck failed to resolve the issue. The output from mount is as follows: $ sudo mount /dev/sda3 /mnt/ ...
0
votes
1answer
408 views

Hard disk shows '193' bad sectors and makes a repetitive clicking noise

I have a 1 TB hard drive on an old iMac 2011 that recently started making a repetitive clicking noise. It is similar to when CD-ROM tries to read a 'scratched' surface on a CD. Recently, the computer ...
3
votes
1answer
414 views

ext4 : bad block fixed, but is this disk dying?

Ubuntu 17.04; ext4 filesystem on 4TB WD green SATA [WDC WD40EZRX-22SPEB0] Mount (on startup, from fstab) failed with bad superblock. fsck reported / inode damaged, but repaired it. 99% of files ...
0
votes
1answer
92 views

Problem with a new hard drive. It stops working periodically

I have a problem with a new 8 TB (internal) hard drive, used for storing and process large amount of data downloaded from FTP servers. I checked the disk with GSmartControl and everything seemed to be ...
1
vote
2answers
196 views

can we automatically wait the required time for smartmontools/smartctl?

Can we do something like this in a script (preferably zsh): smartctl -t long /dev/sda smartctl -t long /dev/sdb smartctl -t long /dev/sdc [Wait however long smartctl needs] smartctl -H /dev/sda ...
2
votes
1answer
1k views

SMART health-test and status

I have an external USB-drive which is giving me the following output on running the command $ smartctl /dev/sdb -H on it: SMART Status not supported: Incomplete response, ATA output registers ...
3
votes
1answer
238 views

Why are there “skipped” temperature entries in the SCT Temperature History output?

To take a look at the temperature history in on my SSD, I used the smartctl -l scttemphist command. The output says that it is skipping lots of entries. Why is it doing this? I don't think that it ...
1
vote
1answer
6k views

Smartmontools with NVMe support on CentOS 7

I've just set up CentOS 7 on a server with NVMe drives, and was suprised not to be able to run smartctl on them: # smartctl -a /dev/nvme0 /dev/nvme0: Unable to detect device type Please specify ...
0
votes
1answer
347 views

udisks SMART / APM stopped working?

I have a laptop with the accursed Western Digital hard drive. I have used SMART to look at Load/Unload cycles (smartctl -a|grep Load). They increase too fast towards the 300,000 lifetime limit. I ...
1
vote
1answer
963 views

Where to get information on failed disk?

I have a disk inside my server which has failed and I'm trying to figure out which one it is. I did not make a list of all serial numbers as I should have. I plan on doing this but in the meantime, ...
2
votes
2answers
196 views

bash - Separate “table” values into strings in array

EDIT: I'm sorry, the output I claimed is wrong. There are more spaces than I previously thought (something happened when the output was saved to html file to remove these) The real output is as ...
0
votes
0answers
299 views

Use custom log file for S.M.A.R.T errors with smartd?

As far as I understand smartd logs errors to syslog or sends them via mail. But how can I setup smartd to log error messages into a custom log file?
0
votes
1answer
149 views

How to wipe or write zeroes to hard disk using /dev/sg2

I want to wipe hard disk which is behind the raid controller. I am able to break the raid. After that, i m getting /dev/sg2 not /dev/sda like. # lsscsi -g [1:1:0:0] disk Hitachi HDxxxx jp40 --- ...
0
votes
0answers
73 views

Which is broken: external enclosure or harddrive?

I have an older IDE drive in an external enclosure that I connect with USB adapter. During a attempt to save a System-Partiton rsync complains that it can not write after a while. I saw, that all 3 ...
2
votes
0answers
5k views

“Non-medium error” in smartctl output

Who can explain what is meaning "Non-medium error" in this output. I think my hard disks have some problems. Disk1 root@nshost2:/home/david # smartctl -a -d cciss,0 /dev/ciss0 smartctl 6.5 2016-...
1
vote
2answers
529 views

Confusing output by smartctl

I saw SmartMonTools: How can I know if there is any smartctl test running on my hard disk? and ran - $ sudo smartctl -a /dev/sdb | grep "progress" -i -A 1 # 3 Extended captive Self-test routine ...
1
vote
1answer
836 views

Files system become suddently read only; how to debug this?

My ext-4 root and home filesystem became suddently read-only. How can I find out what was the reason for this? The system is ubuntu 16.04 with systemd (installed on an ssd), where root and home ...
1
vote
0answers
172 views

smartcontrol: number of sectors written too small

I tried to use smartctl to get info about the total bytes written to my SSD (started using it yesterday). It currently shows 18 Blocks which seems much to small for me (currently used space is ~9GB). ...
1
vote
1answer
252 views

What text will smartctl output when the drive is not healthy

I run this command to check drive health: smartctl -H /dev/sda Output: smartctl 5.43 2012-06-30 r3573 [i686-linux-4.2.0-rc3+] (local build) Copyright (C) 2002-12 by Bruce Allen, http://...
2
votes
0answers
399 views

BTRFS reports errors, but the drives don't. Do I have failed drives?

I have been using btrfs for over a year, and noticed reports of lots of errors in the logs but no problems. A recent scrub found HUGE numbers of csum errors, by huge I mean 85 MILLION, however scrub ...
1
vote
1answer
957 views

Checking Macbook Pro Retina SSD life

I am trying to assess the health of my SSD drive (of a MBPr 15" mid-2014). I tried to do smartctl -a disk0, which gave the following output: SMART Attributes Data Structure revision number: 40 Vendor ...
1
vote
0answers
194 views

Why is `smartctl -l xerror` LBA well beyond end of disk?

I ran smartctl -l xerror on a Seagate ST31000528AS (1TB disk with 512-byte sectors), and it gave me (in part): Error 597 [16] occurred at disk power-on lifetime: 11903 hours (495 days + 23 hours) ...
2
votes
0answers
199 views

how to do data scrubbing (i.e. mass storage bit rot mitigation) in linux/unix?

data scrubbing is presented to me as a way to mitigate what is refered to as bit rot (on mass storage). The rationale is that data on hard disks can "decay"/"rot" and hence get corrupted, and to ...
1
vote
1answer
853 views

How to automatically check for failed hard drives in RAID array?

We've got a couple of servers in-house containing hardware RAID5 and RAID6 arrays with 8-15 disks each. What's the easiest way to automatically check for failing hard drives using a script so that ...
0
votes
1answer
508 views

how to fetch SMART attributes in SSD?

I have a SAS SSD and I want to know few things like "Perc_Lifetime_Remain", etc. In the exisiting SATA SSD drive, we are fetching these info by using smartctl tool ("smartctl -A diskname"). But the ...
32
votes
2answers
28k views

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 [...
0
votes
1answer
2k views

Shell script printing blank $USER variable when executed by Smartd

I have created a script that smartd daemon (smartmontools) executes as per command below. DEVICESCAN -a -m email -M test -M exec /usr/share/smartmontools/my-script -n stand... Smartd appears to be ...
1
vote
2answers
1k views

Cannot get smartctl working

On my debian wheezy server I use a software raid 1 with two harddisks dev/sda3 and dev/sdb3 connected into dev/md2: mdadm --detail /dev/md2 Number Major Minor RaidDevice State 0 8 ...