linux系统查看硬盘的使用时间:
! l3 E& o6 M6 F$ {Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
, `" |5 [0 R4 j9 q& N3 ~5 J& |5 E+ K3 u - Raw_Read_Error_Rate
4 d) y1 s) y6 z% o# L6 X - Spin_Up_Time
. `5 j$ j' Z+ @% ?: g* P - Start_Stop_Count1 e' w: m" H8 p" y; T
- Reallocated_Sector_Ct
4 i" g G5 k( B6 L% ?% d$ [0 P - Seek_Error_Rate* ?0 [! h9 `1 v. {
- Power_On_Hours$ I# L' f/ F; |! y: h
- Spin_Retry_Count
1 S* u6 Y" g5 U1 C- _! {6 I - Calibration_Retry_Count
% B8 Y4 }2 H4 P N0 K4 J - Power_Cycle_Count
! f0 C' s& U* e6 g) M; U - G-Sense_Error_RatePower-Off_Retract_Count
/ p& Y+ x. ?8 J; e: U" r - Load_Cycle_Count
7 _" k1 U4 T- o2 j - Temperature_Celsius; y0 Z# l2 V, x' j5 K/ ]
- Reallocated_Event_Count- Z0 U4 J5 i) u+ e
- Current_Pending_Sector3 p+ _! O6 Z1 e- l6 x$ e
- Offline_Uncorrectable
& n2 V9 [8 L$ l8 o) C3 T - UDMA_CRC_Error_Count5 D$ D9 J6 b$ m/ X, ^( x: g
- Multi_Zone_Error_Rate8 M8 }8 v2 H4 x! y, ] q, K
复制代码- Power_On_Hours:是硬盘使用的总时间
& x2 ^2 W8 p* G0 e; }/ S/ O - Load_Cycle_Count:是加载循环计数' d6 u( R1 c# p- [3 c
- Temperature_Celsius:硬盘的英文温度# `& p9 `. F% C- [- s0 t. w
- 直接输入下列命令,查询你所关心的:
$ F1 h3 H3 C d+ S2 p* B - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
$ N6 m9 _' W* d0 y- [
% I- |# d; E" f$ j2 }* M h |