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.

#126 Le 20/01/2023, à 01:14

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Il y avait une nouvelle ligne de créée.

Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure       90%      9265         756005328
# 2  Short offline       Completed: read failure       80%      9264         756005304
# 3  Short offline       Completed: read failure       90%      9200         1056152

qu'il faut traiter.
A) Affectation du nouveau numéro.

  j=756005328

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

D) et relance

sudo smartctl -t short /dev/sda

Dernière modification par geole (Le 20/01/2023, à 01:31)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#127 Le 20/01/2023, à 11:03

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Bonjour tout le monde,

Le résultat :

anneneige@anneneige-Latitude-E5530-non-vPro:~$  j=756005328
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
[sudo] Mot de passe de anneneige : 
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,92343 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 10:00:14 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#128 Le 20/01/2023, à 11:04

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Petite remarque : votre horloge n'est pas à l'heure...


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#129 Le 20/01/2023, à 11:15

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Bonjour.
Je ne compremds pas  la remarque sur l'horloge.
Si tu penses qu'il y a une heure d'avance, il faut que tu modifies ton compte pour le passer à l'heure d'hiver.

Je ne  comprends pas pourquoi, cette fois-ci, le point C n'a pas été fait.
En effet, cette phrase.
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus

Signifie clairement qu'il fallait réparer.
( le message d'erreur fourni va me permettre de fabriquer la comparaison automatique)

Dernière modification par geole (Le 20/01/2023, à 11:25)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#130 Le 20/01/2023, à 11:25

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Pour l'horloge : il n'est pas 11h15 mais 10h15 !

anneneige@anneneige-Latitude-E5530-non-vPro:~$  j=756005328
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
[sudo] Mot de passe de anneneige : 
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 7,90914 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005328: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 10:24:08 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#131 Le 20/01/2023, à 12:39

xubu1957

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#132 Le 20/01/2023, à 12:47

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Merci xubu,

J'ai rectifié pour l'heure...


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#133 Le 20/01/2023, à 13:54

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Anne-Neige a écrit :
sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 10:24:08 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

N'oublie pas de poster le résultat.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#134 Le 20/01/2023, à 14:06

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Mais je n'obtiens que cela :

anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
[sudo] Mot de passe de anneneige : 
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 13:04:53 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#135 Le 20/01/2023, à 14:46

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Please wait 2 minutes for test to complete.  (Attendez deux minutes que le test soit fini.)
Donc au bout de 5 minutes, tu peux demander son résultat. Tu l'as déjà fait. Je n'avais pas pensé utile de rappeler la commande.

sudo smartctl -l selftest /dev/sda

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#136 Le 20/01/2023, à 15:13

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Voilà le résultat (j'ai attendu 10 min avant de relancer la commende

sudo smartctl -l selftest /dev/sda
anneneige@anneneige-Latitude-E5530-non-vPro:~$ j=756005328
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
[sudo] Mot de passe de anneneige : 
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,212731 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
On peut réparer

/dev/sda:
re-writing sector 756005328: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 14:02:07 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -l selftest /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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       90%      9273         756005329
# 2  Short offline       Completed: read failure       90%      9272         756005329
# 3  Short offline       Completed: read failure       90%      9272         756005329
# 4  Short offline       Completed: read failure       90%      9269         756005329
# 5  Short offline       Completed: read failure       90%      9268         756005328
# 6  Short offline       Completed: read failure       90%      9265         756005328
# 7  Short offline       Completed: read failure       80%      9264         756005304
# 8  Short offline       Completed: read failure       90%      9200         1056152
# 9  Short offline       Completed without error       00%      7614         -
#10  Extended offline    Completed without error       00%      7611         -
#11  Short offline       Completed without error       00%      7608         -
#12  Short offline       Interrupted (host reset)      80%      7605         -
#13  Extended offline    Completed without error       00%      7605         -
#14  Short offline       Completed without error       00%      7602         -
#15  Extended offline    Interrupted (host reset)      90%      5957         -
#16  Short offline       Completed without error       00%      5957         -
#17  Short offline       Completed without error       00%      2743         -
#18  Short offline       Completed without error       00%      2285         -
#19  Extended offline    Completed without error       00%      2284         -
#20  Short offline       Completed without error       00%      2281         -

anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#137 Le 20/01/2023, à 15:20

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Anne-Neige a écrit :

Voilà le résultat (j'ai attendu 10 min avant de relancer la commende

sudo smartctl -l selftest /dev/sda

Le retour vide de la commande ne me plait pas du tout.

Retente

sudo smartctl -l selftest /dev/sda

Si toujours vide, le rapport général

]sudo smartctl -a /dev/sda

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#138 Le 20/01/2023, à 15:21

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Si je comprends quelque chose... Ce sont les lignes #1 à #8 qui posent problèmes ?


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#139 Le 20/01/2023, à 15:25

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -l selftest /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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       90%      9273         756005329
# 2  Short offline       Completed: read failure       90%      9272         756005329
# 3  Short offline       Completed: read failure       90%      9272         756005329
# 4  Short offline       Completed: read failure       90%      9269         756005329
# 5  Short offline       Completed: read failure       90%      9268         756005328
# 6  Short offline       Completed: read failure       90%      9265         756005328
# 7  Short offline       Completed: read failure       80%      9264         756005304
# 8  Short offline       Completed: read failure       90%      9200         1056152
# 9  Short offline       Completed without error       00%      7614         -
#10  Extended offline    Completed without error       00%      7611         -
#11  Short offline       Completed without error       00%      7608         -
#12  Short offline       Interrupted (host reset)      80%      7605         -
#13  Extended offline    Completed without error       00%      7605         -
#14  Short offline       Completed without error       00%      7602         -
#15  Extended offline    Interrupted (host reset)      90%      5957         -
#16  Short offline       Completed without error       00%      5957         -
#17  Short offline       Completed without error       00%      2743         -
#18  Short offline       Completed without error       00%      2285         -
#19  Extended offline    Completed without error       00%      2284         -
#20  Short offline       Completed without error       00%      2281         -

anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -a /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MQ01ABD...
Device Model:     TOSHIBA MQ01ABD100
Serial Number:    87SOPJ6NT
LU WWN Device Id: 5 000039 7f2d0b4cc
Firmware Version: AX1R4C
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
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:    Fri Jan 20 14:24:00 2023 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:  (0x85)	Offline data collection activity
					was aborted by an interrupting command from host.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      ( 121)	The previous self-test completed having
					the read element of the test failed.
Total time to complete Offline 
data collection: 		(  120) seconds.
Offline data collection
capabilities: 			 (0x51) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No 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: 	 ( 200) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control 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   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0027   100   100   050    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0023   100   100   002    Pre-fail  Always       -       1711
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       1614
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
  7 Seek_Error_Rate         0x002f   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   077   077   000    Old_age   Always       -       9273
 10 Spin_Retry_Count        0x0033   131   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1296
183 Runtime_Bad_Block       0x0032   100   100   001    Old_age   Always       -       147
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
185 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       65535
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       735
188 Command_Timeout         0x0032   100   096   000    Old_age   Always       -       23
189 High_Fly_Writes         0x003a   100   100   001    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   056   043   040    Old_age   Always       -       44 (Min/Max 18/44)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       40
192 Power-Off_Retract_Count 0x0022   100   100   000    Old_age   Always       -       15663343
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       13096
194 Temperature_Celsius     0x0022   056   043   040    Old_age   Always       -       44 (Min/Max 18/44)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 797 (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 797 occurred at disk power-on lifetime: 9273 hours (386 days + 9 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 41 80 d1 b9 0f 40  Error: UNC at LBA = 0x000fb9d1 = 1030609

  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 08 80 d0 b9 0f 40 00      04:27:29.543  READ FPDMA QUEUED
  ef 10 02 00 00 00 a0 00      04:27:29.543  SET FEATURES [Enable SATA feature]
  ec 00 00 00 00 00 a0 00      04:27:29.542  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 00      04:27:29.542  SET FEATURES [Set transfer mode]
  ef 10 02 00 00 00 a0 00      04:27:29.541  SET FEATURES [Enable SATA feature]

Error 796 occurred at disk power-on lifetime: 9273 hours (386 days + 9 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 41 00 d1 b9 0f 40  Error: UNC at LBA = 0x000fb9d1 = 1030609

  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 08 00 d0 b9 0f 40 00      04:27:29.432  READ FPDMA QUEUED
  60 08 f0 98 18 5a 40 00      04:27:29.430  READ FPDMA QUEUED
  60 10 e8 80 18 5a 40 00      04:27:29.430  READ FPDMA QUEUED
  60 58 e0 20 18 5a 40 00      04:27:29.430  READ FPDMA QUEUED
  60 08 d8 08 18 5a 40 00      04:27:29.430  READ FPDMA QUEUED

Error 795 occurred at disk power-on lifetime: 9272 hours (386 days + 8 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 41 48 d1 b9 0f 40  Error: UNC at LBA = 0x000fb9d1 = 1030609

  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 20 50 40 3b 18 40 00      04:17:49.037  READ FPDMA QUEUED
  60 08 48 d0 b9 0f 40 00      04:17:49.037  READ FPDMA QUEUED
  ef 10 02 00 00 00 a0 00      04:17:49.036  SET FEATURES [Enable SATA feature]
  ec 00 00 00 00 00 a0 00      04:17:49.035  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 00      04:17:49.035  SET FEATURES [Set transfer mode]

Error 794 occurred at disk power-on lifetime: 9272 hours (386 days + 8 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 41 38 d1 b9 0f 40  Error: UNC at LBA = 0x000fb9d1 = 1030609

  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 20 40 a0 24 28 40 00      04:17:48.975  READ FPDMA QUEUED
  60 08 38 d0 b9 0f 40 00      04:17:48.947  READ FPDMA QUEUED
  60 10 30 20 c3 94 40 00      04:17:48.946  READ FPDMA QUEUED
  60 08 28 10 c3 94 40 00      04:17:48.946  READ FPDMA QUEUED
  60 38 20 d0 c2 94 40 00      04:17:48.946  READ FPDMA QUEUED

Error 793 occurred at disk power-on lifetime: 9269 hours (386 days + 5 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 01 d0 b9 0f ed  Error: UNC at LBA = 0x0d0fb9d0 = 219134416

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  24 00 01 d0 b9 0f e0 00      00:50:30.853  READ SECTOR(S) EXT
  ec 00 01 00 00 00 40 00      00:50:30.843  IDENTIFY DEVICE
  60 88 08 d0 55 b9 40 00      00:50:30.842  READ FPDMA QUEUED
  60 88 f8 58 56 b9 40 00      00:50:30.828  READ FPDMA QUEUED
  60 08 68 48 ba 94 40 00      00:50:30.819  READ FPDMA QUEUED

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       90%      9273         756005329
# 2  Short offline       Completed: read failure       90%      9272         756005329
# 3  Short offline       Completed: read failure       90%      9272         756005329
# 4  Short offline       Completed: read failure       90%      9269         756005329
# 5  Short offline       Completed: read failure       90%      9268         756005328
# 6  Short offline       Completed: read failure       90%      9265         756005328
# 7  Short offline       Completed: read failure       80%      9264         756005304
# 8  Short offline       Completed: read failure       90%      9200         1056152
# 9  Short offline       Completed without error       00%      7614         -
#10  Extended offline    Completed without error       00%      7611         -
#11  Short offline       Completed without error       00%      7608         -
#12  Short offline       Interrupted (host reset)      80%      7605         -
#13  Extended offline    Completed without error       00%      7605         -
#14  Short offline       Completed without error       00%      7602         -
#15  Extended offline    Interrupted (host reset)      90%      5957         -
#16  Short offline       Completed without error       00%      5957         -
#17  Short offline       Completed without error       00%      2743         -
#18  Short offline       Completed without error       00%      2285         -
#19  Extended offline    Completed without error       00%      2284         -
#20  Short offline       Completed without error       00%      2281         -

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.

anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#140 Le 20/01/2023, à 15:50

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

En fait le dernier test a toujours le N° 1

Maintenant, on en est  au secteur 756005329  qu il faut réparer suivant la procédure que je t ai donnée.

Dans la foulée, tu testeras aussi les N° 75600530 75600531 75600532 75600533 756005334 et 75600535


Je vais y ajouter qu au bout de 5 minutes il  faut enquêter.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#141 Le 20/01/2023, à 16:03

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

En fait, je vois bien que je n'y comprends rien !!!
Peux-tu me donner à nouveau la procédure à suivre maintenant ?


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#142 Le 20/01/2023, à 16:22

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

En fait, on traite la ligne

# 1  Short offline       Completed: read failure       90%      9273         756005329

qu'il faut réparer et ensuite on réparera les autres....
Mais je n'ai pas compris quelle est la démarche pour le faire ?


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#143 Le 20/01/2023, à 16:23

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Je suis en train de préparer un script plus automatique, mais pas encore au point.

A) Affectation du nouveau numéro.

  j=756005329 

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

-------------------------------------

A) Affectation du nouveau numéro.

  j=756005330

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

-------
A) Affectation du nouveau numéro.

  j=756005331

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

------
A) Affectation du nouveau numéro.

    j=756005332

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

---------
A) Affectation du nouveau numéro.

  j=756005333

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

--------
A) Affectation du nouveau numéro.

  j=756005334

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

--------

A) Affectation du nouveau numéro.

  j=756005335

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

D) et relance

sudo smartctl -t short /dev/sda

E) Puis au bout de cinq minutes environ, récupérer le résultat.

sudo smartctl -l selftest /dev/sda

F) Analyser le résultat de la première ligne et repartir pour un tour de réparation de 8 secteurs si le test  s'est planté.
# 1  Short offline       Completed: read failure       90%      9273         756005329

Dernière modification par geole (Le 20/01/2023, à 16:28)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#144 Le 20/01/2023, à 17:05

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

C'est la ligne #2 qui correspond au résultat que tu attendais ....

anneneige@anneneige-Latitude-E5530-non-vPro:~$   j=756005329 
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
[sudo] Mot de passe de anneneige : 
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,242286 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d1 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005329: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$   j=756005330
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,288854 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d2 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005330: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ j=756005332
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,30646 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005332: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$   j=756005333
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,265778 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d5 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005333: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$   j=756005334
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,278634 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d6 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005334: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ j=756005335
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,256782 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d7 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005335: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 15:48:42 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -l selftest /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
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       90%      9274         756005331
# 2  Short offline       Completed: read failure       90%      9273         756005329
# 3  Short offline       Completed: read failure       90%      9272         756005329
# 4  Short offline       Completed: read failure       90%      9272         756005329
# 5  Short offline       Completed: read failure       90%      9269         756005329
# 6  Short offline       Completed: read failure       90%      9268         756005328
# 7  Short offline       Completed: read failure       90%      9265         756005328
# 8  Short offline       Completed: read failure       80%      9264         756005304
# 9  Short offline       Completed: read failure       90%      9200         1056152
#10  Short offline       Completed without error       00%      7614         -
#11  Extended offline    Completed without error       00%      7611         -
#12  Short offline       Completed without error       00%      7608         -
#13  Short offline       Interrupted (host reset)      80%      7605         -
#14  Extended offline    Completed without error       00%      7605         -
#15  Short offline       Completed without error       00%      7602         -
#16  Extended offline    Interrupted (host reset)      90%      5957         -
#17  Short offline       Completed without error       00%      5957         -
#18  Short offline       Completed without error       00%      2743         -
#19  Short offline       Completed without error       00%      2285         -
#20  Extended offline    Completed without error       00%      2284         -
#21  Short offline       Completed without error       00%      2281         -

anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#145 Le 20/01/2023, à 17:14

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Un a été oublié
A) Affectation du nouveau numéro.

  j=756005331

[B) lecture standard de vérification que ce n'est pas lisible

sudo dd if=/dev/sda of=/dev/null count=1  skip=$j

C) Si pas lisible, lecture forcée de vérification que ce qui est lu    est composée uniquement de zéros et si oui réparation

A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"

D) et relance

sudo smartctl -t short /dev/sda

E) Puis au bout de cinq minutes environ, récupérer le résultat.

sudo smartctl -l selftest /dev/sda

F) Analyser le résultat de la première ligne et repartir pour un tour de réparation de 8 secteurs si le test  s'est planté.
# 1  Short offline       Completed: read failure       90%      9273         756005329


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#146 Le 20/01/2023, à 17:34

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

La ligne # 1 est sans erreur mais le remaining est à 00% : est-ce que c'est bon signe ?

anneneige@anneneige-Latitude-E5530-non-vPro:~$  j=756005331
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo dd if=/dev/sda of=/dev/null count=1  skip=$j
[sudo] Mot de passe de anneneige : 
dd: erreur de lecture dans '/dev/sda': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 0,327739 s, 0,0 kB/s
anneneige@anneneige-Latitude-E5530-non-vPro:~$ A=$(echo $(sudo   hdparm  --yes-i-know-what-i-am-doing  --read-sector  $j  /dev/sda |  cut -d":" -f2))
if [ "$A" = "succeeded 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000" ]; then echo On peut réparer; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/sda; else echo Bonne lecture du secteur $j; fi
sudo smartctl -a /dev/sda | egrep "Pending|Reallocated"
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 40 51 ed 01 11 04 00 00 a0 d3 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On peut réparer

