Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/12/2021, à 18:34

seboseb

[Résolu] Mon HDD est-il récupérable ?

Bonjour,

J'ai un SSD qui héberge Ubuntu et mes logiciels, et un HDD de 1To qui héberge mes documents, images, vidéos, etc.
J'ai galéré il y a 2 ans avec un plantage de HDD (je m'en suis sorti grâce à la communauté de ce forum). Mon HDD n'est pas neuf (filé par un pote suite au plantage), mais j'ai mis en place une sauvegarde sur disque externe. Elle fonctionne.

J'ai eu des bugs aujourd'hui : ralentissements de la visionneuse d'image, difficulté à vider la corbeille, liens de mon SSD vers HDD qui sont cassés puis réparés tout seuls puis re-cassés, message d'erreur 'Erreur d'Entrées Sortie". J'ai profité d'un moment de grâce pour faire une dernière sauvegarde sur le disque externe.

L'outil "Disques" me dit que mon disque DATA fonctionne mais qu'on ne peut pas le monter. Voici la copie d'écran :
https://ibb.co/VmqQGR0
message d'erreur


Une seule question : mon HDD est-il bon à jeter ou y a-t-il quelque chose à faire ?

Dernière modification par seboseb (Le 16/12/2021, à 11:00)

Hors ligne

#2 Le 13/12/2021, à 09:11

nany

Re : [Résolu] Mon HDD est-il récupérable ?

Bonjour,



460 secteurs endommagés et il dit que le disque est sain ! yikes
Il vaut mieux afficher les données SMART avec smartmontools :

sudo apt install -y smartmontools
sudo smartctl -s on -a /dev/sdb

Donne ici le retour de la deuxième commande.

Hors ligne

#3 Le 13/12/2021, à 12:08

geole

Re : [Résolu] Mon HDD est-il récupérable ?

Bonjour.
Comme tu as sauvé tes données, tout va bien.
Tant que le moteur tourne, il est utilisable... mais plus il est en mauvais état, plus les risques augmentent.
A titre d'exemple, je suis en train de passer un badblock sur ce disque que j'avais mis de cotế

