linux系统查看硬盘的使用时间:
4 J6 b; W# i: ~+ ICentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME5 V! Y5 f# z& k0 D% L
- Raw_Read_Error_Rate, L, G" ~, b) n
- Spin_Up_Time
$ P D! J. ?8 j+ n1 @! Z8 J - Start_Stop_Count7 ]# N- ~2 F, O7 Q
- Reallocated_Sector_Ct* M3 C: S) l& d- s$ D) T
- Seek_Error_Rate( m" Q: ^6 y9 l1 E2 c
- Power_On_Hours+ w- j2 b4 k& L, x* i. I% H
- Spin_Retry_Count
1 j) q: \ V0 }9 V! V0 O2 j - Calibration_Retry_Count$ I- f8 C3 e& l/ }, K# _1 _) t
- Power_Cycle_Count6 z' _" R6 H! p1 f9 Q3 c9 |; e% Y
- G-Sense_Error_RatePower-Off_Retract_Count7 B V2 I& y, Q4 x1 p# q3 L5 B
- Load_Cycle_Count
- k# {' V2 I& ~/ }9 T5 y; M - Temperature_Celsius& u5 Z7 c( E5 M1 v& K# R3 U
- Reallocated_Event_Count, n- o0 A/ [8 ]9 x0 N% L1 Q
- Current_Pending_Sector
; p& _. r, p$ v9 R: W - Offline_Uncorrectable* ?6 B' i: ~ `
- UDMA_CRC_Error_Count' l3 B1 S8 v/ L6 F3 l: P
- Multi_Zone_Error_Rate
' m t6 j( d1 M- o) d# g0 o. C* y
复制代码- Power_On_Hours:是硬盘使用的总时间( {3 |, I$ I) g' Q
- Load_Cycle_Count:是加载循环计数
% y- D/ N x2 c3 i w, a - Temperature_Celsius:硬盘的英文温度
' Y. K- q' ^* M: R2 q3 d - 直接输入下列命令,查询你所关心的:
: B, ]' a: X0 `( y$ K6 r - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 p9 d3 F3 t# g' F. R @
3 {2 T7 @9 c3 ^5 p* p6 \5 ] |