linux系统查看硬盘的使用时间:
6 R; \8 Y" R! {) S; s; v) D& GCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME: S. U V# ?$ ]6 @
- Raw_Read_Error_Rate5 j' S3 E1 u( E+ Z% [* o; B# C
- Spin_Up_Time
6 I% N$ V5 F, n: r8 \ - Start_Stop_Count5 Q+ U6 ^6 ]( u# e! W2 ?+ W6 }" N
- Reallocated_Sector_Ct5 C# Y& r/ |1 A* D. m: D8 K
- Seek_Error_Rate
& C- o7 p, P9 Z8 B- A - Power_On_Hours- D' C8 m A; K+ V/ J
- Spin_Retry_Count
- B: b. v% N; T, r; r' G/ Q - Calibration_Retry_Count N ]/ G9 z; S0 o: w" b
- Power_Cycle_Count
3 N9 G3 C; S/ ?$ V; F# } - G-Sense_Error_RatePower-Off_Retract_Count
$ O) c; S R9 [7 {+ K5 ~5 s* Y - Load_Cycle_Count9 q" Q3 ?8 H( P3 z( v8 L, H
- Temperature_Celsius: s* J1 k; g- z3 p3 i) z
- Reallocated_Event_Count
c9 ?1 N# w$ k8 n. k7 ?# [* o - Current_Pending_Sector' K# A& a$ Z6 Q- ^
- Offline_Uncorrectable+ x' Z8 i* G1 P+ t
- UDMA_CRC_Error_Count
; o" U, a% j- u+ `. v - Multi_Zone_Error_Rate! v: e& L8 [+ x: o, L
复制代码- Power_On_Hours:是硬盘使用的总时间9 D8 Y1 q6 H. Y0 W3 b0 d8 z4 Y' R
- Load_Cycle_Count:是加载循环计数
! O) G/ i" e% f - Temperature_Celsius:硬盘的英文温度
: b% U5 h5 n) X- C+ M" k- ^ - 直接输入下列命令,查询你所关心的:- u* V1 I4 ]3 J. m! k
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
: ~, b$ Q c, l+ }- k; g. m$ q9 \* q
|