/dev/sda:
re-writing sector 756005331: succeeded
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -t short /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Fri Jan 20 16:22:54 2023 CET
Use smartctl -X to abort test.
anneneige@anneneige-Latitude-E5530-non-vPro:~$ sudo smartctl -l selftest /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-58-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      9275         -
# 2  Short offline       Completed: read failure       90%      9274         756005331
# 3  Short offline       Completed: read failure       90%      9273         756005329
# 4  Short offline       Completed: read failure       90%      9272         756005329
# 5  Short offline       Completed: read failure       90%      9272         756005329
# 6  Short offline       Completed: read failure       90%      9269         756005329
# 7  Short offline       Completed: read failure       90%      9268         756005328
# 8  Short offline       Completed: read failure       90%      9265         756005328
# 9  Short offline       Completed: read failure       80%      9264         756005304
#10  Short offline       Completed: read failure       90%      9200         1056152
#11  Short offline       Completed without error       00%      7614         -
#12  Extended offline    Completed without error       00%      7611         -
#13  Short offline       Completed without error       00%      7608         -
#14  Short offline       Interrupted (host reset)      80%      7605         -
#15  Extended offline    Completed without error       00%      7605         -
#16  Short offline       Completed without error       00%      7602         -
#17  Extended offline    Interrupted (host reset)      90%      5957         -
#18  Short offline       Completed without error       00%      5957         -
#19  Short offline       Completed without error       00%      2743         -
#20  Short offline       Completed without error       00%      2285         -
#21  Extended offline    Completed without error       00%      2284         -
anneneige@anneneige-Latitude-E5530-non-vPro:~$ 

Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#147 Le 20/01/2023, à 18:22

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Remaining   veut dire reste à faire. 0%
Donc  c'est fini.      C'est le moment d'aller voir ce qu'en pense  l'application disque.

