linux系统查看硬盘的使用时间:
3 C. Y4 D& n/ R6 O: R6 t" Z; ~Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
1 p! W d. D. U7 D6 F - Raw_Read_Error_Rate
7 ]% B! T/ o+ I/ l( ^( P8 s - Spin_Up_Time+ l# C7 |5 I8 N; \
- Start_Stop_Count6 |8 d- Y! r5 l
- Reallocated_Sector_Ct
7 W, v, O$ B x) P0 }, ~4 { - Seek_Error_Rate
9 z* m& \ w: O+ z - Power_On_Hours$ N$ Z$ [' M& U% `$ p1 T( j
- Spin_Retry_Count
$ n! ~ ^% U: J7 h4 z+ H3 h% ^ - Calibration_Retry_Count
2 u; L/ S: U% |+ `! }. o - Power_Cycle_Count/ @! }1 \( q9 N
- G-Sense_Error_RatePower-Off_Retract_Count
% J& m' {. W- @" J - Load_Cycle_Count4 ?& M' E& x9 P( ?, x3 A4 _. v
- Temperature_Celsius
6 j$ s2 n. z$ [) W# i- ] - Reallocated_Event_Count2 y. ^: N% T9 v9 [, X1 F) T
- Current_Pending_Sector8 z; b4 M2 |; `3 R$ h
- Offline_Uncorrectable
U5 L' N. [/ J. f4 U8 R# {0 F - UDMA_CRC_Error_Count% e8 s8 X4 v: ~* p- C4 i) O
- Multi_Zone_Error_Rate
# c5 u. j. n8 u3 D( q( L! c
复制代码- Power_On_Hours:是硬盘使用的总时间
9 d' I1 a( k* ?% ]# { - Load_Cycle_Count:是加载循环计数
! q$ ]/ _3 |" v( `7 h - Temperature_Celsius:硬盘的英文温度
, r7 I5 z$ y/ V4 {& c! `* R x - 直接输入下列命令,查询你所关心的:
. M4 g6 u) C" l; I! [/ E - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
6 b% F5 x3 @3 y1 ?0 l. c* _. x+ x$ Z7 K* o
|