linux系统查看硬盘的使用时间:4 I5 P3 V$ n1 i" b/ Y
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
* w$ p9 L% U [( d. z" @ \# T* [) L+ g - Raw_Read_Error_Rate2 e% {3 }0 f7 h Z1 b9 y
- Spin_Up_Time
6 ?7 h! R1 }/ f% k5 v - Start_Stop_Count$ `9 Z9 _: k8 f `( w
- Reallocated_Sector_Ct2 T6 f' j, V3 o4 N% ^
- Seek_Error_Rate
' {7 ^$ R0 n% \, P( j! c' o - Power_On_Hours g" R. S* @* ~: h8 \$ r: M
- Spin_Retry_Count
6 V$ A, `! L1 G* g8 b - Calibration_Retry_Count( R* U* K( z, G2 j; X' Q& }, n
- Power_Cycle_Count
& }0 L) K, K2 S; e( u8 n - G-Sense_Error_RatePower-Off_Retract_Count. Q6 m8 ?: `5 H9 i
- Load_Cycle_Count
% {$ T, D. j9 @$ }2 Z, p- N - Temperature_Celsius
" T; W P8 v( f/ P - Reallocated_Event_Count
& P# K: |1 D; k- s - Current_Pending_Sector0 i i4 `" B8 d
- Offline_Uncorrectable0 d/ O1 p/ t7 S6 \3 ~; n( \
- UDMA_CRC_Error_Count7 t K. p( H: Y1 j! L
- Multi_Zone_Error_Rate8 m* w; [3 N1 Z( I* o( c, x
复制代码- Power_On_Hours:是硬盘使用的总时间$ x$ Z* T9 Y5 r: |4 h) U7 v
- Load_Cycle_Count:是加载循环计数
+ }9 ^- K; B" K! ~: x. q - Temperature_Celsius:硬盘的英文温度
9 Q+ @, B9 |' G' m - 直接输入下列命令,查询你所关心的:
; o2 L; l! Q& r4 l9 F" S% l - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 $ V ]+ e+ ^& W# h
3 x$ Y1 P" k3 ?( B! Y |