linux系统查看硬盘的使用时间:+ z7 t$ m) S, ?" K6 y9 U, X
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
# p& s! ?- n" o0 K3 W' g! b& M - Raw_Read_Error_Rate" t0 v1 C6 Y* G7 B
- Spin_Up_Time8 T0 f5 h0 Z# n+ b' h* n5 M$ ] i
- Start_Stop_Count
; I) f/ l7 _$ B4 \8 q - Reallocated_Sector_Ct+ a8 d' _9 w; l0 ^; _8 A$ T G% ~0 _
- Seek_Error_Rate
1 c$ N, n' [& j$ x+ C3 j - Power_On_Hours8 I# e. d7 c+ ?3 K1 l; L; q% n' V! t
- Spin_Retry_Count, }; R. j) v; U1 K3 G9 \' J9 d
- Calibration_Retry_Count3 j C' o6 C7 ~4 b
- Power_Cycle_Count3 J, E% O* s, G( K. \ J' M
- G-Sense_Error_RatePower-Off_Retract_Count
$ o% W% ]3 \+ k! N3 |5 G5 T$ H) Z - Load_Cycle_Count
* S. a5 `3 k. W: `. V4 E& r - Temperature_Celsius* X9 V" S7 p- Z; ~8 d
- Reallocated_Event_Count
* c8 ~+ X6 ^5 K5 R9 u: d - Current_Pending_Sector
5 K% g: h0 B8 R1 F p$ r - Offline_Uncorrectable
, _2 u7 l2 }8 U* a* b - UDMA_CRC_Error_Count
8 @% `7 Y* b3 i! e5 w! I - Multi_Zone_Error_Rate
4 ~. a! c* s+ K/ I8 S
复制代码- Power_On_Hours:是硬盘使用的总时间
" s1 W( V6 D+ ^/ G# s - Load_Cycle_Count:是加载循环计数
$ k ~. M+ F) {/ ^, E5 q - Temperature_Celsius:硬盘的英文温度
# m' \2 J$ J8 z9 B6 m3 X! N - 直接输入下列命令,查询你所关心的:
$ [, ?( }" l% Z4 T0 ^8 p - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 ( T* R) R, W# H0 T3 a. }
6 Q" M. p. P& ~, }. s+ F |