linux系统查看硬盘的使用时间:
A! F7 W) h% \* |Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME: B4 L/ U, K, m2 @: |4 ~" a
- Raw_Read_Error_Rate
$ _# P1 g/ e# L# e8 D# y6 N" r - Spin_Up_Time
7 {! W$ b# i4 H - Start_Stop_Count9 M/ a* z9 G( u+ J+ R
- Reallocated_Sector_Ct" {* D; F' y% l2 C/ e- |7 E# E
- Seek_Error_Rate8 B0 ~& X' _6 {6 Y
- Power_On_Hours
. r1 A$ H1 c* W y3 k6 s% O - Spin_Retry_Count: U$ H& g6 @/ q# \
- Calibration_Retry_Count
, e0 N0 [2 e B6 a5 l - Power_Cycle_Count) U4 t2 U1 l8 ]8 [4 q; y
- G-Sense_Error_RatePower-Off_Retract_Count: f7 v k& n) g5 n" F, v
- Load_Cycle_Count
$ |: `: u6 s) \) [ u, ~ - Temperature_Celsius, W" u$ }! P+ Q
- Reallocated_Event_Count
5 A: C: G1 d0 c5 z6 @: ? - Current_Pending_Sector, j4 {& u+ d# P; Z6 ^7 \1 V+ I) L
- Offline_Uncorrectable8 Y) i3 R& z& j( h
- UDMA_CRC_Error_Count( |/ ~% j5 V( M& T. M: [/ @6 L
- Multi_Zone_Error_Rate
# |7 P5 f; b0 f5 \
复制代码- Power_On_Hours:是硬盘使用的总时间5 d5 g0 {0 k5 v5 t! `- z
- Load_Cycle_Count:是加载循环计数5 V% C: C$ V2 f8 _" c3 q
- Temperature_Celsius:硬盘的英文温度
' A8 u' t( [; l( O. `' O8 o - 直接输入下列命令,查询你所关心的:5 c& ], a" O1 k! z- x
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
p/ s0 c& Q5 ?0 u' n6 g$ T9 C' ~6 B
|