我的 Linux 硬盘距离报废还有多久?

我的 Linux 硬盘距离报废还有多久?

我想测试我的 openSUSE 12.2 硬盘 -

更新查看下面的一些结果

我已经安装了 SMART

您将如何开始测试?

注意:我可以运行一个单一的测试来运行整个驱动器吗?见下文

smartctl 或 smartd - 哪个命令可以在一个步骤中运行所有驱动器...?

linux-wyee:/home/martin # fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder, zusammen 976773168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb8fa3ecd

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1              63     8385929     4192933+  82  Linux Swap / Solaris
/dev/sda2         8385930     8594774      104422+  83  Linux
/dev/sda3         8594775     8803619      104422+  83  Linux
/dev/sda4   *     8803620   976768064   483982222+   5  Erweiterte
/dev/sda5         8803683    12996584     2096451   83  Linux
/dev/sda6        12996648    21382514     4192933+  83  Linux
/dev/sda7        21382578    42347339    10482381   83  Linux
/dev/sda8        42347403    63312164    10482381   83  Linux
/dev/sda9        63312228    84276989    10482381   83  Linux
/dev/sda10       84277053    88469954     2096451   83  Linux
/dev/sda11       88470018    96855884     4192933+  83  Linux
/dev/sda12       96855948   117820709    10482381   83  Linux
/dev/sda13      117821440   159766527    20972544   83  Linux
/dev/sda14      159768576   976766975   408499200   83  Linux


linux-wyee:/home/martin # smartctl -H -A /dev/sda1
smartctl 6.0 2012-10-10 r3643 [i686-linux-3.4.33-2.24-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===                                                                                                                                                        
SMART overall-health self-assessment test result: PASSED                                                                                                                                        



    SMART Attributes Data Structure revision number: 16                                                                                                                                             
    Vendor Specific SMART Attributes with Thresholds:                                                                                                                                               
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE                                                                                                
      1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0                                                                                                        
      2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
      3 Spin_Up_Time            0x0007   144   144   033    Pre-fail  Always       -       2
      4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       731
      5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
      8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
      9 Power_On_Hours          0x0012   091   091   000    Old_age   Always       -       4221
     10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       727
    191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
    192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       11
    193 Load_Cycle_Count        0x0012   060   060   000    Old_age   Always       -       404351
    194 Temperature_Celsius     0x0002   148   148   000    Old_age   Always       -       37 (Min/Max 6/51)
    196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
    197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
    223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

    linux-wyee:/home/martin # 
    linux-wyee:/home/martin # smartctl -H -A /dev/sda2

那么这说明了什么?

答案1

在整个驱动器上智能运行。据我所知,SMART 对特定分区没有任何意义,它测量整个磁盘的状态。请记住,即使您有多个分区,它们都位于同一个物理磁盘上。如果一个分区发生故障,则所有分区都会发生故障。

拥有多个分区可防止文件系统损坏。其中一个分区可能会丢失数据或损坏,而不会影响其他分区。SMART 不会查看文件系统或数据错误,而是衡量硬件健康状况的指标。

无论如何,运行smartctl -H /dev/sda1smartctl -H /dev/sda2smartctl -H /dev/sda都是等效的。至于解释结果,您的所有值似乎都没有达到或接近错误阈值,您的驱动器似乎处于非常良好的状态。请注意主要的 SMART 结果:

SMART overall-health self-assessment test result: PASSED

相关内容