smartctl -H /dev/sd*
[mrkurtz@darkserver ~]$ sudo smartctl -H /dev/sda smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.3.8-1-ARCH] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
I like to use a linux box or just run this off a live cd. Install the smartmontools to read all of the smart information from the drives. http://smartmontools.sourceforge.net/man/smartctl.8.html after you check them, if it is a SATA drive, you can hot swap them... then I use a hdparm -i /dev/sd* to reread the hard drive information.
@shitop-express ~ $ smartctl -a /dev/sda smartctl 5.40 2010-07-12 r3124 [i686-pc-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
Smartctl open device: /dev/sda failed: Permission denied
:[
this. Preferably with the drive plugged into some other machine.
The test can take a while to run, so patience is required (you run it, walk away, and check the results later).
This guide helped me fix a drive that once reported similar errors.
you can configure it to send you an email if it detects issues.
BACK YOUR SHIT UP RIGHT NOW!
In fact, you should have already done that already, for any important data you had on there (or any other drive).
There's a serious chance that drive is failing. You have to check the SMART data on it (Self-Monitoring, Analysis and Reporting Technology) which will give a decent indication whether it's having issues or not.
Personally, I'd use smartmontools for this, but that software is a bit complex, with command line stuff and whatnot, so you can also use the easier crystaldiskinfo, which is also good, legit software.
GSmart Control gives this as the output, but seemingly will provide no other information:
>smartctl 5.43 2012-06-30 r3573 [i686-w64-mingw32-vista-sp2] (sf-5.43-1) >Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
>Vendor: Seagate
>Product: Backup+ Desk
>Revision: 040B
>User Capacity: 4,142,053,888 bytes [4.14 GB]
>Logical block size: 512 bytes
>Logical Unit id: 0x5000000000000001
>Serial number: ************
>Device type: disk
>Local Time is: Mon Oct 24 05:29:04 2016 PDT
>Device supports SMART and is Disabled
>Temperature Warning Disabled or Not Supported
>SMART Health Status: OK
>Error Counter logging not supported >Device does not support Self Test logging
So I would guess that I'm out of luck on the device. But any other insight is appreciated.
# smartctl --all --device=3ware,2 /dev/sda -T permissive smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.32- 279.el6.x86_64] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
Smartctl: Device Read Identity Failed: Input/output error
=== START OF INFORMATION SECTION === Device Model: [No Information Found] Serial Number: [No Information Found] Firmware Version: [No Information Found] Device is: Not in smartctl database [for details use: -P showall] ATA Version is: [No Information Found] ATA Standard is: [No Information Found] Local Time is: Mon Jan 11 11:24:27 2016 PST SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported. SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
The drives likely don't have 255 heads with 63 sectors/track. That's just the default whatsitz. Similarly, the number of cylinders isn't anything more than the number of sectors divided by the default whatsitz's sectors per cylinder.
So, what you're really interested in is the number of sectors being reported. What does <code>smartctl</code> have to say about that? And about the number of bad/re-mapped sectors?
Shipping would be $25 for all of them. I checked smart status / did a short test on all drives recently and all completed without error.
I just plugged one in and grabbed some info.
smartctl -i -H /dev/sdk
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION === Model Family: Seagate Barracuda ES Device Model: ST3750640NS Serial Number: 5QD24G07 LU WWN Device Id: 5 000c50 00289478f Firmware Version: 3BKH User Capacity: 750,156,374,016 bytes [750 GB] Sector Size: 512 bytes logical/physical Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Fri Nov 2 18:02:24 2012 EDT SMART support is: Available - device has SMART capability. SMART support is: Enabled
=== START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
Yeah, figured as much. I'm going to make another backup of the data, then attempt to clear out the bad sectors using this guide (adapted for NTFS):
http://smartmontools.sourceforge.net/badblockhowto.html
I'm keeping an eye on that pending sector count. If it ticks up, I'll take it offline and get another HD.
This may be helpful: http://smartmontools.sourceforge.net/badblockhowto.html What you need to do is find out which files are on these bad blocks (and hope you have backups of them). Then write some kind if data (RAW!) over these blocks, to have the drive reassign them from the spare pool. Then run fsck to repair the fs (they usually don't like people copying raw stuff over blocks)