Here, i will be using Debian Lenny
Before we can actually read S.M.A.R.T data from a hard drive, we need to install smartmontools so execute
apt-get install smartmontools
Now on my aging Pentium 3
smartctl -i /dev/hda (Yours can be sda, sdb, hdb etc...)
prints the following
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.9 family Device Model: ST3802110A Serial Number: 5LR1M0HA Firmware Version: 3.AAD User Capacity: 80,026,361,856 bytes 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: Sat Aug 22 00:16:26 2009 EEST SMART support is: Available - device has SMART capability. SMART support is: Enabled
So now i know what kind of hard disk is installed on my system... now i need some more information that actually has to do with the health of my hard drive.
smartctl -s on -d ata /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF ENABLE/DISABLE COMMANDS SECTION === SMART Enabled.
And after...
smartctl -d ata -H /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
Now i know that my hard disk thinks it is healthy, Now what about the raw data
smartctl -d ata -a /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.9 family Device Model: ST3802110A Serial Number: 5LR1M0HA Firmware Version: 3.AAD User Capacity: 80,026,361,856 bytes 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: Sat Aug 22 00:21:53 2009 EEST 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 General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. 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: ( 430) 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: ( 1) minutes. Extended self-test routine recommended polling time: ( 27) minutes. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 119 095 006 Pre-fail Always - 205726976 3 Spin_Up_Time 0x0003 100 098 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 525 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 23 7 Seek_Error_Rate 0x000f 080 060 030 Pre-fail Always - 113219883 9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4954 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 552 187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 3785 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 062 049 045 Old_age Always - 38 (0 2 38 37) 194 Temperature_Celsius 0x0022 038 051 000 Old_age Always - 38 (0 14 0 0) 195 Hardware_ECC_Recovered 0x001a 057 045 000 Old_age Always - 38804231 197 Current_Pending_Sector 0x0012 062 062 000 Old_age Always - 780 198 Offline_Uncorrectable 0x0010 062 062 000 Old_age Offline - 780 199 UDMA_CRC_Error_Count 0x003e 200 199 000 Old_age Always - 1 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0 SMART Error Log Version: 1 ATA Error Count: 48 (device log contains only the most recent five errors) CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days. Error 48 occurred at disk power-on lifetime: 4945 hours (206 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 84 91 5e f0 Error: UNC at LBA = 0x005e9184 = 6197636 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 91 5e f0 00 00:20:41.639 READ DMA c8 00 01 00 00 00 f0 00 00:20:38.215 READ DMA c8 00 08 7f 91 5e f0 00 00:20:34.586 READ DMA c8 00 01 00 00 00 f0 00 00:20:34.586 READ DMA c8 00 08 87 91 5e f0 00 00:20:34.586 READ DMA Error 47 occurred at disk power-on lifetime: 4945 hours (206 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 84 91 5e f0 Error: UNC at LBA = 0x005e9184 = 6197636 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 91 5e f0 00 00:20:41.639 READ DMA c8 00 01 00 00 00 f0 00 00:20:38.215 READ DMA c8 00 08 87 91 5e f0 00 00:20:34.586 READ DMA c8 00 08 7f 91 5e f0 00 00:20:34.586 READ DMA c8 00 08 7f 91 5e f0 00 00:20:34.586 READ DMA Error 46 occurred at disk power-on lifetime: 4945 hours (206 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 84 91 5e f0 Error: UNC at LBA = 0x005e9184 = 6197636 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 91 5e f0 00 00:20:31.030 READ DMA c8 00 08 7f 91 5e f0 00 00:20:38.215 READ DMA c8 00 08 3f 00 5e f0 00 00:20:34.586 READ DMA c8 00 08 47 00 5e f0 00 00:20:34.586 READ DMA c8 00 08 37 00 5e f0 00 00:20:34.586 READ DMA Error 45 occurred at disk power-on lifetime: 4945 hours (206 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 84 91 5e f0 Error: UNC at LBA = 0x005e9184 = 6197636 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 91 5e f0 00 00:20:31.030 READ DMA c8 00 08 3f 00 5e f0 00 00:20:27.597 READ DMA c8 00 08 47 00 5e f0 00 00:20:34.586 READ DMA c8 00 08 37 00 5e f0 00 00:20:34.586 READ DMA c8 00 08 2f 00 5e f0 00 00:20:34.586 READ DMA Error 44 occurred at disk power-on lifetime: 4945 hours (206 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 00 84 91 5e f0 Error: UNC at LBA = 0x005e9184 = 6197636 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 7f 91 5e f0 00 00:20:31.030 READ DMA c8 00 01 00 00 00 f0 00 00:20:27.597 READ DMA c8 00 08 7f 91 5e f0 00 00:20:27.584 READ DMA c8 00 01 00 00 00 f0 00 00:20:27.564 READ DMA c8 00 08 87 91 5e f0 00 00:20:25.793 READ DMA SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
I can see above, the drive still remembers with sorrow the time i opened the lid and made it run, the experiment ended in a horrible way, but the disk still working fine ! surely, this disk is not to be used with real life applications
To run a hard disk self test you will probably want to execute the following before you check the smart data again
smartctl -t long /dev/hda
![]() |
|
![]() |
|
| .COM | $ 8.49 |
| .NET | $ 6.49 |
| .ORG | $ 7.49 |
| .INFO | $ 1.99 |
| Compare Pricing | |
| Cheap Domains | |