C'est dommages je viens de finir le script....
Tu n'auras donc pas l'occasion de  l'utiliser.  Mais je le dépose  au cas où quelqu'un en aurait besoin ou souhaiterait l'améliorer.

DSK=sda #### Disque à réparer
j=200 #### Numéro premier secteur à tester.
n=60  #### Nombre de secteurs consécutifs à tester.
f=$(($j+$n)); for ((k=$j;k<$f;k++));do
sudo dd if=/dev/$DSK bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP ; A=$(cat /tmp/REP)
if [[ $A =~ "1+0 enregistrements lus" ]]; then echo bonne lecture du secteur $j; else
  if [[ $A =~ "0+0 enregistrements lus" ]]; then echo réparation du secteur $i; sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/$DSK; sleep 0.2; sudo dd if=/dev/$DSK bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP;A=$(cat /tmp/REP); 
    if [[ $A =~ "1+0 enregistrements lus" ]]; then echo bonne Réparation du secteur $j; else echo -e "\n\a\E[31mMAUVAISE REPARATION DU SECTEUR $j \E[0m"; fi; else echo -e "\n\a\E[31mINCIDENT INCONNU AU SECTEUR $j \E[0m"; cat /tmp/REP; fi ; fi ;  j=$(($j+1)) ; done
sudo smartctl -a /dev/$DSK | egrep "Pending|Reallocated"

Dernière modification par geole (Le 20/01/2023, à 18:36)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#148 Le 20/01/2023, à 18:40

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Je n'en reviens pas : Échec de l'auto-test a disparu !!!

https://zupimages.net/viewer.php?id=23/03/fht7.png

Cela veut-il dire que c'est bon ?


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne

#149 Le 20/01/2023, à 19:04

geole

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

L'application disque te disait que  les tests smartmontools n'étaient pas finis. C'est pour cela qu'on a réparé afin de les finir.

Ce n'étaient  que les tests courts et pas un test long.
Auparavant  je proposais de faire des tests longs mais j'en suis revenu  à  cause de la durée lorsque le disque est de mauvaise qualité  et qu'il faut réparer comme tu viens de le faire. Pour quelques secteurs c'est jouable, pour des dizaines de secteurs cela devient pénible.  On ne sait jamais quand on finit.
C'est pour cela que maintenant, je propose  l'application ddrescue dix fois plus rapide  que la commande badblocks mais moins complète car la commande badblocks vérifie aussi l'écriture et si ce qu'on relit est bien ce qu'on a écrit.
Cela permet de collecter la totalité des secteurs illisibles avant de décider de réparer ou pas.
Mais lorsqu'on l'a lancée sur ton disque, il n'a pas supporté.

Dernière modification par geole (Le 20/01/2023, à 20:20)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity

Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#150 Le 20/01/2023, à 19:16

Anne-Neige

Re : [RÉSOLU !] Problèmes au démarrage d'Ubuntu 22.4 LTS

Alors il me reste à te remercier infiniment : pour ta patience, ta persévérance et tes compétences.

En plus, j'ai appris beaucoup de choses, notamment, les commandes smartctl, ddrescue, etc...

Je garde ton dernier script de côté au cas où j'aurais de nouveaux problèmes...

Je vais mettre mon sujet en résolu...

Et, encore une fois merci et bravo !

Bonne soirée et bon week-end,
Anne-Neige


Dell Latitude 5580 | Intel Core i7-7600U | 2.8 GHz | 16 Go RAM | 1 To SSD |
Ubuntu 22.04.3 LTS

Hors ligne