嵌入式工具——smartmontools
Smartmontools是一种硬盘检测工具,通过控制和管理硬盘的SMART(Self Monitoring Analysis and Reporting Technology,自动检测分析及报告技术)技术来实现的,SMART技术可以对硬盘的磁头单元、盘片电机驱动系统、硬盘内部电路以及盘片表面介质材料等进行监测,当SMART监测并分析出硬盘可能出现问题时会及时向用户报警以避免计算机数据受损失。
版本:smartmontools-6.2
编译方法:
1. ./configure --host=arm-hisiv300-linux LDFLAGS=-static
2. make
3. object file:
arm-hisiv300-linux-strip smartctl
注:arm-hisiv300-linux交叉编译器
smart信息分析:
smartctl 6.2 2013-07-26 r3841 [armv7l-linux-3.0.8] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital AV-GP (AF)
Device Model: WDC WD10EURX-73C57Y0
Serial Number: WD-WCC4J0336158
LU WWN Device Id: 5 0014ee 2b3825b79
Firmware Version: 01.01A01
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Mar 11 16:57:54 2014 UTC
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: (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: (13140) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
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: ( 149) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
------------------------------------------------第一种情况没有错误日志 --------------------------
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 106 099 006 Pre-fail Always - 10594752
3 Spin_Up_Time 0x0003 099 099 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 4
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 100 253 030 Pre-fail Always - 219589
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 27
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 2
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 056 050 045 Old_age Always - 44 (Min/Max 16/50)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 2
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 4
194 Temperature_Celsius 0x0022 044 050 000 Old_age Always - 44 (0 16 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 27h+05m+53.346s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 90322384
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1930609
SMART Error Log Version: 1
No Errors Logged
------------------------------------------ 第二中情况 有硬盘错误日志--------------------------------------------------
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 28
3 Spin_Up_Time 0x0027 130 128 021 Pre-fail Always - 4458
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 18
5 Reallocated_Sector_Ct 0x0033 142 142 140 Pre-fail Always - 2478
7 Seek_Error_Rate 0x002e 195 180 000 Old_age Always - 1694
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1788
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 12
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 10
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 7
194 Temperature_Celsius 0x0022 109 099 000 Old_age Always - 34
196 Reallocated_Event_Count 0x0032 074 074 000 Old_age Always - 126
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 2
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0
SMART Error Log Version: 1
ATA Error Count: 3399 (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 3399 occurred at disk power-on lifetime: 1788 hours (74 days + 12 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
-- -- -- -- -- -- --
04 61 46 00 00 00 a0 Device Fault; Error: ABRT
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ef 03 46 00 00 00 a0 08 44d+03:37:47.113 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 44d+03:37:47.113 IDENTIFY DEVICE
c8 00 08 10 20 01 e0 08 44d+03:37:47.113 READ DMA
ec 00 00 00 00 00 a0 08 44d+03:37:47.112 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 44d+03:37:47.112 SET FEATURES [Set transfer mode]
Error 3398 occurred at disk power-on lifetime: 1788 hours (74 days + 12 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
-- -- -- -- -- -- --
04 61 08 10 20 01 e0 Device Fault; Error: ABRT 8 sectors at LBA = 0x00012010 = 73744
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 10 20 01 e0 08 44d+03:37:47.113 READ DMA
ec 00 00 00 00 00 a0 08 44d+03:37:47.112 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 44d+03:37:47.112 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 44d+03:37:47.112 IDENTIFY DEVICE
c8 00 08 10 20 01 e0 08 44d+03:37:47.111 READ DMA
Error 3397 occurred at disk power-on lifetime: 1788 hours (74 days + 12 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
-- -- -- -- -- -- --
04 61 46 00 00 00 a0 Device Fault; Error: ABRT
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ef 03 46 00 00 00 a0 08 44d+03:37:47.112 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 44d+03:37:47.112 IDENTIFY DEVICE
c8 00 08 10 20 01 e0 08 44d+03:37:47.111 READ DMA
ec 00 00 00 00 00 a0 08 44d+03:37:47.111 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 44d+03:37:47.111 SET FEATURES [Set transfer mode]
Error 3396 occurred at disk power-on lifetime: 1788 hours (74 days + 12 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
-- -- -- -- -- -- --
04 61 08 10 20 01 e0 Device Fault; Error: ABRT 8 sectors at LBA = 0x00012010 = 73744
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 10 20 01 e0 08 44d+03:37:47.111 READ DMA
ec 00 00 00 00 00 a0 08 44d+03:37:47.111 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 44d+03:37:47.111 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 44d+03:37:47.110 IDENTIFY DEVICE
c8 00 08 10 20 01 e0 08 44d+03:37:47.110 READ DMA
Error 3395 occurred at disk power-on lifetime: 1788 hours (74 days + 12 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
-- -- -- -- -- -- --
04 61 46 00 00 00 a0 Device Fault; Error: ABRT
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
ef 03 46 00 00 00 a0 08 44d+03:37:47.111 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 08 44d+03:37:47.110 IDENTIFY DEVICE
c8 00 08 10 20 01 e0 08 44d+03:37:47.110 READ DMA
ec 00 00 00 00 00 a0 08 44d+03:37:47.109 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 08 44d+03:37:47.109 SET FEATURES [Set transfer mode]
--------------------------------------- end ---------------------------------------------------
Raw_Read_Error_Rate:读取硬盘时出现的硬件读取出错率,不同厂家不一样
Reallocated_Sector_Ct:坏扇区被发现并且重新映射备用扇区,RAW_VALUE就是被映射扇区数
Reallocated_Event_Count:重映射操作次数
Spin_Retry_Count:硬盘第一次没转动,然后再次转动的次数,如果有升高说明机械故障或者供电原因
Current_Pending_Sector:当前被怀疑有坏扇区等待重新off-line验证的数量,如果验证失败就重新映射扇区
End-to-End_Error:传输数据的时候缓存里的数据和主控,硬盘无法相对应
Command_Timeout:硬盘工作中出现超时,一般是电源或者数据线问题
UDMA_CRC_Error_Count:
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.
嵌入式工具——smartmontools相关推荐
- 嵌入式工具 | 几款实用的C/C++在线编译器
关注+星标公众号,不错过精彩内容 作者 | strongerHuang 微信公众号 | strongerHuang 作为程序员,使用编译器是必备技能,但是从入门到放弃,基本上就是在开发环境安装.配置这 ...
- 硬盘检测工具Smartmontools安装、部署、使用
在服务器管理的实际环境中,硬盘是最容易出现问题及发生故障的硬件,而且硬盘中存储着大量重要的数据,万一出现故障所造成的损失也是无法估计的,轻则需要化费大量的时间与精力去做数据恢复,重则硬盘报废,里面重要 ...
- linux下的硬盘检测工具 Smartmontools
1.1 什么是Smartmontools? Smartmontools是一种硬盘检测工具,通过控制和管理硬盘的SMART(Self Monitoring Analysis and Reporting ...
- 嵌入式工具移植之-wireless tools工具的移植和使用
前言:本文主要讲解了wirless tools的概念和如何移植wireless tools,以及如何使用wireless tools中的工具设置无线网络. 一.wireless tools概念 Wir ...
- linux 版本二进制编辑工具bless(嵌入式工具集合)
1.ubuntu安装二进制编辑工具替代UltraEdit软件,安装很简单 直接:sudo apt-get install bless 2.软件界面 3.软件使用 1)可以直接删除二进制文件中 ...
- linux smartctl 命令,Linux下硬盘检测工具smartmontools(smartctl)使用方法
安装: yum install smartmontools help: #smartctl –help smartctl version 5.38 [i686-redhat-linux-gnu] Co ...
- 嵌入式工具库 -- 脱机离线下载器(STM32F103C8T6)
目录 前言 脱机下载器资料获取 关注微信公众号 -- 星之援工作室 发送关键字(脱机下载器) 原理图: PCB 3D效果 正面 反面 实物图 主要代码展示 main.c 演示视频 USB文件(自己使用 ...
- 硬盘检测工具+linux,linux硬盘检测工具:Smartmontools使用指南
linux硬盘检测工具:Smartmontools使用指南 来源:互联网 作者:佚名 时间:2013-04-10 13:32 在服务器管理的实际环境中,硬盘是最容易出现问题及发生故障的硬件,而且硬盘中 ...
- 嵌入式开发用到的一些工具
关注+星标公众号,不错过精彩内容 作者 | strongerHuang 微信公众号 | strongerHuang 为了方便大家平时公交.地铁.外出办事也能用手机回顾查看文章,我精心整理了该专栏教程: ...
- 十四种Java开发工具点评
图形界面的java开发工具 JDK Borland 的JBuilder ,JDeveloper,VisualAge for Java jcreater. 常见的十五种Java开发工具的特点 1.JDK ...
最新文章
- android studio导入aar包,AndroidStudio导入本地aar文件
- 浙师大dns服务器地址
- Linux下command not found(以CentOS下没有telnet为例)
- 检测html输入框是否一样,如何测试一个输入框
- VS2010 工具箱组件添加重复
- 【DP】LeetCode 64. Minimum Path Sum
- Python中神奇的迭代器和生成器
- API接口调用并处理返回的json数据
- Elasticsearch 之(6)kibana嵌套聚合,下钻分析,聚合分析
- 带软开启功能的MOS管电源开关电路!
- 华为HCIE证书含金量
- docker学习篇(二)---- 基础篇
- 亚马逊高管为何频繁离职
- access select max_超级玛丽2号Max:挑选重疾险需要避开这3大误区!
- ns2利用god获取邻居列表
- 小白科研笔记:理解PointConv和对此类方法感想
- Office365 - Stream提示无法upload的原因
- python输出星号_python中星号
- 一键导出资料(图片和PDF)到ZIP
- 实验二、80C51汇编语言编程实验:编写3字节二进制加法子程序,并用主程序调用不同的加数和被加数来检测该子程序的正确性。需考虑有进位和无进位情况。
热门文章
- 【原创】大叔算法分享(6)机器学习概览
- 背水一战 Windows 10 (60) - 控件(媒体类): Pointer 涂鸦板, InkCanvas 涂鸦板
- 【JAVA错误笔记】 - Unable add facets project AnnotationWebService CXF 2-x Web Services
- python解析XML:之二 (ElementTree)
- 电脑锁屏按什么键解锁_锁屏键除了锁屏还能干什么?这 6 个 App 带你玩转手机实体键...
- Ambari——大数据平台的搭建利器之进阶篇[配置spark]
- EXCHANGE清除可恢复项目文件夹(就地电子数据展示和保留)
- 进程线程(java.lang.Thread)详解
- Python--文件修改
- 网络应用瑞士军刀——Zentyal(4 常用命令)