linux系统查看硬盘的使用时间:
7 k4 ?# B) c6 ?! }! tCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
. V1 m7 u6 B7 _% c- k( | - Raw_Read_Error_Rate3 [9 `/ m9 y. ]8 m1 N M
- Spin_Up_Time* E3 h. A$ @1 X7 S$ g, X5 `
- Start_Stop_Count3 H/ E' l' c& ]! G3 r0 `
- Reallocated_Sector_Ct
0 D! T2 |6 {1 \0 M - Seek_Error_Rate7 A9 t q8 w% n7 h3 i$ W( @
- Power_On_Hours7 a G s% L4 E1 Q' R: b9 b
- Spin_Retry_Count' {% e4 P( f. L; E
- Calibration_Retry_Count
+ [' Q0 U( @* a - Power_Cycle_Count
' f6 T$ I; B9 | - G-Sense_Error_RatePower-Off_Retract_Count3 `# W; G3 D* K
- Load_Cycle_Count
+ `6 }: s7 t# a6 O5 b3 o- o - Temperature_Celsius4 e$ t* i3 ]+ l- R1 m
- Reallocated_Event_Count
/ v/ m7 C ~ `, s - Current_Pending_Sector: _4 _2 A3 Q- X @5 M0 [
- Offline_Uncorrectable7 B8 _1 W- A. _2 O- a
- UDMA_CRC_Error_Count
+ G. V" ~/ F& i' L& n0 e/ ^2 t+ e - Multi_Zone_Error_Rate
, H* o0 w" X5 O6 p' i4 [ ~
复制代码- Power_On_Hours:是硬盘使用的总时间3 w, i5 g+ H* d3 U- v5 l. G# h
- Load_Cycle_Count:是加载循环计数
' ]1 ]1 i/ P/ F - Temperature_Celsius:硬盘的英文温度
# T* u1 [- O, P! Z - 直接输入下列命令,查询你所关心的:
) p- \, \+ W1 l. Q - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 . y: V+ L4 V* H2 y/ d# ?. v
0 c1 z" a% s0 ]* ^ |