a@a:~$ sudo smartctl -a /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.12
Device Model:     ST3500418AS
Serial Number:    9VM8FRC3
LU WWN Device Id: 5 000c50 01a4bfc0c
Firmware Version: CC49
User Capacity:    500106780160 bytes [500 GB]
Sector Size:      512 bytes logical/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 2.6, 3.0 Gb/s
Local Time is:    Mon Dec 13 17:18:46 2021 CET
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: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.

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: 	 (  85) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x103f)	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   117   090   006    Pre-fail  Always       -       159999081
  3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   094   094   020    Old_age   Always       -       7162
  5 Reallocated_Sector_Ct   0x0033   030   030   036    Pre-fail  Always   FAILING_NOW 2877
  7 Seek_Error_Rate         0x000f   084   060   030    Pre-fail  Always       -       301889578
  9 Power_On_Hours          0x0032   075   075   000    Old_age   Always       -       22267
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       3625
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   085   085   000    Old_age   Always       -       15
188 Command_Timeout         0x0032   100   097   000    Old_age   Always       -       25770328130
189 High_Fly_Writes         0x003a   098   098   000    Old_age   Always       -       2
190 Airflow_Temperature_Cel 0x0022   059   049   045    Old_age   Always       -       41 (Min/Max 25/41)
194 Temperature_Celsius     0x0022   041   051   000    Old_age   Always       -       41 (0 12 0 0 0)
195 Hardware_ECC_Recovered  0x001a   021   019   000    Old_age   Always       -       159999081
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      -       31764 (210 220 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       126202413
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       4166565443

SMART Error Log Version: 1
ATA Error Count: 14 (device log contains only the most recent five errors)
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 14 occurred at disk power-on lifetime: 22044 hours (918 days + 12 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 da f0 ff ff ff 4f 00      00:50:24.972  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:50:23.523  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:50:13.384  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:50:10.852  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:50:06.883  READ DMA EXT

Error 13 occurred at disk power-on lifetime: 22044 hours (918 days + 12 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 da 10 ff ff ff 4f 00      00:46:33.722  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:46:31.239  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:46:27.102  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:46:23.349  READ DMA EXT
  25 da 10 ff ff ff 4f 00      00:46:21.276  READ DMA EXT

Error 12 occurred at disk power-on lifetime: 21688 hours (903 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 22 f1 7f 0c  Error: UNC at LBA = 0x0c7ff122 = 209711394

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 20 f1 7f ec 00      07:04:49.905  READ DMA
  c8 00 08 88 f1 7f ec 00      07:04:49.900  READ DMA
  c8 00 08 80 f1 7f ec 00      07:04:49.882  READ DMA
  ea 00 00 ff ff ff af 00      07:04:49.873  FLUSH CACHE EXT
  35 00 08 ff ff ff ef 00      07:04:49.873  WRITE DMA EXT

Error 11 occurred at disk power-on lifetime: 21688 hours (903 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 22 f1 7f 0c  Error: UNC at LBA = 0x0c7ff122 = 209711394

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 20 f1 7f ec 00      07:04:46.918  READ DMA
  27 00 00 00 00 00 e0 00      07:04:46.901  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      07:04:46.893  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      07:04:46.887  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      07:04:46.861  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]

Error 10 occurred at disk power-on lifetime: 21688 hours (903 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 22 f1 7f 0c  Error: UNC at LBA = 0x0c7ff122 = 209711394

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 08 20 f1 7f ec 00      07:04:43.986  READ DMA
  27 00 00 00 00 00 e0 00      07:04:43.969  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      07:04:43.961  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 00      07:04:43.937  SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      07:04:43.937  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed: unknown failure    90%     21731         0
# 2  Short offline       Completed: unknown failure    90%     21717         0
# 3  Short offline       Completed: unknown failure    90%     21708         0
# 4  Short offline       Completed: unknown failure    90%     21708         0
# 5  Short offline       Completed: unknown failure    90%     21705         0
# 6  Short offline       Completed: unknown failure    90%     21703         0
# 7  Short offline       Completed: unknown failure    90%     21703         0
# 8  Short offline       Completed: unknown failure    90%     21703         0
# 9  Extended offline    Completed: unknown failure    90%     21659         0
#10  Short offline       Completed: unknown failure    90%     21659         0
#11  Short offline       Completed: unknown failure    90%     21659         0
#12  Short offline       Completed: unknown failure    90%     21656         0
#13  Short offline       Completed: unknown failure    90%     21656         0
#14  Short offline       Completed: unknown failure    90%     21656         0
#15  Short offline       Completed: unknown failure    90%     21646         0
#16  Short offline       Completed: unknown failure    90%     21627         0

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.

Dernière modification par geole (Le 13/12/2021, à 18:23)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#4 Le 13/12/2021, à 16:59

iznobe

Re : [Résolu] Mon HDD est-il récupérable ?

Bonjour , d ' apres l ' image c ' est une erreur d' option , en l' occurence celle-ci " noauto " .
donne :

cat /etc/fstab

retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#5 Le 14/12/2021, à 19:47

seboseb

Re : [Résolu] Mon HDD est-il récupérable ?

Merci. Alors, pour info, il est dans un bon jour aujourd'hui, il a accepté de se monter.

@nany :

seboseb@Seb-SSD:~$ sudo smartctl -s on -a /dev/sdb
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-91-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Green (AF)
Device Model:     WDC WD10EARS-00Y5B1
Serial Number:    WD-WCAV5F487891
LU WWN Device Id: 5 0014ee 204d51c3b
Firmware Version: 80.00A80
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Tue Dec 14 18:38:27 2021 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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: 		(18960) 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: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 219) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x3031)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

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     0x002f   200   200   051    Pre-fail  Always       -       1396
  3 Spin_Up_Time            0x0027   130   111   021    Pre-fail  Always       -       6483
  4 Start_Stop_Count        0x0032   097   097   000    Old_age   Always       -       3191
  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   082   082   000    Old_age   Always       -       13201
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   000    Old_age   Always       -       3189
192 Power-Off_Retract_Count 0x0032   199   199   000    Old_age   Always       -       1020
193 Load_Cycle_Count        0x0032   035   035   000    Old_age   Always       -       496275
194 Temperature_Celsius     0x0022   120   101   000    Old_age   Always       -       27
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   198   198   000    Old_age   Always       -       463
198 Offline_Uncorrectable   0x0030   200   199   000    Old_age   Offline      -       3
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   178   174   000    Old_age   Offline      -       4496

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

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.

@iznobe : oui, il indique bien ce problème d'option quand il déconne.. et pas quand il fonctionne. Le paramétrage n'a pas changé. Voici le résultat de la commande :

seboseb@Seb-SSD:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb1 during installation
UUID=8cc0dd13-3468-421e-a284-2548343af13e /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
tmpfs /tmp tmpfs defaults,size=1g 0 0
LABEL=SEAGATE /media/seboseb/SEAGATE noauto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=DATA /media/seboseb/DATA noauto nosuid,nodev,nofail,x-gvfs-show 0 0
# essai de remplacement de la ligne 13
#/dev/sdb1 /media/seboseb/DATA ext4 defaults    0 0
#Arrêté car le branchement de la Scarlet 2i2 fout le bordel. Mieux vaut définir le disque par son label.

Voila voilà !

Hors ligne

#6 Le 14/12/2021, à 20:00

geole

Re : [Résolu] Mon HDD est-il récupérable ?

Bonjour
Il vient encore de perdre trois secteurs!!!

197 Current_Pending_Sector  0x0032   198   198   000    Old_age   Always       -       463

et il est dans l'incapacité d'en  récupérer

  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0

D'ailleurs, il dit que tout va bien

No Errors Logged

Malgré son jeune âge

 9 Power_On_Hours          0x0032   082   082   000    Old_age   Always       -       13201

Il faut que tu le remplaces, car lorsque ça se  dégrade sans cause connue, il n'y a pas de raison de s'arrêter. A un moment donné,  un secteur hébergeant un super bloc  sera dans la liste et bonjour les gros dégâts....

Ou alors, il faut identifier les secteurs pending et voir s'il sait les réparer
soit avec cette commande,   Mais il y en a certainement pour 24 heures (il existe des points de reprise)

sudo badblocks -b 512 -n -s -v -o ~/sda.badblocks /dev/sda

soit en lançant un test long avec smartctl    mais  il s'arrête au premier et il y en a un paquet
soit en lisant tout

sudo apt install ddrecue
sudo ddrescue  -f   -b512  /dev/sda  /dev/null  /$HOME/suivi

La commande ddrescue me semble préférable mais c'est jute une tentative de lecture alors que badblocks fera 4  passages   avec des valeurs d'écriture simulées différentes.

Puis après on force la non-utilisation   des secteurs en question....

Dernière modification par geole (Le 14/12/2021, à 20:30)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#7 Le 14/12/2021, à 22:51

seboseb

Re : [Résolu] Mon HDD est-il récupérable ?

Merci pour ce diagnostic de ce jeune patient ! Je crois qu'on va arrêter l'acharnement thérapeutique.

Je viens d'en commander un neuf... Je vais essayer de faire tenir celui-ci quelques jours, pour récupérer certaines vidéos (que je n'avais pas inclus dans ma sauvegarde pour ne pas trop l'alourdir).

Merci !

Hors ligne