Résolu le 17-07-19 Problème au démarrage de Cinnamon 18.3. Initramfs

Assistance concernant Linux Mint
Joan
Messages : 68
Enregistré le : dim. 25 mars 2018 20:11

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par Joan »

Dernier message de la page précédente :

J'ai donc fait:

I - initramfs

Donc voilà ce que donne fsck /dev/sda sur initramfs :

Code : Tout sélectionner

(Initramfs) fsck /dev/sda
fsck from util-linux 2.27.1 
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda[   22.558440]  ata1: exception Emask 0x50 SAct 0x0 SErr 0x4090800 action 0xe frozen
[   22.558440] ata1 : irq_stat 0x00400040, connection status changed
[   22.558441] ata1 : Serror : { HostInt PHYRdyChg 10BBB DevExch }
Pour voir j’ai essayé dans le terminal :

Code : Tout sélectionner

mint@mint ~$ fsck /dev/sda
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
e2fsck.ext2: Permission denied while trying to open /dev/sda
You must have r/w access to the files system or be root
II - Comment passer en azerty ? J’ai fait :[/b]
Mal+Alt G / Mal+Alt / Alt+Maj = Toujours en Qwerty...

III - Tests disque dur smartmontools

1. Identifier le device de son disque dur

Code : Tout sélectionner

mint@mint ~ $ sudo dmesg | grep disk
[    4.122200] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.138708] sd 1:0:0:0: [sdb] Attached SCSI disk
[    5.407087] sd 5:0:0:0: [sdc] Attached SCSI removable disk
[    5.856060] sd 6:0:0:1: [sde] Attached SCSI removable disk
[    5.873662] sd 6:0:0:0: [sdd] Attached SCSI removable disk
[    5.875049] sd 6:0:0:2: [sdf] Attached SCSI removable disk
[    5.875521] sd 6:0:0:3: [sdg] Attached SCSI removable disk
[   37.113902] sd 7:0:0:0: [sdh] Attached SCSI removable disk
Donc: disques sda, sdb

2. Installer le paquet smartmontools

mint@mint ~ $ sudo apt-get install smartmontools = ok fait

whereis smartctl

Code : Tout sélectionner

mint@mint ~ $ whereis smartctl
[color=#00BF00]smartctl: /usr/sbin/smartctl /usr/share/man/man8/smartctl.8.gz[/color]
mint@mint ~ $
3.1. Obtenir des informations sur le disque (informations standards) (option -i)

Code : Tout sélectionner

mint@mint ~ $ sudo  smartctl -i /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST2000DM001-1ER164
Serial Number:    Z4Z2CELM
LU WWN Device Id: 5 000c50 07ac3fa07
Firmware Version: CC25
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Jul 15 17:13:20 2019 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
mint@mint ~ $ 
3.2. Obtenir le maximun d'informations sur le disque (analyse détaillée) (option -a ou –al

Plutôt positif:
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

Code : Tout sélectionner

mint@mint ~ $ sudo smartctl -a /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST2000DM001-1ER164
Serial Number:    Z4Z2CELM
LU WWN Device Id: 5 000c50 07ac3fa07
Firmware Version: CC25
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Jul 15 17:16:03 2019 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(   97) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 225) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x1085)	SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   120   099   006    Pre-fail  Always       -       238022024
  3 Spin_Up_Time            0x0003   098   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   093   093   020    Old_age   Always       -       7885
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   062   060   030    Pre-fail  Always       -       1795363
  9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       10200
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       3197
183 Runtime_Bad_Block       0x0032   096   096   000    Old_age   Always       -       4
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   064   055   045    Old_age   Always       -       36 (Min/Max 30/36)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1085
193 Load_Cycle_Count        0x0032   088   088   000    Old_age   Always       -       24526
194 Temperature_Celsius     0x0022   036   045   000    Old_age   Always       -       36 (0 10 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       8497h+41m+39.204s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2458522553
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       1943814115

SMART Error Log Version: 1
No Errors Logged

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

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
mint@mint ~ $
3.3 Surveiller la santé de son disque (uniquement) (option -H)

Code : Tout sélectionner

mint@mint ~ $ sudo smartctl -H /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
mint@mint ~ $ 
4. Réaliser des tests sur son disque
4.1. Estimer la durée des tests (option -c)

Code : Tout sélectionner

mint@mint ~ $ sudo smartctl -c /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(   97) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 225) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x1085)	SCT Status supported.
mint@mint ~ $ 
4.2. Effectuer un test court (option -t short)

Code : Tout sélectionner

mint@mint ~ $ sudo smartctl -t short /dev/sda

smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, 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 1 minutes for test to complete.
Test will complete after Mon Jul 15 17:38:04 2019

Use smartctl -X to abort test.
mint@mint ~ $
4.3. Afficher les résultats du test court (option -l selftest )

Code : Tout sélectionner

mint@mint ~ $ sudo smartctl -l selftest /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, 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%     10201         -
mint@mint ~ $ 
De mon modeste point de vue il ne semble pas y avoir de pb sur le disque dur:
SMART overall-health self-assessment test result: PASSED

Le problème alors est peut-être ailleurs ?

Juste avant ce problème je me souviens avoir eu un message dans lequel il était question de "cache". Puis je n'arrivais plus à fermer mes fichiers: pb Entrée/Sortie?

Bon j'ai déjà récupéré tous mes fichiers ce qui n'est pas rien.

Merci de vos avis.
Ordi1 : Linux Mint 18.3/Cinnamon. Kernel: 4.4.0-92-generic i686 (32 bit). CPU: Quad core Intel Core i5-4690 Haswell. Graphics Card: Intel Xeon E3-1200 v3/4th Gen Core Processor. GLX Renderer: Mesa DRI Intel Haswell Desktop x86/MMX/SSE2. RAM: 8Go.

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par zeb »

Salut,
Joan a écrit :
lun. 15 juil. 2019 20:42
II - Comment passer en azerty ?
viewtopic.php?p=69927#p69927 ;)

Joan
Messages : 68
Enregistré le : dim. 25 mars 2018 20:11

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par Joan »

Merci Zeb, c'est génial!
Ordi1 : Linux Mint 18.3/Cinnamon. Kernel: 4.4.0-92-generic i686 (32 bit). CPU: Quad core Intel Core i5-4690 Haswell. Graphics Card: Intel Xeon E3-1200 v3/4th Gen Core Processor. GLX Renderer: Mesa DRI Intel Haswell Desktop x86/MMX/SSE2. RAM: 8Go.

Joan
Messages : 68
Enregistré le : dim. 25 mars 2018 20:11

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par Joan »

Bonjour Arghlub,

J’ai suivi tes indications pour vérifier si je n’aurais pas fait
des liens symboliques vers d’autres répertoires.
Voici ce que je trouve :

Code : Tout sélectionner

mint@mint ~ $ ls -la . | egrep -i "images|documents|pictures"
drwxr-xr-x  2 mint mint   40 Jul 16 10:48 Documents
drwxr-xr-x  2 mint mint   40 Jul 16 10:48 Pictures
mint@mint ~ $
Il ne me semble donc pas qu’il y ait des liens symboliques.

Merci pour cette indication.
Ordi1 : Linux Mint 18.3/Cinnamon. Kernel: 4.4.0-92-generic i686 (32 bit). CPU: Quad core Intel Core i5-4690 Haswell. Graphics Card: Intel Xeon E3-1200 v3/4th Gen Core Processor. GLX Renderer: Mesa DRI Intel Haswell Desktop x86/MMX/SSE2. RAM: 8Go.

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par arghlub »

Non pas de lien symbolique pour tes répertoires "Documents" et "Pictures".
Si tu veux connaître le poids de chacun de ces dossiers , lance cette commande :

Code : Tout sélectionner

sudo du -hd1 ~ | egrep "Documents|Pictures"
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Joan
Messages : 68
Enregistré le : dim. 25 mars 2018 20:11

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par Joan »

Ça fait drôlement plaisir quand après avoir fait Reboot et Enter on retrouve l'accès à son ordinateur!

Sous Initramfs en faisant exit j’ai identifier le périphérique qui ne marche pas :
/ dev/sdb2 puis j'ai fait : fsck -y /dev/sdb2

Là, le système a fait une grosse réparation (de nombreuses lignes ont défilées).

Puis à la fin j'ai fait reboot et Enter et j'ai retrouvé mon bureau comme par enchantement...

J'ai pu sauvegarder des fichiers qui ne l'avaient pas été (ce que je comprends pas du reste).

J’aimerais comprendre ce qui a pu se passer pour veiller à ce que ça ne se reproduise plus.

Merci à Alain et Cyrille qui m'ont bien aidé.

Je fais régulièrement des mises à jour de niveau 1, 2 et 3.
Par prudence je ne touche pas au niveau 4 quand elles sont cochées.
Je le ferai bien cependant pour deux qui sont cochées:
4 x Linux firmware 1.157. 20 vers 1.157.21
4 x Linux-libc-dev 4.4.0-131.157 vers 4.4.0-154. 181
Est-ce risqué?
Ordi1 : Linux Mint 18.3/Cinnamon. Kernel: 4.4.0-92-generic i686 (32 bit). CPU: Quad core Intel Core i5-4690 Haswell. Graphics Card: Intel Xeon E3-1200 v3/4th Gen Core Processor. GLX Renderer: Mesa DRI Intel Haswell Desktop x86/MMX/SSE2. RAM: 8Go.

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: Problème au démarrage de Cinnamon 18.3. Initramfs

Message par zeb »

Bonjour,
Joan a écrit :
mar. 16 juil. 2019 17:50
Je fais régulièrement des mises à jour de niveau 1, 2 et 3.
Par prudence je ne touche pas au niveau 4 quand elles sont cochées.
Je le ferai bien cependant pour deux qui sont cochées:
4 x Linux firmware 1.157. 20 vers 1.157.21
4 x Linux-libc-dev 4.4.0-131.157 vers 4.4.0-154. 181
Est-ce risqué?
Oui, mais attention, une seule réponse car nous ne sommes plus dans le sujet (qui devrait être en "résolu" et plus en "en cours") ;)
De plus, il y a moult sujets qui traitent de cette même question ;)

Répondre