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 06/01/2018, à 16:55

Kaaria

Problème de BOOT Error: attempt to read or write...[Résolu]

Bonjour,

Ce thread fait suite à celui que j'avais ouvert la semaine dernière :

https://forum.ubuntu-fr.org/viewtopic.php?id=2020010

De temps en temps, malgré une réinstallation du Grub avec Bootrepair et les mises à jour qui ont été faites, il arrive que la machine ne boote pas et reste bloquée sur cet écran :

http://zupimages.net/viewer.php?id=18/01/j4qf.jpg

http://zupimages.net/viewer.php?id=18/01/jgef.jpg

La qualité des captures est pas top mais ça reste lisible.

Voici un rapport smartctl  :

karim@karim-G41MT-D3:~$ sudo smartctl -s on -a /dev/sda
[sudo] Mot de passe de karim : 
smartctl 6.5 2016-01-24 r4214 [i686-linux-4.10.0-42-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue
Device Model:     WDC WD5000AAKX-001CA0
Serial Number:    WD-WCAYUC511235
LU WWN Device Id: 5 0014ee 158f51477
Firmware Version: 15.01H15
User Capacity:    500 107 862 016 bytes [500 GB]
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 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sat Jan  6 15:54:43 2018 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:  (0x84)	Offline data collection activity
					was suspended by an interrupting command from host.
					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: 		( 8700) 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: 	 (  88) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x3037)	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       -       2
  3 Spin_Up_Time            0x0027   141   140   021    Pre-fail  Always       -       3950
  4 Start_Stop_Count        0x0032   098   098   000    Old_age   Always       -       2795
  5 Reallocated_Sector_Ct   0x0033   195   195   140    Pre-fail  Always       -       106
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   057   057   000    Old_age   Always       -       31620
 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   098   098   000    Old_age   Always       -       2791
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       82
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       2712
194 Temperature_Celsius     0x0022   098   088   000    Old_age   Always       -       45
196 Reallocated_Event_Count 0x0032   112   112   000    Old_age   Always       -       88
197 Current_Pending_Sector  0x0032   197   197   000    Old_age   Always       -       262
198 Offline_Uncorrectable   0x0030   199   198   000    Old_age   Offline      -       150
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   198   198   000    Old_age   Offline      -       445

