linux系统查看硬盘的使用时间:# X5 q1 y) s2 b0 b
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
/ Z0 j) C6 R9 t' f+ Z( I& o, w - Raw_Read_Error_Rate
' Z1 V* U$ T7 { - Spin_Up_Time) c* j T+ q3 z" U1 K6 o
- Start_Stop_Count
2 G+ i# V3 W2 w4 M, L - Reallocated_Sector_Ct
2 \3 n; G$ b+ G. h/ P: R6 }9 w3 W - Seek_Error_Rate
3 ~# Z* u- s, W2 G - Power_On_Hours# z' r: L; A/ F" y+ F" V
- Spin_Retry_Count, @5 S- o% e1 t
- Calibration_Retry_Count
9 @9 H; H* Z0 ~$ P1 p9 i% `1 O - Power_Cycle_Count
4 B" R9 j4 L+ s3 [6 m U6 O6 f) e2 p - G-Sense_Error_RatePower-Off_Retract_Count
0 `) c! R9 ^& K0 d8 v - Load_Cycle_Count! Z0 _% Z, i Q8 x: Q# J
- Temperature_Celsius/ _: S: t3 r- w0 a( t7 b
- Reallocated_Event_Count7 x/ }! q1 ~2 y) p1 \
- Current_Pending_Sector
' o2 d; M& S! u - Offline_Uncorrectable
: e6 \+ [: w8 z, V - UDMA_CRC_Error_Count' F- ~( Q* T7 k3 n
- Multi_Zone_Error_Rate
/ w3 C3 ? F- W
复制代码- Power_On_Hours:是硬盘使用的总时间7 U- I5 R' _- L+ u% ?1 K
- Load_Cycle_Count:是加载循环计数1 s u" G- i4 O6 H
- Temperature_Celsius:硬盘的英文温度
- p0 L! Z1 j. j) J/ f) C; J5 ?0 ? - 直接输入下列命令,查询你所关心的:
7 v5 q7 V/ Y, q% P/ t! e7 M) d0 X - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 % I+ h9 e, I9 H: b. C
) D6 j9 y' O7 P& h' ? |