linux系统查看硬盘的使用时间:
7 d5 ^' |$ X; {$ D, b" j( _Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
0 e; @. \+ f5 t: j+ R: R - Raw_Read_Error_Rate
; K, ~, N$ d: { - Spin_Up_Time
* o" M1 a7 z7 E0 t) y - Start_Stop_Count
0 I# ]. \2 O% X7 y% f - Reallocated_Sector_Ct6 Q+ \# X1 q/ P ~. `
- Seek_Error_Rate: L7 X+ Q# [, I
- Power_On_Hours
3 m+ O& N2 b7 l7 ]3 w0 E8 ]) m - Spin_Retry_Count, V: {; A K9 d) ~( \3 r6 D
- Calibration_Retry_Count
+ W+ C9 H9 l" v3 w# P9 M$ P - Power_Cycle_Count
0 `. Q. v7 }1 j( M - G-Sense_Error_RatePower-Off_Retract_Count4 l# \2 k3 L. }, O2 W9 P& o8 ?' Y# y9 z
- Load_Cycle_Count
5 C3 L5 [, b- ], v' W - Temperature_Celsius
! q) b$ |# k. T5 B6 M b! n; }/ O7 p - Reallocated_Event_Count
, I0 n1 y# {; A! A( q Z9 v - Current_Pending_Sector: C, ?$ e+ L9 F3 o9 l0 C/ n( S
- Offline_Uncorrectable9 ]9 m. i: h' `
- UDMA_CRC_Error_Count
" X1 O: a3 `, _! _: v) ] - Multi_Zone_Error_Rate
/ [! s9 e) j- N8 c
复制代码- Power_On_Hours:是硬盘使用的总时间" a J' m1 |3 V, d. {0 o) v
- Load_Cycle_Count:是加载循环计数! h5 R0 ^$ w/ T: D; v
- Temperature_Celsius:硬盘的英文温度6 g! i! E# T* c4 l" ]3 l/ m: g
- 直接输入下列命令,查询你所关心的:
; I! v3 w' W4 o) q" k+ L. c8 U# z - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 ; W b7 i0 c7 W& t6 o6 w
) p% L' s0 h. l |