SMART Error Log Version: 1
ATA Error Count: 1314 (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 1314 occurred at disk power-on lifetime: 31618 hours (1317 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 08 03 0a 00 e4  Error: UNC 8 sectors at LBA = 0x04000a03 = 67111427

  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 00 0a 00 e4 08      00:23:22.560  READ DMA

Error 1313 occurred at disk power-on lifetime: 31611 hours (1317 days + 3 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      04:47:53.862  READ DMA

Error 1312 occurred at disk power-on lifetime: 31611 hours (1317 days + 3 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      04:47:51.762  READ DMA
  ca 00 38 a8 9d f2 e2 08      04:47:51.734  WRITE DMA

Error 1311 occurred at disk power-on lifetime: 31611 hours (1317 days + 3 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      04:47:49.931  READ DMA

Error 1310 occurred at disk power-on lifetime: 31611 hours (1317 days + 3 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      04:47:47.826  READ DMA

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.

karim@karim-G41MT-D3:~$ 

Merci d'avance pour vos réponses.

Dernière modification par Kaaria (Le 10/01/2018, à 14:01)


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#2 Le 06/01/2018, à 17:27

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Bonjour
Finalement, je crains que l'état de ton disque soit la cause du message " attempt to read or write outside of disk "hd0"
Par rapport à la dernière fois, on voit que  4 secteurs ont été récupérés  mais que le compteur des " en attente de récupération" a encore grimpé de 16  pour atteindre 262 unités.... et que le nombre d'erreurs s'est accru de 10.

Soit tu changes le disque,
Soit on identifie "tous les secteurs actuellement illisibles " afin d'en avoir une idée.

Ce qui me surprend un peu, c'est que le fait de réinstaller le grub suffise à refaire fonctionner normalement ubuntu.

Dernière modification par ?? (Le 06/01/2018, à 17:28)


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne

#3 Le 06/01/2018, à 17:30

malbo

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Ton disque est à remplacer. Ce sont les deux lignes "5 Reallocated_Sector_Ct" et "197 Current_Pending_Sector" qui montrent que le disque est nase. Il faut trouver "RAW_VALUE" = 0 et pas les valeurs du rapport (106 et 262)

Hors ligne

#4 Le 07/01/2018, à 00:07

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Eh ben j'ai bien fait de copier mes données...

C'est sans appel alors... et est-ce que je peux le conserver pour l'utiliser comme disque externe ou je risque de perdre ce que je vais y mettre ?

Dernière modification par Kaaria (Le 07/01/2018, à 00:07)


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#5 Le 07/01/2018, à 00:13

Ayral

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Les mêmes causes produisant les mêmes effets, je mettrais ce truc à la déchetterie... Même si l'on doit éviter l'obsolescence programmées, à un moment il faut convoquer les pompes funèbres.


Pour mettre les retours de commande entre deux balises code, les explications sont là : https://forum.ubuntu-fr.org/viewtopic.php?id=1614731
Blog d'un retraité
Site de graphisme du fiston Loïc
Ubuntu 22.04 LTS sur un Thinkpad W540

Hors ligne

#6 Le 07/01/2018, à 00:35

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Merci pour vos réponses.

Je dois maintenant me retirer, j'ai besoin d'être un peu seul...


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#7 Le 07/01/2018, à 03:18

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Ayral a écrit :

Les mêmes causes produisant les mêmes effets, je mettrais ce truc à la déchetterie... Même si l'on doit éviter l'obsolescence programmée, à un moment il faut convoquer les pompes funèbres.

Bonsoir.
Pas d'accord pour la déchetterie. Cela peut se recycler autrement. Il n'y a même pas écrit  "failling now" Et même si s'était écrit "failling now" , cela ne changerait pas tellement de choses dans ce contexte car la mécanique n'est pas en cause.

Pas d'accord non plus avec Malbo.  Un reformatage résout le problème en remettant  tout ce qui n'est pas lisible à zéro. Mais je ne sais pas dire pour combien de temps.

Pas d'accord  non plus avec ubuntu qui considère qu'il suffit  qu'un seul  secteur sur  seize milliards devienne illisible pour alimenter la déchetterie. Il faudrait qu'il apprenne à faire correctement fonctionner son logiciel RAID1 . Cela ferait dire  que le risque devient milliard de milliard!

Pas d'accord non plus avec  tous les logiciels qui se plantent pour si peu de choses!!!

Ce n'est pas parce qu'il va manquer 512 bits dans la définition de la couleur de l'iris gauche d'un.e illustre inconnu.e que cela me gênera en regardant le flm dans  le.a.quel.le   il.elle joue.
En revanche c'est impossible que le logiciel fonctionne.

Donc ton disque, tu le conserves pour y stocker des données non vitales.
et un jour, tu en auras un second ... Les deux mis ensembles devraient te donner un excellent espace de stockage pour les données non vitales. C'est comme cela que je fonctionne mais je reconnais que cela consomme du suivi.
====> Historique du premier disque consultable ici https://forum.ubuntu-fr.org/viewtopic.p … #p21103171
====> Historique de second disque consultable ici  https://forum.ubuntu-fr.org/viewtopic.p … #p21740693
Mais encore un minuscule problème à résoudre consultable ici ====> https://bugs.launchpad.net/ubuntu/+sour … ug/1740031
En fait, Manquant de place dans la tour, l'un des disques est connecté en usb, et le boot n'est pas parfait en 18.04.  Ce qui donne pas mal de problèmes à résoudre. Et oui, en 2018 j'ai fichu grub à la porte.


Au fait

df -h | grep md && ls /MD0
/dev/md127         459G    199G  237G  46% /MD0
Acquisition       BCD.pdf       Capture.PNG  INTERNET    Musique            Recovery          script au démarage.odt
aide-mémoire.odt  BCD.txt       Doc          ISO         Photo              Rugby             Video
ASROCK            Capture1.PNG  Documents    lost+found  RAIDS-English.pdf  SAVwindows10.img  windows10.img

Peut-être qu'un jour, l'un des fichiers stockés aura un même bloc illisible sur ces deux disques......
Je verrais alors comment le logiciel de lecture peut passer outre (Ignore ?)

et surtout de quoi suivre l'évolution  ===> Valeurs de juin 2017 ici

sudo smartctl -A /dev/sdd   
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.4.0-104-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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   115   090   006    Pre-fail  Always       -       96799676
  3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   094   094   020    Old_age   Always       -       7104
  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       -       301865440
  9 Power_On_Hours          0x0032   075   075   000    Old_age   Always       -       22113
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       3577
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   066   049   045    Old_age   Always       -       34 (Min/Max 18/34)
194 Temperature_Celsius     0x0022   034   051   000    Old_age   Always       -       34 (0 12 0 0 0)
195 Hardware_ECC_Recovered  0x001a   025   021   000    Old_age   Always       -       96799676
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      -       31660 (139 123 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       3444914265
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       4105967624

et

sudo smartctl -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.4.0-104-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue
Device Model:     WDC WD5000AAKX-083CA1
Serial Number:    WD-WCAYUEA15605
LU WWN Device Id: 5 0014ee 10473b99b
Firmware Version: 19.01H19
User Capacity:    500 106 780 160 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 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Jan  7 11:43:58 2018 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: 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: 		( 8760) 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: 	 (  89) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x3037)	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   198   197   051    Pre-fail  Always       -       21943
  3 Spin_Up_Time            0x0027   139   136   021    Pre-fail  Always       -       4025
  4 Start_Stop_Count        0x0032   097   097   000    Old_age   Always       -       3189
  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   093   093   000    Old_age   Always       -       5317
 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   098   098   000    Old_age   Always       -       2829
192 Power-Off_Retract_Count 0x0032   198   198   000    Old_age   Always       -       1692
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       1496
194 Temperature_Celsius     0x0022   110   095   000    Old_age   Always       -       33
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   194   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   194   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       640
200 Multi_Zone_Error_Rate   0x0008   200   199   000    Old_age   Offline      -       1

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  Short offline       Completed: read failure       80%      4210         263369
# 2  Conveyance offline  Completed: read failure       90%      4058         13498046
# 3  Extended offline    Completed: read failure       90%      4058         13498046
# 4  Extended offline    Completed without error       00%      3976         -
# 5  Short offline       Completed without error       00%      3974         -
# 6  Extended offline    Interrupted (host reset)      90%         6         -

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.

Avec des valeurs initiales non connues. Mais en décembre 2015 , on relevait

197 Current_Pending_Sector  0x0032   194   194   000    Old_age   Always       -       515

Dernière modification par ?? (Le 07/01/2018, à 13:03)


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne

#8 Le 07/01/2018, à 19:53

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Alors vu que j'ai besoin de peu d'espace de stockage, les 500Go sont loin d'être utilisés (17% seulement), je vois pas l'utilité de le monter en tant que disque secondaire. Quant à l'achat d'un boîtier externe, dépenser de l'argent pour un dd en fin de vie ne me semble pas judicieux.

En fait, je crois que je vais rester encore un peu avec mon vieux disque usagé tant qu'il fonctionne. Je peux même essayer de le reformater..

Le jour où il cramera pour de bon, j'aurais toujours moyen de fonctionner via une live usb en attendant d'en racheter un.

Merci pour votre aide.

Dernière modification par Kaaria (Le 07/01/2018, à 19:55)


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#9 Le 07/01/2018, à 20:43

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Bonsoir
Une idée comme ça,
Il serait bon d'identifier la totalité des secteurs actuellement illisibles.
Si on les trouve répartis sur la totalité du disque, cela n'aura servi à rien.
Si on les trouve dans un ou deux endroits du disque, on peut avoir une technique pour isoler afin de ne pas être embêté.
Cette recherche n'est pas trop compliquée à faire. Elle est simplement longue.
1) Lire le document  https://doc.ubuntu-fr.org/ddrescue  pour comprendre ce qui sera fait
2)  Installer l'application.  C'est le paragraphe 1.2 de la doc.
3)  Aller à la chasse aux secteurs défectueux avec la commande:

sudo ddrescue -f    -n   -b512   /dev/sda /dev/null    suividd

Elle va prendre du temps! Mais au besoin, on peut l'interrompre et la reprendre plus tard
4) Les lister en espérant que la détection n'en a pas trop trouvé.

ddrescuelog -l- -b512  suividd  >listedd
wc listedd
cat listedd

NOTA: Point 4 modifié suite  au retour d'exécution.

Dernière modification par ?? (Le 09/01/2018, à 15:20)


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne

#10 Le 08/01/2018, à 19:22

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

?? a écrit :

Bonsoir
Une idée comme ça,
Il serait bon d'identifier la totalité des secteurs actuellement illisibles.
Si on les trouve répartis sur la totalité du disque, cela n'aura servi à rien.
Si on les trouve dans un ou deux endroits du disque, on peut avoir une technique pour isoler afin de ne pas être embêté.
Cette recherche n'est pas trop compliquée à faire. Elle est simplement longue.
1) Lire le document  https://doc.ubuntu-fr.org/ddrescue  pour comprendre ce qui sera fait
2)  Installer l'application.  C'est le paragraphe 1.2 de la doc.
3)  Aller à la chasse aux secteurs défectueux avec la commande:

sudo ddrescue -f    -n   -b512   /dev/sda /dev/null    suividd

Elle va prendre du temps! Mais au besoin, on peut l'interrompre et la reprendre plus tard
4) Les lister en espérant que la détection n'en a pas trop trouvé.

wc suividd
cat suividd

Ok je tente la commande et je reviens poster le résultat.


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#11 Le 09/01/2018, à 00:14

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

La commande

sudo ddrescue -f    -n   -b512   /dev/sda /dev/null    suividd

donne ceci :

 karim@karim-G41MT-D3:~$ sudo ddrescue -f    -n   -b512   /dev/sda /dev/null    suividd
[sudo] Mot de passe de karim : 
GNU ddrescue 1.19
Press Ctrl-C to interrupt
rescued:   500107 MB,  errsize:    450 kB,  current rate:    65536 B/s
   ipos:    64645 MB,   errors:      34,    average rate:   30781 kB/s
   opos:    64645 MB, run time:    4.51 h,  successful read:       0 s ago
Finished                                      
karim@karim-G41MT-D3:~$ 

La commande

 wc suividd

donne :

 karim@karim-G41MT-D3:~$ wc suividd
 129  403 3500 suividd
karim@karim-G41MT-D3:~$ 

La commande

cat suividd

donne ça :

 karim@karim-G41MT-D3:~$ cat suividd
