linux系统查看硬盘的使用时间:. V3 |0 K! p: i( \# d8 \8 x
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME5 g% Y; w5 W4 g- l/ {
- Raw_Read_Error_Rate
; d# H4 d/ t1 ?" e' D - Spin_Up_Time
. y; b4 L- m+ r4 P4 I( {1 U - Start_Stop_Count5 Y5 g' W9 M3 V6 s" W) {/ E
- Reallocated_Sector_Ct O/ c5 S- p9 m% U" `4 |( F) Q; I
- Seek_Error_Rate
4 p- `6 ^1 H* v" M, v7 e7 B - Power_On_Hours9 D {- O4 n j
- Spin_Retry_Count+ e9 e2 M5 d; M1 V% H9 P; `
- Calibration_Retry_Count
3 ^8 p0 f' h1 M; X1 C2 { - Power_Cycle_Count
0 n( p% Y5 U0 q* t) U - G-Sense_Error_RatePower-Off_Retract_Count \+ J2 O9 j% ~: f5 W3 K
- Load_Cycle_Count
+ G! }7 x6 B# p; ^6 Q( } - Temperature_Celsius C& [5 U0 O& x4 K
- Reallocated_Event_Count! ?0 D+ r2 u4 s5 a2 q. M; `# k
- Current_Pending_Sector
, r4 t7 ?! ?( ~ - Offline_Uncorrectable
3 l% F1 L9 V3 p& j j U. { - UDMA_CRC_Error_Count
# y4 ~. C% a4 N0 z - Multi_Zone_Error_Rate# |; @( N5 ` C! ]
复制代码- Power_On_Hours:是硬盘使用的总时间, J ~0 L& f4 y# j$ ]
- Load_Cycle_Count:是加载循环计数% T9 _2 \9 C+ G+ W
- Temperature_Celsius:硬盘的英文温度: T. o3 `* m' f, c; y( h# Y
- 直接输入下列命令,查询你所关心的:
* n4 i% S& c% [. | - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
: n& W% d) A* I
6 p/ @6 K9 ~9 ]" j4 x, t) i |