linux系统查看硬盘的使用时间:$ \3 K. X! N3 r
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
, k" A. x6 o) e. F4 G- J" B9 O9 k - Raw_Read_Error_Rate
! ` L6 Y! O+ f7 q4 `, ? - Spin_Up_Time+ X2 Z+ [0 @8 L h5 q
- Start_Stop_Count4 M3 ]4 D" `6 ^) ~$ N+ o0 L% W% }
- Reallocated_Sector_Ct
5 w* g0 Z4 }+ h; ]6 x/ p - Seek_Error_Rate
) d; H- K1 E, d - Power_On_Hours
3 E6 f& c! q5 X, _* |2 m/ J) N - Spin_Retry_Count
/ M6 T* Y `+ O - Calibration_Retry_Count
/ ] ]! P' z `& j' B7 | - Power_Cycle_Count
7 R, L( j; G, V7 w* K. C0 ^ I - G-Sense_Error_RatePower-Off_Retract_Count
+ d0 y' g ~; D3 n* N - Load_Cycle_Count
3 p0 k: L2 V4 B/ b5 _, d - Temperature_Celsius o8 y; T& A/ Y5 F6 T# ~
- Reallocated_Event_Count
& _9 m7 G% `# P5 N" U. V - Current_Pending_Sector9 u3 O( j) p, B5 c% ]4 B
- Offline_Uncorrectable
6 ~9 D4 o* C" e$ T- Q, S* J6 b - UDMA_CRC_Error_Count
( m; S- u1 U8 |. {( T9 d3 T1 V - Multi_Zone_Error_Rate
' T3 O* W8 C, M# t
复制代码- Power_On_Hours:是硬盘使用的总时间
) z3 Z" [0 a8 [4 ` - Load_Cycle_Count:是加载循环计数
3 a( r! c( ?5 I" e8 T - Temperature_Celsius:硬盘的英文温度
& M4 z5 E c& \5 r - 直接输入下列命令,查询你所关心的:
0 G4 q' Z0 k) Y# z - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
6 m1 ^6 t. b8 G& q; x& g" b9 P, C1 R. A. t* E
|