linux系统查看硬盘的使用时间:# E5 S" l" u4 i/ f; G% ]7 i" Q, C
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME+ p, G: @ y* I
- Raw_Read_Error_Rate
! s6 m. s3 |- g - Spin_Up_Time; C, s$ y, Z5 s; U: r' k) F
- Start_Stop_Count: \! I. g# ^" k: f% Z
- Reallocated_Sector_Ct( z h( h- T9 }3 T( h
- Seek_Error_Rate& J, W' D8 [; _2 O& T+ p
- Power_On_Hours. j4 U( I# C3 {
- Spin_Retry_Count; F% }# E4 D, `9 |4 ]' Z: N9 @
- Calibration_Retry_Count' H' A* [" d# ]3 g, F% f5 N
- Power_Cycle_Count
+ O# Z% f) J6 Y1 c) Z% l - G-Sense_Error_RatePower-Off_Retract_Count
1 G& V4 U) L/ o0 J - Load_Cycle_Count
6 P5 n! ^$ c0 b5 j' b9 V6 h1 c - Temperature_Celsius
) u0 z i q( B$ h0 C - Reallocated_Event_Count
' U( y1 K7 j' I# h+ h& U - Current_Pending_Sector N. q D0 @0 A i+ T1 v
- Offline_Uncorrectable4 o$ j' D i s) D4 ^! j
- UDMA_CRC_Error_Count
, ]& K3 R8 l! ^" N - Multi_Zone_Error_Rate$ x, B" q- o, ~, L# f
复制代码- Power_On_Hours:是硬盘使用的总时间: j: p, E6 j, c. Q- p( ?+ w
- Load_Cycle_Count:是加载循环计数
* u$ g/ w. e8 r+ d' t - Temperature_Celsius:硬盘的英文温度
. q4 h1 Y2 l2 p% ~ - 直接输入下列命令,查询你所关心的:, B" H% I3 c0 q# N+ Z
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 * O" B- S2 G( _9 S+ ?: m
/ L& Z9 D0 M3 I: ] h6 l( _2 N |