Hirdetés

Új hozzászólás Aktív témák

  • kgymac

    őstag

    válasz SutPet #18290 üzenetére

    Próbáld így (persze sudo -i után):
    smartctl -S on -s on -d sat /dev/sda
    smartctl -iA -d sat /dev/sda

    vagy sdb a második, stb. sdu-tól a külső usb-s hdd-k, ls -l /dev/sd? adja a listát.
    ciklusban is végrahajthatod for-ral, de ez inkább a shell script topic témája.
    egrep a te programod, meg kell adni egy listába, hogy milyen illeszkedő sorokat akarsz látni. pl
    smartctl -iA -d sat /dev/sda | egrep 'Reallocated|Pending|Uncorrectable|Model|Serial|Start_St|_Up|On|Celsi|Error_Rate'
    Én ilyen leveleket kapok reggelente (9 hdd-ről):

    HDD SMART OK
    AVG HDD Temperature:  33.6667  Celsius

    DISK1

    Model Family:     Toshiba 3.5" DT01ACA... Desktop HDD
    Device Model:     TOSHIBA DT01ACA300
    Serial Number:    XXXXXXXX
      1 Raw_Read_Error_Rate                                              0x000b   100   100   016    Pre-fail  Always       -       0
      3 Spin_Up_Time                                                     0x0007   134   134   024    Pre-fail  Always       -       426 (Average 427)
      4 Start_Stop_Count                                                 0x0012   100   100   000    Old_age   Always       -       61
      5 Reallocated_Sector_Ct                                            0x0033   100   100   005    Pre-fail  Always       -       0
      7 Seek_Error_Rate                                                  0x000b   100   100   067    Pre-fail  Always       -       0
      9 Power_On_Hours                                                   0x0012   098   098   000    Old_age   Always       -       17260
    194 Temperature_Celsius                                              0x0002   171   171   000    Old_age   Always       -       35 (Min/Max 16/41)
    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

    DISK2

    Device Model:     HGST HTS541010B7E610
    Serial Number:    XXXXXXXXXXX
      1 Raw_Read_Error_Rate                                              0x002f   200   200   051    Pre-fail  Always       -       0
      3 Spin_Up_Time                                                     0x0027   191   189   021    Pre-fail  Always       -       1450
      4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       26
      5 Reallocated_Sector_Ct                                            0x0033   200   200   140    Pre-fail  Always       -       0
      7 Seek_Error_Rate                                                  0x002e   200   200   000    Old_age   Always       -       0
      9 Power_On_Hours                                                   0x0032   083   083   000    Old_age   Always       -       12854
    194 Temperature_Celsius                                              0x0022   114   106   000    Old_age   Always       -       29
    196 Reallocated_Event_Count                                          0x0032   200   200   000    Old_age   Always       -       0
    197 Current_Pending_Sector                                           0x0032   200   200   000    Old_age   Always       -       0
    198 Offline_Uncorrectable                                            0x0030   100   253   000    Old_age   Offline      -       0
    200 Multi_Zone_Error_Rate                                            0x0008   100   253   000    Old_age   Offline      -       0

    stb.

Új hozzászólás Aktív témák