linux系统查看硬盘的使用时间:- n8 T7 [' _+ y+ [
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME5 b A! f- R8 g, P: D0 P- t
- Raw_Read_Error_Rate; U& a4 a0 W) C- k, r' c, g
- Spin_Up_Time$ l+ f$ i- \' J! ^3 V' T1 r
- Start_Stop_Count
3 [+ Z* {; l. \ - Reallocated_Sector_Ct1 V; u1 S% z7 l6 u% g4 }: j
- Seek_Error_Rate7 p5 H/ ~3 z, r. r1 f9 F
- Power_On_Hours* X( B5 u. O3 N, }2 O
- Spin_Retry_Count/ `% p% W9 x& m) R) Z! d& D
- Calibration_Retry_Count7 U* \8 `& C0 j. d: _
- Power_Cycle_Count
( ^9 Z9 @ g% G- h; z E; V3 | - G-Sense_Error_RatePower-Off_Retract_Count* W( Y* K; ]% C
- Load_Cycle_Count
5 @! d: {6 P2 w) V - Temperature_Celsius
7 O) ^$ [1 S% R' O- A - Reallocated_Event_Count6 `4 }! Q" q5 ^6 B
- Current_Pending_Sector
4 D9 p2 }! ~- F* e8 d+ S. |% c - Offline_Uncorrectable
0 x% J% y6 J4 l/ G- A - UDMA_CRC_Error_Count0 @7 w k2 P0 t
- Multi_Zone_Error_Rate: S7 F7 ]+ h: c. H% o
复制代码- Power_On_Hours:是硬盘使用的总时间4 {$ E, [ V8 ~9 R/ }. ?4 a$ s
- Load_Cycle_Count:是加载循环计数
. H T; }9 m$ I& W1 i3 c' U - Temperature_Celsius:硬盘的英文温度1 s4 M6 y$ _0 A
- 直接输入下列命令,查询你所关心的:+ A; n( ~$ s b# t% S
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 % s5 ]" g8 K2 O
1 @$ ]5 Y9 I& A- [2 v* v4 M |