Logiciel ou commande pour tester santé d'un disque bruyant

Quelle commande ou quel logiciel faut-il installer pour tester la santé d’un disque ?
C’est un Seagate 500Gb, qui fonctionne bien au niveau du travail que je lui demande de faire mais qui fait un fort bruit (régulier) au démarrage à froid, bruit qui ralentit pour cesser complètement au bout de 5 mn environ.
Vibration à exclure, tout vérifié de ce côté.
Pas non plus de problème de sauvegarde, tout est fait régulièrement.
Merci

Salut,

tu peux utiliser smartmontools

-> Documentation de SmartmonTools sur Ubuntu

2 J'aime

apt-get install smartmontools
smartctl -H /dev/sdx avec la lettre de ton HDD

Merci à vous deux.

smartctl -H /dev/sda
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright © 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

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

Qu’entend-t-il par ‘passé’, que c’est bon ?

oui mais backup tes data on ne sait jamais.

1 J'aime

Merci, mais comme déjà expliqué plus haut, j’ai toujours des sauvegardes récentes. je suis un des premiers à avoir fait un tuto de sauvegarde sur ce forum. :smirk:

Salut
Pour activer le test en tache de fond il faut dé-commenter ( retirer le #) la ligne start_smartd=yes dans le fichier /etc/default/smartmontools

cat /etc/default/smartmontools

# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# This is a POSIX shell fragment

# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_smart="/dev/hda /dev/hdb"

# uncomment to start smartd on system startup
start_smartd=yes

# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"

et installer le paquet smart-notifier pour avoir les infos sur la santé du disque.

1 J'aime

Merci Grantoubab, mais je ne suis pas un fou des processus automatiques, j’aime bien gérer moi-même, et quand ça me plait.
Maintenant, si ça ne gêne pas trop, si ça ne ralentit pas, pourquoi ne pas essayer.
j’attends ta réponse à ces questions.
pour l’instant, ce n’est pas possible car je suis en train de muter cette machine sous Stretch, et comme elle n’est pas archi nouvelle, c’est assez long.
Ce soir très tard, ptet !

La plupart des disques malades que j’ai eus entre les mains affichaient un résultat “PASSED”, c’est dire sa fiabilité.
Il vaut mieux vérifier directement les valeurs des attributs, les résultats des self-tests et les logs d’erreur, donc plutôt utiliser l’option -a (all = tout).

1 J'aime

Ça semble bon mais je ne sais pas comment placer un déroulant sur le forum, alors je colle tout :

ricardo@clone1:~$ sudo smartctl -a /dev/sda
[sudo] Mot de passe de ricardo : 
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST500DM002-1BD142
Serial Number:    W2AYV3MS
LU WWN Device Id: 5 000c50 06ad2b2fe
Firmware Version: KC45
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Jul 23 00:32:50 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

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

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (  600) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  78) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x303f) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   110   099   006    Pre-fail  Always       -       1658096
  3 Spin_Up_Time            0x0003   100   100   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       128
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   075   060   030    Pre-fail  Always       -       36771899
  9 Power_On_Hours          0x0032   084   084   000    Old_age   Always       -       14040
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       125
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   064   056   045    Old_age   Always       -       36 (Min/Max 23/36)
194 Temperature_Celsius     0x0022   036   044   000    Old_age   Always       -       36 (0 21 0 0 0)
195 Hardware_ECC_Recovered  0x001a   054   018   000    Old_age   Always       -       1658096
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       14043h+33m+14.601s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       69725266
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3679412978

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     13977         -
# 2  Extended offline    Completed without error       00%     13953         -
# 3  Extended offline    Completed without error       00%     13929         -
# 4  Extended offline    Completed without error       00%     13905         -
# 5  Extended offline    Completed without error       00%     13881         -
# 6  Extended offline    Completed without error       00%     13857         -
# 7  Extended offline    Completed without error       00%     13833         -
# 8  Extended offline    Completed without error       00%     13808         -
# 9  Extended offline    Completed without error       00%     13785         -
#10  Extended offline    Completed without error       00%     13760         -
#11  Extended offline    Completed without error       00%     13737         -
#12  Extended offline    Completed without error       00%     13713         -
#13  Extended offline    Completed without error       00%     13689         -
#14  Extended offline    Completed without error       00%     13665         -
#15  Extended offline    Completed without error       00%     13641         -
#16  Extended offline    Completed without error       00%     13617         -
#17  Extended offline    Completed without error       00%     13593         -
#18  Extended offline    Completed without error       00%     13568         -
#19  Extended offline    Completed without error       00%     13544         -
#20  Extended offline    Completed without error       00%     13521         -
#21  Extended offline    Completed without error       00%     13496         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

EDIT :
Par contre, ce soir, aucun bruit même au démarrage.

franchement pour un truc de 500Go 7200tr/min et en plus Seagate, j’aurais deja passé commande d’un neuf.

1 J'aime

je ne m’affolerai pas pour ça

Seagate’s Seek Error Rate, Raw Read Error Rate, and Hardware ECC Recovered SMART attributes
Seagate’s Seek Error Rate, Raw Read Error Rate, and Hardware ECC Recovered SMART attributes create a lot of anxiety amongst Seagate users. This is because the raw values are typically very high, and the normalised values (Current / Worst / Threshold) are usually quite low. Despite this, the numbers in most cases are perfectly OK.

_The anxiety arises because we intuitively expect that the normalised values should reflect a “health” score, with 100 being the ideal value. Similarly, we would expect that the raw values should reflect an error count, in which case a value of 0 would be most desirable. However, Seagate calculates and applies these attribute values in a counterintuitive way. _

In fact the normalised values of Seagate’s Seek Error Rate, Raw Read Error Rate, and Hardware ECC Recovered attributes are logarithmic, not linear, and the raw values are sector counts or seek counts, not error counts.

Seagate’s SMART documentation is not publicly available. The following information has not been gleaned from any official source, but is based on my own testing and observation, and on testing by others. Therefore it may contain errors.

http://www.users.on.net/~fzabkar/HDD/Seagate_SER_RRER_HEC.html

9 Power_On_Hours 0x0032 084 084 000 Old_age Always - 14040
un disque qui a tourné 14040 heures , il est tout neuf :grinning:

Je ne m’affole pas non plus.
Ce disque est voué à être sur la machine secondaire, mais il a bien digéré la mutation en stretch et celle de la carte graphique en Nvidia.
D’ailleurs sa période bruyante n’a duré qu’une fois et en s’atténuant jusqu’à devenir normale.
La machine principale est, elle, en bon état aussi et à jour de tout, comme Félicie :smiley:

1 J'aime

NB:

Tant que ces deux indicateurs sont à 0 le disque est sain

97    Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable     0x0010   100   100   000    Old_age   Offline      -       0

Des infos à partir d’un logiciel qui interprète les données smarctl
https://kb.acronis.com/content/9133
https://kb.acronis.com/content/9264

Merci de ce complément d’infos.
Toutefois, je ne suis pas un maniaque du contrôle des disques.
Tant que je n’entends pas de bruit anormal, ni ne vois de fumée sortir de la machine, je ne m’en préoccupe pas.
Le bruit ne s’est pas reproduit, bizarre !

salut
gsmartcontrol est un gui de smartctl - pratique

test court

sudo smartctl -t short /dev/hdc

test long

sudo smartctl -t long /dev/hdc

données du test

sudo smartctl -l selftest /dev/hdc

On peut rajouter -T permissive, -T verypermissive au cas ou.

liste des attributs et valeurs

smartctl -A /dev/hdx

http://www.dindoun.lautre.net/spip.php?article48

1 J'aime

Merci de ce complément d’info.
Je n’ai rien contre ce qui est pratique.

c’est une façon de vivre … pratique :blush: