Article 5AMR0 test SATA hard disk for errors

test SATA hard disk for errors

by
kosmo333
from LinuxQuestions.org on (#5AMR0)
I tried test my SATA 2.5" hard disk for errors. Disk is in an external enclosure, attached to laptop via USB.
Debian 9 on my laptop and smartmontools installed. I did short test first:

Code: Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb45e11b8

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 718847 716800 350M de Dell Utility
/dev/sdb2 718848 7010303 6291456 3G c W95 FAT32 (LBA)
/dev/sdb3 * 7010304 960389119 953378816 454.6G 83 Linux
/dev/sdb4 960391166 976771071 16379906 7.8G 5 Extended
/dev/sdb5 960391168 976771071 16379904 7.8G 82 Linux swap / Solaris

$ sudo smartctl -H /dev/sdb3
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.9.0-14-686-pae] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

$ sudo smartctl --info /dev/sdb
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.9.0-14-686-pae] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MQ01ABF...
Device Model: TOSHIBA MQ01ABF050
Serial Number: Y5MTTNZWT
LU WWN Device Id: 5 000039 6a1e08598
Firmware Version: AM0P1D
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is: Fri Nov 20 02:41:41 2020 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

$ sudo smartctl --capabilities /dev/sdb
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.9.0-14-686-pae] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 123) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.



$ sudo smartctl --test=short /dev/sdb
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.9.0-14-686-pae] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Nov 20 02:50:00 2020

Use smartctl -X to abort test.

$ sudo smartctl --capabilities /dev/sdb
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.9.0-14-686-pae] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 123) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.latest?d=yIl2AUoC8zA latest?i=jMpjTq9Rg64:81eqjD0zF-4:F7zBnMy latest?i=jMpjTq9Rg64:81eqjD0zF-4:V_sGLiP latest?d=qj6IDK7rITs latest?i=jMpjTq9Rg64:81eqjD0zF-4:gIN9vFwjMpjTq9Rg64
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments