linux系统查看硬盘的使用时间:
+ Z9 Y, v# Q9 ECentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
* m% O! v9 T9 d+ B - Raw_Read_Error_Rate
& [9 a% M# j* e( _" g - Spin_Up_Time
; v9 ], V5 |2 T( B! i - Start_Stop_Count+ `& y9 B+ F8 h1 l0 W* ~1 K3 _
- Reallocated_Sector_Ct. W; z3 R/ A0 A) B5 l# s- g! R z
- Seek_Error_Rate
6 b% u, Z. {( N$ Q/ s - Power_On_Hours/ y5 B% {9 ?2 B! n
- Spin_Retry_Count1 \( G1 ?2 D$ Y$ S% F
- Calibration_Retry_Count
( x( _- q3 J9 A2 g8 E. h- U - Power_Cycle_Count
2 c I% w& {+ c3 \5 I, W$ B - G-Sense_Error_RatePower-Off_Retract_Count
h8 h! n' i6 D5 V4 r$ f - Load_Cycle_Count
; z* P0 w2 Z- G* y3 F( _; a7 n+ C - Temperature_Celsius- j* S. S+ Z$ d5 C1 r) E' E/ g1 h
- Reallocated_Event_Count1 X4 m4 z8 l! ?) O& U! y5 q
- Current_Pending_Sector ~) \, l: g/ N$ e/ w. y+ n
- Offline_Uncorrectable
4 K7 M5 Q9 s9 a% U* r - UDMA_CRC_Error_Count
) y6 Y. d- Q& d2 P; m, p. X! V - Multi_Zone_Error_Rate% t9 {9 ^6 `6 Y6 O2 r7 |
复制代码- Power_On_Hours:是硬盘使用的总时间
( M2 p" F5 Y( S% H/ W$ [' X3 y9 @ - Load_Cycle_Count:是加载循环计数$ K; W0 s0 m2 W! d6 `; v
- Temperature_Celsius:硬盘的英文温度
$ `; ?0 I7 X2 y; k& J) K! o$ | - 直接输入下列命令,查询你所关心的:& v6 Y5 R3 g* J" D7 @& u
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
7 s' f8 l) A" `7 h. @$ F* ` J2 x) ]# M# |2 h( N1 d3 ]+ K
|