linux系统查看硬盘的使用时间:
5 Q% W6 t' {$ x- i$ mCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
: O, O- o4 g- N- C% c% g: u( ~; M - Raw_Read_Error_Rate c- r. d4 _6 |7 F5 Y. y! Y- l/ W
- Spin_Up_Time
+ B/ S' Q5 E9 z; b( {4 B - Start_Stop_Count
3 y# f9 p+ l" b" b5 F- {. K2 f+ u - Reallocated_Sector_Ct
1 A: Y7 ~% ]3 e. e' ] - Seek_Error_Rate, i- a4 n0 S5 b! `
- Power_On_Hours
! q/ L" E& g7 @5 x+ l; O - Spin_Retry_Count: x- i& J% r4 ]
- Calibration_Retry_Count! p! C+ h3 v8 N! |& h$ L9 q" V, s2 o) \
- Power_Cycle_Count- z. R- w8 e$ k1 l$ E
- G-Sense_Error_RatePower-Off_Retract_Count0 M; @5 Q2 }' q1 o
- Load_Cycle_Count
$ M% q& u; l+ F, w - Temperature_Celsius
; J, ~! g: P0 Z7 [ - Reallocated_Event_Count' j# |8 I6 {9 S1 Y8 `! w
- Current_Pending_Sector
+ z( ^, n f5 b9 u! p. q; ? - Offline_Uncorrectable
: Z6 T# t4 |6 ]* N5 W% | - UDMA_CRC_Error_Count
2 t, O* M% K& A3 F. W( @& x4 m4 B8 A - Multi_Zone_Error_Rate
, i, J: Y- W+ M2 f' l
复制代码- Power_On_Hours:是硬盘使用的总时间
6 ?0 ~8 _+ c7 O+ _7 V - Load_Cycle_Count:是加载循环计数
% e7 N. ~8 g# ]& t8 B - Temperature_Celsius:硬盘的英文温度, V) V3 `1 {* C) o$ U0 \3 q
- 直接输入下列命令,查询你所关心的:
( h r8 }& P* S, B - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
* {# J* H' g' I. ]; f
, h8 Z2 M6 T0 E |