# Rescue Logfile. Created by GNU ddrescue version 1.19
# Command line: ddrescue -f -n -b512 /dev/sda /dev/null suividd
# Start time:   2018-01-08 18:26:36
# Current time: 2018-01-08 22:57:22
# Finished
# current_pos  current_status
0xF0D32FE00     +
#      pos        size  status
0x00000000  0x002FC000  +
0x002FC000  0x00000200  -
0x002FC200  0x00002C00  /
0x002FEE00  0x00000200  -
0x002FF000  0x00003000  +
0x00302000  0x00000200  -
0x00302200  0x00007C00  /
0x00309E00  0x00000200  -
0x0030A000  0x0020B000  +
0x00515000  0x00000200  -
0x00515200  0x00008C00  /
0x0051DE00  0x00000200  -
0x0051E000  0x00106000  +
0x00624000  0x00000200  -
0x00624200  0x00005C00  /
0x00629E00  0x00000200  -
0x0062A000  0x00116000  +
0x00740000  0x00000200  -
0x00740200  0x00001C00  /
0x00741E00  0x00000200  -
0x00742000  0x00121000  +
0x00863000  0x00000200  -
0x00863200  0x00009C00  /
0x0086CE00  0x00000200  -
0x0086D000  0x00005000  +
0x00872000  0x00000200  -
0x00872200  0x00000C00  /
0x00872E00  0x00000200  -
0x00873000  0x0023C000  +
0x00AAF000  0x00000200  -
0x00AAF200  0x00000C00  /
0x00AAFE00  0x00000200  -
0x00AB0000  0x0012A000  +
0x00BDA000  0x00000200  -
0x00BDA200  0x00000C00  /
0x00BDAE00  0x00000200  -
0x00BDB000  0x001C7000  +
0x00DA2000  0x00000200  -
0x00DA2200  0x00051E00  +
0x00DF4000  0x00000200  -
0x00DF4200  0x00000C00  /
0x00DF4E00  0x00000200  -
0x00DF5000  0x003E7000  +
0x011DC000  0x00000200  -
0x011DC200  0x00000C00  /
0x011DCE00  0x00000200  -
0x011DD000  0x00123000  +
0x01300000  0x00000200  -
0x01300200  0x00000C00  /
0x01300E00  0x00000200  -
0x01301000  0x0074E000  +
0x01A4F000  0x00000200  -
0x01A4F200  0x00002C00  /
0x01A51E00  0x00000200  -
0x01A52000  0x17EC45000  +
0x180697000  0x00000200  -
0x180697200  0x2FFAFEE00  +
0x480196000  0x00000200  -
0x480196200  0x00001C00  /
0x480197E00  0x00000200  -
0x480198000  0x4EECA000  +
0x4CF062000  0x00000200  -
0x4CF062200  0x00000C00  /
0x4CF062E00  0x00000200  -
0x4CF063000  0xB12D0000  +
0x580333000  0x00000200  -
0x580333200  0x0000BC00  /
0x58033EE00  0x00000200  -
0x58033F000  0x00016000  +
0x580355000  0x00000200  -
0x580355200  0x00006C00  /
0x58035BE00  0x00000200  -
0x58035C000  0x000FA000  +
0x580456000  0x00000200  -
0x580456200  0x00004C00  /
0x58045AE00  0x00000200  -
0x58045B000  0x00123000  +
0x58057E000  0x00000200  -
0x58057E200  0x0000FC00  /
0x58058DE00  0x00000200  -
0x58058E000  0x00237000  +
0x5807C5000  0x00000200  -
0x5807C5200  0x00000C00  /
0x5807C5E00  0x00000200  -
0x5807C6000  0x179BD000  +
0x598183000  0x00000200  -
0x598183200  0x00009C00  /
0x59818CE00  0x00000200  -
0x59818D000  0x267A55000  +
0x7FFBE2000  0x00000200  -
0x7FFBE2200  0x00000C00  /
0x7FFBE2E00  0x00000200  -
0x7FFBE3000  0x00252000  +
0x7FFE35000  0x00000200  -
0x7FFE35200  0x73566E00  +
0x87339C000  0x00000200  -
0x87339C200  0x75B95E00  +
0x8E8F32000  0x00000200  -
0x8E8F32200  0x00003C00  /
0x8E8F35E00  0x00000200  -
0x8E8F36000  0x0012B000  +
0x8E9061000  0x00000200  -
0x8E9061200  0x19233E00  +
0x902295000  0x00000200  -
0x902295200  0x100143E00  +
0xA023D9000  0x00000200  -
0xA023D9200  0x00000C00  /
0xA023D9E00  0x00000200  -
0xA023DA000  0x4FDF2F000  +
0xF00309000  0x00000200  -
0xF00309200  0x00269E00  +
0xF00573000  0x00000200  -
0xF00573200  0x0007CE00  +
0xF005F0000  0x00000200  -
0xF005F0200  0x00000C00  /
0xF005F0E00  0x00000200  -
0xF005F1000  0x00111000  +
0xF00702000  0x00000200  -
0xF00702200  0x00000C00  /
0xF00702E00  0x00000200  -
0xF00703000  0x6570503000  +
karim@karim-G41MT-D3:~$ 

Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#12 Le 09/01/2018, à 00:39

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

