View previous topic :: View next topic |
Author |
Message |
Anard Apprentice
Joined: 01 Oct 2020 Posts: 226
|
Posted: Sun Jul 31, 2022 4:26 pm Post subject: [CONSEIL] Sauver un disque dur qui a rencontré des erreurs |
|
|
Bonjour,
J'ai un disque dur qui a eu des soucis du fait d'avoir été trop rempli, certains blocs ont été corrompus. J'ai pu récupérer les données pour les tranférer sur un disque viable en le montant avec les options ro et noload.
Maintenant, j'aimerais pouvoir réutiliser ce disque d'1To.
Code: | # fdisk -l
[...]
Mauvaise concordance des tailles de partition du secteur d'amorçage GPT (1953525166 != 1953525167), elles seront corrigées par l'écriture.
La table GPT de sauvegarde n'est pas à la fin du périphérique.
Disque /dev/sde : 931,51 GiB, 1000204886016 octets, 1953525168 secteurs
Modèle de disque : ST1000DM003-1CH1
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 2A6E6C1A-6F1E-4D8E-8277-9466F2496EF2
Périphérique Début Fin Secteurs Taille Type
/dev/sde1 2048 1953523711 1953521664 931,5G Système de fichiers Linux
[...] |
J'ai plusieurs erreurs SMART
Code: | # smartctl -a /dev/sde
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.41-gentoo-x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST1000DM003-1CH162
Serial Number: Z1D3KRXF
LU WWN Device Id: 5 000c50 04fed379d
Firmware Version: CC44
User Capacity: 1 000 204 886 016 bytes [1,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5387
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Jul 31 17:36:41 2022 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabl=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 592) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No 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: ( 118) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x3085) SCT Status 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 099 077 006 Pre-fail Always - 101349666
3 Spin_Up_Time 0x0003 098 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 093 093 020 Old_age Always - 7836
5 Reallocated_Sector_Ct 0x0033 092 092 010 Pre-fail Always - 10784
7 Seek_Error_Rate 0x000f 087 060 030 Pre-fail Always - 554890866
9 Power_On_Hours 0x0032 082 082 000 Old_age Always - 16164
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 093 093 020 Old_age Always - 7805
183 Runtime_Bad_Block 0x0032 089 089 000 Old_age Always - 11
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 7263
188 Command_Timeout 0x0032 100 072 000 Old_age Always - 129 459 525
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 069 050 045 Old_age Always - 31 (Min/Max 29/31)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 669
193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 22994
194 Temperature_Celsius 0x0022 031 050 000 Old_age Always - 31 (0 12 0 0 0)
197 Current_Pending_Sector 0x0012 001 001 000 Old_age Always - 21856
198 Offline_Uncorrectable 0x0010 001 001 000 Old_age Offline - 21856
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 16526h+38m+31.161s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 81217298117
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 80709765364
SMART Error Log Version: 1
ATA Error Count: 7261 (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 7261 occurred at disk power-on lifetime: 16162 hours (673 days + 10 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
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 00 ff ff ff 4f 00 00:00:47.253 READ FPDMA QUEUED
60 00 08 ff ff ff 4f 00 00:00:47.253 READ FPDMA QUEUED
60 00 08 ff ff ff 4f 00 00:00:47.253 READ FPDMA QUEUED
60 00 08 ff ff ff 4f 00 00:00:47.253 READ FPDMA QUEUED
60 00 08 ff ff ff 4f 00 00:00:47.253 READ FPDMA QUEUED
Error 7260 occurred at disk power-on lifetime: 16161 hours (673 days + 9 hours)
[...] |
J'ai lancé gdisk et suivi ses conseils :
Code: | # gdisk /dev/sde
GPT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sde: 1953525168 sectors, 931.5 GiB
Model: ST1000DM003-1CH1
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 2A6E6C1A-6F1E-4D8E-8277-9466F2496EF2
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525133
Partitions will be aligned on 2048-sector boundaries
Total free space is 3436 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1953523711 931.5 GiB 8300 Linux filesystem
Command (? for help): v
Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.
Identified 1 problems!
Command (? for help): x
Expert command (? for help): e
Relocating backup data structures to the end of the disk
Expert command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sde.
The operation has completed successfully.
# gdisk /dev/sde
GPT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): v
No problems found. 3437 free sectors (1.7 MiB) available in 2
segments, the largest of which is 2014 (1007.0 KiB) in size. |
Il semble qu'il ait réglé le souci. En détruisant le MBR et en recréant une table de partition neuve, il a retrouvé sa taille initiale de 1To
Je suis en train de réécrire l'ensemble du disque avec
Code: | dcfldd status=on if=/dev/urandom of=/dev/sde bs=4096 |
Pensez-vous que je sois sur la bonne voie et auriez-vous d'autres conseils pour tenter de réutiliser ce disque ? Ou tout simplement, est-ce une mauvaise idée et ferais-je mieux de le jeter ?
Merci à vous. _________________ "iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10 |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3171 Location: Paris
|
Posted: Thu Aug 04, 2022 12:51 pm Post subject: |
|
|
Un disque qui tombe en panne pour avoir été trop rempli... c'est "exotique"... Normalement c'est le système de fichier qui doit couiner comme quoi il n'a pas réussi à écrire à partir d'un certain moment, et arrêter l'opération d'écriture. C'est pas au HDD de se mettre en carafe
Code: | 187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 7263 |
Il me semble que c'est Reported_Uncorrectable Errors, non? Parce que ça sent très MAUVAIS!
D'expérience perso, j'ai eu une bécane qui commençait à déconner de temps à autre, et avec l'expérience (et une "hygiène" logicielle correcte) on sait que ça provient très souvent du matériel: bilan RAM & CPU OK, mais le SSD principal avec l'OS avait cette valeur SMART à une valeur autre que 0. Ce qui signifie que le stockage a fait du gros caca, et qu'il a probablement écrit une purée immonde sur le disque (que ce soit juste un peu corrompu ou complètement, c'est critique).
Bref, tu peux prendre note de la valeur de cet attribut SMART et lancer un test R/W avec badblocks qui va bien, et voir si ça monte et/ou si badblocks grince des dents.
Mais je ne suis pas optimiste pour ton disque dur, il a l'air de souffrir _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|