linux系统查看硬盘的使用时间:' f: ?+ D2 a3 h" v1 C: d
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
4 l7 E, @5 ?7 q$ q4 S - Raw_Read_Error_Rate
2 ^1 {8 ^9 I: Z) z; G* ? - Spin_Up_Time
3 l0 B& r- n+ k. P1 F/ p* C - Start_Stop_Count
# P0 l% `7 N/ P. ?- P - Reallocated_Sector_Ct# q; v8 V8 G& w ?1 M. V
- Seek_Error_Rate
; [3 o. j. \, C& j* a4 d+ I/ H - Power_On_Hours, G- l& l. C% q6 c9 H) \; Q
- Spin_Retry_Count9 j1 i, f% k3 ^' m
- Calibration_Retry_Count
' V# ]3 {: ^% Y! \6 g* h+ W2 w - Power_Cycle_Count+ N2 U3 A" V" o! J4 W+ i
- G-Sense_Error_RatePower-Off_Retract_Count0 ^1 p% I1 A, g! s4 a/ y
- Load_Cycle_Count3 V' W0 j7 \% y& N! O
- Temperature_Celsius
3 w! V* G2 Q, r( P3 ?7 W. ^ - Reallocated_Event_Count
! M8 z8 O/ i# y* S5 f+ ]4 X - Current_Pending_Sector& f% [( L* c; }* l- B
- Offline_Uncorrectable
$ N* ]0 c0 \ Q1 A$ q - UDMA_CRC_Error_Count
; b& {5 H# m% {* u( ~" r! M% o! V- @ - Multi_Zone_Error_Rate) @' h! E' W% X2 {6 Z9 h
复制代码- Power_On_Hours:是硬盘使用的总时间' L0 v: r2 Q! ^2 C/ u& x
- Load_Cycle_Count:是加载循环计数7 [: M- T4 i$ O$ _
- Temperature_Celsius:硬盘的英文温度5 j* `' l6 I) \8 m/ I+ K/ C
- 直接输入下列命令,查询你所关心的:- z0 W6 h; `8 S) t+ x2 A6 O$ v
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
9 c: F }+ G$ Y+ C5 w* z$ Z' S
* \# K8 p3 j* ^% F1 R/ X9 B1 g( ^% z |