J'ai oublié une commande

ddrescuelog -l- -b512  suividd  >listedd
wc listedd
cat listedd

Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne

#13 Le 09/01/2018, à 13:31

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

?? a écrit :

J'ai oublié une commande

ddrescuelog -l- -b512  suividd  >listedd
wc listedd
cat listedd

Il faut que je recommence tout ?

Sinon ça donne ça :

karim@karim-G41MT-D3:~$ ddrescuelog -l- -b512  suividd  >listedd
karim@karim-G41MT-D3:~$ wc listedd
 60  60 461 listedd
karim@karim-G41MT-D3:~$ cat listedd
6112
6135
6160
6223
10408
10479
12576
12623
14848
14863
17176
17255
17296
17303
21880
21887
24272
24279
27920
28576
28583
36576
36583
38912
38919
53880
53903
12596408
37751984
37751999
40338192
40338199
46143896
46143991
46144168
46144223
46146224
46146263
46148592
46148719
46153256
46153263
46926872
46926951
67100432
67100439
67105192
70884576
74742160
74742191
74744584
75568296
83959496
83959503
125835336
125840280
125841280
125841287
125843472
125843479
karim@karim-G41MT-D3:~$ 

Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#14 Le 09/01/2018, à 14:45

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

60 secteurs non lisibles
Le dernier est à cette adresse 125843479  =  125843479*512/1024/1024 = 61448 Mio 
Presque la moitié (27) sont dans les 27 premiers MO ( 53903*512/1024/1024 = 26,32 Mio
Mon conseil pour le futur formatage
Fabriques une partition de 61421 Mio commençant au 28e Mio au lieu du premier.
Tant que tu auras de la place disque, n'utilises pas cette partition pour y stocker des données.
Et utilises les 440 Go restants comme bon te semble pour ta future réinstallation.

Cependant, continues de regarder de temps en temps. En espérant que cela lui permettra de tenir le temps nécessaire....

redonnes le retour de la commande

sudo smartctl -s on -a /dev/sda 

afin de savoir comment il a supporté cette longue séquence de lecture et de disposer d'un point de repère pour le suivi de l'évolution car cela continuera à se détériorer.

Dernière modification par ?? (Le 09/01/2018, à 15:24)


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne

#15 Le 09/01/2018, à 20:27

Kaaria

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

?? a écrit :

60 secteurs non lisibles
Le dernier est à cette adresse 125843479  =  125843479*512/1024/1024 = 61448 Mio 
Presque la moitié (27) sont dans les 27 premiers MO ( 53903*512/1024/1024 = 26,32 Mio
Mon conseil pour le futur formatage
Fabriques une partition de 61421 Mio commençant au 28e Mio au lieu du premier.
Tant que tu auras de la place disque, n'utilises pas cette partition pour y stocker des données.
Et utilises les 440 Go restants comme bon te semble pour ta future réinstallation.

En fait tu me conseilles la même chose que Bootrepair mais en tenant compte de l'emplacement des secteurs endommagés :

"The boot files of [Ubuntu 16.04.3 LTS] are far from the start of the disk. Your Bios may not detect them. You may want to retry after creating a /boot partition (EXT4, > 200MB, start of the disk). This can be performed via tools such as Gparted."

Le retour de la commande smartctl :

smartctl 6.5 2016-01-24 r4214 [i686-linux-4.10.0-42-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue
Device Model:     WDC WD5000AAKX-001CA0
Serial Number:    WD-WCAYUC511235
LU WWN Device Id: 5 0014ee 158f51477
Firmware Version: 15.01H15
User Capacity:    500 107 862 016 bytes [500 GB]
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 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Jan  9 19:26:09 2018 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: 		( 8700) 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: 	 (  88) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x3037)	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       -       2
  3 Spin_Up_Time            0x0027   141   140   021    Pre-fail  Always       -       3950
  4 Start_Stop_Count        0x0032   098   098   000    Old_age   Always       -       2798
  5 Reallocated_Sector_Ct   0x0033   195   195   140    Pre-fail  Always       -       109
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   057   057   000    Old_age   Always       -       31670
 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   098   098   000    Old_age   Always       -       2794
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       82
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       2715
194 Temperature_Celsius     0x0022   099   088   000    Old_age   Always       -       44
196 Reallocated_Event_Count 0x0032   109   109   000    Old_age   Always       -       91
197 Current_Pending_Sector  0x0032   197   197   000    Old_age   Always       -       279
198 Offline_Uncorrectable   0x0030   198   197   000    Old_age   Offline      -       166
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   198   196   000    Old_age   Offline      -       442

SMART Error Log Version: 1
ATA Error Count: 1978 (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 1978 occurred at disk power-on lifetime: 31668 hours (1319 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      07:06:21.259  READ DMA
  ec 00 00 00 00 00 a0 08      07:06:21.218  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 08      07:06:21.218  SET FEATURES [Set transfer mode]

Error 1977 occurred at disk power-on lifetime: 31668 hours (1319 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      07:06:19.540  READ DMA
  ca 00 88 78 01 48 e0 08      07:06:19.329  WRITE DMA

Error 1976 occurred at disk power-on lifetime: 31668 hours (1319 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      07:06:17.485  READ DMA
  ec 00 00 00 00 00 a0 08      07:06:17.446  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 08      07:06:17.446  SET FEATURES [Set transfer mode]

Error 1975 occurred at disk power-on lifetime: 31668 hours (1319 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      07:06:15.645  READ DMA

Error 1974 occurred at disk power-on lifetime: 31668 hours (1319 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 08 b9 1e 67 e2  Error: UNC 8 sectors at LBA = 0x02671eb9 = 40312505

  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 b8 1e 67 e2 08      07:06:13.531  READ DMA
  ec 00 00 00 00 00 a0 08      07:06:13.488  IDENTIFY DEVICE
  ef 03 46 00 00 00 a0 08      07:06:13.485  SET FEATURES [Set transfer mode]

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.

karim@karim-G41MT-D3:~$ 
 

Dernière modification par Kaaria (Le 09/01/2018, à 20:31)


Lubuntu 20.04 LTS/ Pentium Dual-Core 5700 3.00GHz/ RAM 2Gio

Hors ligne

#16 Le 09/01/2018, à 23:25

??

Re : Problème de BOOT Error: attempt to read or write...[Résolu]

Je n'ai jamais dit que les fichiers de boot étaient loin du début du disque ni qu'il fallait créer une partition de boot. Surtout que faire cette action complique la gestion.
Je me contente de dire qu'il faut éviter le début du disque car il est pourri et que je ne certifie rien pour la qualité future du non-début.


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne