linux系统查看硬盘的使用时间:
+ @3 h1 J% [. N/ _4 I: @9 yCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME+ V" N; R2 z, Q8 @ U! y
- Raw_Read_Error_Rate
, o6 e# @5 T( @4 W - Spin_Up_Time
! O3 C1 \. Y' X& i7 J$ ~. I! D+ b2 ? - Start_Stop_Count5 S, ?- y/ d9 S- [7 ?2 l4 @
- Reallocated_Sector_Ct: Z' R: V S. Z ~4 T: k5 A
- Seek_Error_Rate
' g, l+ f3 R% [# r1 G3 v - Power_On_Hours
! P9 b1 Y$ I1 R! c. c - Spin_Retry_Count6 E% o+ J$ k: O& g9 | B2 z
- Calibration_Retry_Count7 |; X' T! m/ e
- Power_Cycle_Count6 F' Z k3 U0 `% n
- G-Sense_Error_RatePower-Off_Retract_Count
0 S6 T+ ~5 ^3 o7 B1 B8 ^ - Load_Cycle_Count) q9 V' Y& f @: b
- Temperature_Celsius7 u/ q! j7 }, K9 F5 b; O
- Reallocated_Event_Count
! C0 s- @& B A* @) \ - Current_Pending_Sector
$ l9 J2 j. j) } - Offline_Uncorrectable! o4 H" t J8 Z5 H( {
- UDMA_CRC_Error_Count5 @( x( ^* R" i8 q
- Multi_Zone_Error_Rate
/ k- B8 m: N3 P$ A
复制代码- Power_On_Hours:是硬盘使用的总时间
2 U# v$ N$ `! Z, G7 |$ q5 Y" ~ - Load_Cycle_Count:是加载循环计数
: c; B/ R+ _$ x5 L8 S+ C - Temperature_Celsius:硬盘的英文温度
5 I5 @9 F; x+ A2 z0 X3 z$ x X2 k - 直接输入下列命令,查询你所关心的:1 H2 b9 |( Z" F+ S- ^8 g
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 - z# P% [5 g& T/ H
7 c$ s& P# H% e8 x2 \ |