#26 Le 12/01/2024, à 23:14
- jpt2042
Re : Démarrage anormal
La commande "https://novabench.com/parts/ssd/samsung … hegr-000h1" envoie sur le site de Novabench, qui propose des outils d'analyse, mais pas de firmware.
"https://semiconductor.samsung.com/consu … ort/tools/" permet d'aller sur le site de Samsung et d'y voir une liste de firmware pour un grand nombre de SSD. Malheureusement, je n'ai pas trouvé le mien ans cette liste.
J'ai demandé à Bard quel est le firmware pour mon disque. Il dit d'aller sur le site de Samsung, mais a précisé que le dernier firmware est le CXB73H1Q, celui que j'ai.
Si je remplace mon disque par un neuf, suffira-t-il d'une clé bootable pour refaire l'installation, ou aurai-je besoin de trouver des firmwares ?
JP
Hors ligne
#27 Le 12/01/2024, à 23:54
- geole
Re : Démarrage anormal
Si tu installes un disque neuf sera-t-il mieux accepté par ubuntu?
Je rappelle que ton disque est en bon état et si bard ( dont je découvre le nom) dit que le firmware est à jour, c'est parfait.
Dernière modification par geole (Le 13/01/2024, à 00:00)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#28 Le 13/01/2024, à 00:57
- jpt2042
Re : Démarrage anormal
Bard est l'IA de Google.
alduc31 m'a dit : "Ton disque SSD a très certainement des problèmes qui risquent de rendre ton système inutilisable." J'en avais conclu qu'il est en fin de vie (le disque, pas alduc31). Si tu me dis que ce n'est pas le cas et qu'on peut le réparer, j'aime autant.
JP
Hors ligne
#29 Le 13/01/2024, à 11:55
- geole
Re : Démarrage anormal
Bonjour,
Au démarrage (Kubuntu 23.10), j'ai un temps d'attente anormalement long (1 minute), puis le message :
"You are in emergency mode. After logging in, type "journalct1 -xb" to view system logs, "systemct1 reboot" to reboot, "systemct1 default" or "exit" to boot in default mode.
Press Enter for maintenance or press Control+D to continue"
Si fait Ctrl+D, le système démarre normalement. Je ne sais pas faire autre chose.
Bonjour.
L'incident reviendra certainement.
Dans ce cas, en priorité ne suis pas exactement la consigne
J'ai constataté que dans 99% des cas, frapper cette commande est suffisant.
journalctl -b -p err
Elle produit moins de lignes.
De nouveau, tu en fera la/les photos afin de voir la cause.
Pense qu'à chaque fois que tu arrête l'ordinateur, le redémarrage doit réparer.
Suivant ce qu'il y a à réparer, cela peut passer inaperçu ou pas.
Dernière modification par geole (Le 13/01/2024, à 15:14)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#30 Le 13/01/2024, à 12:44
- jpt2042
Re : Démarrage anormal
Bonjour,
Je viens de lancer la commande. Elle produit un liste considérable. En voici une partie :
jp@jpt:~$ journalctl -p err
déc. 27 09:49:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 10:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 10:49:11 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 11:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 11:49:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 12:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 12:49:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 13:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 13:49:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 14:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 22:49:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 23:19:10 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 27 23:19:10 jpt smartd[798]: Warning via /usr/share/smartmontools/smartd-runner to root produced unexpected output (183 bytes) to STDOUT/STDERR:
déc. 27 23:19:10 jpt smartd[798]: /etc/smartmontools/run.d/10mail:
déc. 27 23:19:10 jpt smartd[798]: Your system does not have /usr/bin/mail. Install the mailx or mailutils package
déc. 27 23:19:10 jpt smartd[798]: run-parts: /etc/smartmontools/run.d/10mail exited with return code 1
déc. 27 23:19:10 jpt smartd[798]: Warning via /usr/share/smartmontools/smartd-runner to root: failed (32-bit/8-bit exit status: 256/1)
déc. 27 23:49:11 jpt smartd[798]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
-- Boot e05417f799ab4e228c30bff96c55e7e1 --
déc. 28 09:47:34 jpt kernel: x86/cpu: SGX disabled by BIOS.
déc. 28 09:47:34 jpt kernel: scsi 6:0:0:1: Wrong diagnostic page; asked for 1 got 8
déc. 28 09:47:34 jpt kernel: scsi 6:0:0:1: Failed to get diagnostic page 0x1
déc. 28 09:47:34 jpt kernel: scsi 6:0:0:1: Failed to bind enclosure -19
déc. 28 09:47:37 jpt smartd[787]: Device: /dev/sdb [SAT], no ATA CHECK POWER STATUS support, ignoring -n Directive
déc. 28 09:47:37 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 09:47:38 jpt smartd[787]: Device: /dev/nvme0, number of Error Log entries increased from 4970 to 4986
déc. 28 09:47:38 jpt smartd[787]: Warning via /usr/share/smartmontools/smartd-runner to root produced unexpected output (183 bytes) to STDOUT/STDERR:
déc. 28 09:47:38 jpt smartd[787]: /etc/smartmontools/run.d/10mail:
déc. 28 09:47:38 jpt smartd[787]: Your system does not have /usr/bin/mail. Install the mailx or mailutils package
déc. 28 09:47:38 jpt smartd[787]: run-parts: /etc/smartmontools/run.d/10mail exited with return code 1
déc. 28 09:47:38 jpt smartd[787]: Warning via /usr/share/smartmontools/smartd-runner to root: failed (32-bit/8-bit exit status: 256/1)
déc. 28 09:47:51 jpt sddm-helper[1474]: gkr-pam: unable to locate daemon control file
déc. 28 09:47:54 jpt systemd[1476]: /run/user/1000/systemd/generator.late/app-___firefox___@autostart.service:18: WorkingDirectory= path is not absolute, ignoring:
déc. 28 10:17:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 10:47:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 11:17:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 11:47:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 12:17:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 13:47:39 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 28 14:17:38 jpt smartd[787]: Device: /dev/sda [SAT], 56 Currently unreadable (pending) sectors
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: action 'action-2-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for additional error messages before this one. [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
déc. 29 17:11:46 jpt rsyslogd[823]: file '/var/log/syslog'[7] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS error: No space left on device [v8.2306.0 try https://www.rsyslog.com/e/2027 ]
etc/dva est le disque dur, etc/dvb une clé USB, etc/nvme01p est le disque SSD.
Hors ligne
#31 Le 13/01/2024, à 15:21
- geole
Re : Démarrage anormal
J'avais oublié un paramètre.
Installe l'application smartmontools et donne le retour de
sudo smartctl -s on -a /dev/sda
un extrait du boot-info
# /home was on /dev/sda1 during installation
UUID=2b117b42-a26f-4cad-9786-fecb7cd31ec7 /home ext4 defaults
Lorsque la partition home est séparée de la partition logicielle et qu'elle a un petit problème insignifiant, on a typiquement ce type de plantage puisque le démarrage ne répare pas la partition contenant home.
Lorsqu'on dispose d'un nvme , on a intérêt à laisser le home avec le nvme afin d'améliorer le temps de démarrage.
On utilise alors le disque dur pour y stocker uniquement les données.
Un lien de remise en état. Chapitre 9 méthode six
Dernière modification par geole (Le 13/01/2024, à 15:37)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#32 Le 13/01/2024, à 16:06
- jpt2042
Re : Démarrage anormal
Voici :
p@jpt:~$ sudo smartctl -s on -a /dev/sda
[sudo] password for jp:
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.5.0-14-generic] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 3.5" DT01ACA... Desktop HDD
Device Model: TOSHIBA DT01ACA100
Serial Number: X7N1MSZNS
LU WWN Device Id: 5 000039 fd3ced61a
Firmware Version: MS2OA800
User Capacity: 1000204886016 bytes [1,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5319
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Jan 13 15:05:12 2024 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: ( 7798) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
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: ( 130) 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 076 016 Pre-fail Always - 0
2 Throughput_Performance 0x0027 143 100 054 Pre-fail Always - 66
3 Spin_Up_Time 0x0023 128 100 024 Pre-fail Always - 176 (Average 182)
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 2617
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 176 (0 12)
7 Seek_Error_Rate 0x002f 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0025 115 100 020 Pre-fail Offline - 34
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 27482
10 Spin_Retry_Count 0x0033 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 2577
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
185 Unknown_Attribute 0x0032 001 001 000 Old_age Always - 16777215
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 65536
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 8679063552
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 072 056 000 Old_age Always - 28 (Min/Max 22/28)
192 Power-Off_Retract_Count 0x0032 098 098 000 Old_age Always - 2722
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 2722
194 Temperature_Celsius 0x0022 214 139 000 Old_age Always - 28 (Min/Max 13/44)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 13
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 64
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 90% 27481 112686384
# 2 Short offline Completed: read failure 90% 27480 112686384
# 3 Short offline Completed without error 00% 20801 -
# 4 Short offline Completed without error 00% 18009 -
# 5 Short offline Completed without error 00% 15734 -
# 6 Short offline Completed without error 00% 15734 -
# 7 Short offline Completed without error 00% 0 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Hors ligne
#33 Le 13/01/2024, à 16:24
- geole
Re : Démarrage anormal
p@jpt:~$ sudo smartctl -s on -a /dev/sda === START OF INFORMATION SECTION === Model Family: Toshiba 3.5" DT01ACA... Desktop HDD Device Model: TOSHIBA DT01ACA100 Sector Sizes: 512 bytes logical, 4096 bytes physical ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 176 (0 12) 9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 27482 185 Unknown_Attribute 0x0032 001 001 000 Old_age Always - 16777215 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 13 197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 64 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed: read failure 90% 27481 112686384 # 2 Short offline Completed: read failure 90% 27480 112686384
Je vois que tu as commencé à traiter le problème en en identifiant les numéros
Il y en a 64 à trouver. mais comme ils sont probablement par paquets de 8, cela pourrait se faire en passage
Voici mon script de réparation pour ce contexte
DSKin=sda #### Disque à réparer
j=112686384 #### Numéro premier secteur à tester.
n=8 #### Nombre de secteurs consécutifs à tester.
f=$(($j+$n)); for ((k=$j;k<$f;k++));do
sudo dd if=/dev/$DSKin bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP ; A=$(cat /tmp/REP | sed 's/\xc2\xa0//g')
if [[ $A =~ "1+0enregistrements lus" ]]; then echo bonne lecture du secteur $j; else if [[ $A =~ "0+0enregistrements lus" ]]; then echo réparation du secteur $i; echo sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/$DSKin; sleep 0.2; sudo dd if=/dev/$DSKin bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP;A=$(cat /tmp/REP | sed 's/\xc2\xa0//g'); if [[ $A =~ "1+0enregistrements 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/$DSKin | egrep "Pending|Reallocated"
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#34 Le 13/01/2024, à 16:42
- jpt2042
Re : Démarrage anormal
$ DSKin=sda #### Disque à réparer
j=112686384 #### Numéro premier secteur à tester.
n=8 #### Nombre de secteurs consécutifs à tester.
f=$(($j+$n)); for ((k=$j;k<$f;k++));do
sudo dd if=/dev/$DSKin bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP ; A=$(cat /tmp/REP | sed 's/\xc2\xa0//g')
if [[ $A =~ "1+0enregistrements lus" ]]; then echo bonne lecture du secteur $j; else if [[ $A =~ "0+0enregistrements lus" ]]; then echo réparation du secteur $i; echo sudo hdparm --yes-i-know-what-i-am-doing --write-sector $j /dev/$DSKin; sleep 0.2; sudo dd if=/dev/$DSKin bs=512 count=1 skip=$j 1>/dev/null 2>/tmp/REP;A=$(cat /tmp/REP | sed 's/\xc2\xa0//g'); if [[ $A =~ "1+0enregistrements 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/$DSKin | egrep "Pending|Reallocated"
[sudo] password for jp:
INCIDENT INCONNU AU SECTEUR 112686384
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 7,69638 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686385
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,8056 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686386
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,94094 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686387
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,89217 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686388
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,85315 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686389
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,91433 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686390
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,98711 s, 0,0 kB/s
INCIDENT INCONNU AU SECTEUR 112686391
dd: error reading '/dev/sda': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 3,92372 s, 0,0 kB/s
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 176 (0 12)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 13
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 64
Hors ligne
#35 Le 13/01/2024, à 16:47
- jpt2042
Re : Démarrage anormal
J'ai essayé fsck et e2fsck et e2fsck -b 32768. Chaque fois, j'ai la réponse :
~$ e2fsck -b 32768 /dev/sda/
e2fsck 1.47.0 (5-Feb-2023)
e2fsck: Not a directory while trying to open /dev/sda/
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Hors ligne
#36 Le 13/01/2024, à 18:29
- geole
Re : Démarrage anormal
La commande doit indiquer la partition et pas le disque
sudo fsck /dev/sda1
A priori la réparation n'a pas fonctionné,
Dernière modification par geole (Le 13/01/2024, à 18:36)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#37 Le 13/01/2024, à 18:31
- jpt2042
Re : Démarrage anormal
J'ai déjà essayé aussi :
jp@jpt:~$ sudo fsck /dev/sda1
[sudo] password for jp:
fsck from util-linux 2.39.1
e2fsck 1.47.0 (5-Feb-2023)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.
Hors ligne
#38 Le 13/01/2024, à 18:42
- geole
Re : Démarrage anormal
C'est logique. S'il est monté, il n'y a pas lieu de faire un fsck.
Les secteurs illisibles semblent ne pas appartenir à des structures de gestion . Probablement à des fichiers ou à plus rien.
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne