linux系统查看硬盘的使用时间:
! w) |0 J) p6 a6 f6 pCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
/ G' U2 M5 y3 \6 q6 Q - Raw_Read_Error_Rate0 Z' r8 V* c- t6 A9 O: x: Z
- Spin_Up_Time, h- x8 I$ x2 \4 \( t) t
- Start_Stop_Count7 t% r( f9 c( I( Q
- Reallocated_Sector_Ct% C, a, N+ N7 k$ g5 S5 \( }
- Seek_Error_Rate
, w( c/ Q4 T, z9 V! a - Power_On_Hours
! e* g: X- P, {- r( x) N. y - Spin_Retry_Count
# S8 u3 y( L/ P7 X; {. ` - Calibration_Retry_Count
_0 F( C5 I; D - Power_Cycle_Count
+ W! \' m, h6 U9 C - G-Sense_Error_RatePower-Off_Retract_Count
' Y# }- H4 o+ f - Load_Cycle_Count
0 J5 O- S3 Q% q' u; h: f) p - Temperature_Celsius
. w( Z8 ]( t* [+ @0 ?) y( c) w - Reallocated_Event_Count, [ Z, o* H$ w% h
- Current_Pending_Sector
2 D6 F5 X" ^' Z5 r4 N - Offline_Uncorrectable
5 J' @" F2 h* Z, q6 M8 C - UDMA_CRC_Error_Count3 M& g7 W* [7 p) @7 A3 h) L) l
- Multi_Zone_Error_Rate' O8 m( k0 A. X. m
复制代码- Power_On_Hours:是硬盘使用的总时间( I/ o) b' ?9 y2 s6 [* e: ]
- Load_Cycle_Count:是加载循环计数
) B9 X3 [9 N( m) n/ J' R - Temperature_Celsius:硬盘的英文温度, S- t9 ?% i N7 P4 Y, Y% ^
- 直接输入下列命令,查询你所关心的:
: r6 ~1 v, E8 O - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
- t* U1 J5 ?3 j- m; p1 U
' [4 w$ |, S6 m* R |