Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/11/2019, à 01:59

zouzou

initramfs au démarrage

Bonjour, bonsoir

Je viens vers vous car je commence vraiment à désespérer !

Je m'explique, depuis quelques jours mon PC bloque au démarrage avec le message suivant :

/dev/sda2 : UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e. , without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda2 required manual fsck

BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3.2) built-in shell (ash)
Enter 'help' for a list of built-in commands.

( initramfs) _

Suite à ça, j'ai fais les manipulations suivantes :

fsck -y /dev/sda2
fsck - c /dev/sda2
fsck -yv /dev/sda2

la dernière à plutôt fonctionné, mais pas à chaque fois, puis le problème persiste donc est-ce-qu'il y aurait une autre commande à effectuer?
Merci de m'avoir lue, et j'espère que quelqu'un saura m'aider.

Hors ligne

#2 Le 07/11/2019, à 07:19

moko138

Re : initramfs au démarrage

Oui,

fsck -yfv /dev/sda2

(note le -f en plus)
était la bonne réponse logicielle à

/dev/sda2 : (...) RUN fsck MANUALLY.

Mais...

Si tu éteins ton ordi normalement et que le message revient régulièrement, il est à parier que c'est ton disque qui est sur le point de matériellement défuncter.
  Si c'est bien le cas, IL NE FAUT PAS FAIRE DE FSCK ! Parce qu'un fsck dans ces conditions diminue tes chances de récupérer tes données.


Pour vérifier l'état matériel du disque
En session live_USB ou live DVD :

                a) Installer l'utilitaire permettant de voir l'état du disque :

sudo apt-get install --no-install-recommends smartmontools

.
b) Repérer la lettre X exacte attribuée au disque /dev/sdX (elle peut changer entre deux branchements ou démarrages) :

sudo lsblk -o name,fstype,label,size,mountpoint -e 7,11

.
c) Recueillir les données SMART :
en remplaçant X par la lettre trouvée précédemment, faire sans ajouter de chiffre :

sudo smartctl -s on -S on -o off -a /dev/sdX

et en donner le retour complet et entre balises-code.

L'option -o off ci-dessus s'impose quand on soupçonne le mauvais état matériel du disque.
( Sinon, on pourrait mettre -o on ).

Dernière modification par moko138 (Le 07/11/2019, à 07:22)


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#3 Le 07/11/2019, à 10:06

zouzou

Re : initramfs au démarrage

Bonjour Moko,

Merci d'avoir répondu, je vais essayé ça dans la journée (faut que je retrouve le live cd !! tongue )
Bien expliqué en détail, je n'en attendais pas autant lol
Je vous dirais ce qu'il en ait.
Bonne journée et encore merci smile

Hors ligne

#4 Le 10/11/2019, à 02:37

zouzou

Re : initramfs au démarrage

re Moko,
désolée de ne pas avoir répondu plus tôt, mais quelques soucis perso en ce moment.
Alors du coup concernant mon pc, depuis que j'ai posté le message, comme par hasard il n'a plus fait ce fameux message ' initramfs' mais le jour où ça recommence je ferais les manipulations qui m'ont été conseillées et je vous dirais s'il y a du nouveau.
Je pense que vous m'avez envoyé de bonnes ondes, c'est pour cela que ça fonctionne maintenant ! !
Encore merci pour votre réponse big_smilecool

Hors ligne

#5 Le 10/11/2019, à 04:17

moko138

Re : initramfs au démarrage

Non, il ne faut pas attendre !

Et puisque ton système démarre, tu peux installer smartmontools dans ton système.

N'ATTENDS PAS !


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#6 Le 11/11/2019, à 23:18

zouzou

Re : initramfs au démarrage

Bonsoir Moko
voilà j'ai fais les commandes que tu m'as conseillé, je ne comprends pas tout sur les résultats, si tu peux m'éclairer quand tu auras un moment.
Merci en tout cas pour ton aide
Voici les résultats des commandes ci-dessous smile


sandy@sandyzou:~$ sudo smartctl -s on -S on -o off -a /dev/sda2
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-66-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, [url=http://www.smartmontools.org]www.smartmontools.org[/url]

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MQ01ABD...
Device Model:     TOSHIBA MQ01ABD100
Serial Number:    75F1C20AT
LU WWN Device Id: 5 000039 66330379a
Firmware Version: AX003J
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:    Mon Nov 11 22:13:09 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Disabled.

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

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  120) 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: 	 ( 244) 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     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -       1684
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       6454
  5 Reallocated_Sector_Ct   0x0033   100   100   050    Pre-fail  Always       -       3488
  7 Seek_Error_Rate         0x000b   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   081   081   000    Old_age   Always       -       7919
 10 Spin_Retry_Count        0x0033   228   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       3692
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       534
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       177
193 Load_Cycle_Count        0x0032   089   089   000    Old_age   Always       -       117961
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       29 (Min/Max 14/46)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       322
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       760
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
220 Disk_Shift              0x0002   100   100   000    Old_age   Always       -       0
222 Loaded_Hours            0x0032   085   085   000    Old_age   Always       -       6390
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
224 Load_Friction           0x0022   100   100   000    Old_age   Always       -       0
226 Load-in_Time            0x0026   100   100   000    Old_age   Always       -       254
240 Head_Flying_Hours       0x0001   100   100   001    Pre-fail  Offline      -       0

SMART Error Log Version: 1
ATA Error Count: 1112 (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 1112 occurred at disk power-on lifetime: 7882 hours (328 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 00 60 c7 1a 40  Error: UNC at LBA = 0x001ac760 = 1754976

  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 60 c7 1a 40 00      01:11:59.385  READ FPDMA QUEUED
  61 08 f0 18 1d 58 40 00      01:11:59.374  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:11:59.133  FLUSH CACHE EXT
  61 08 70 10 84 19 40 00      01:11:59.132  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:11:59.132  FLUSH CACHE EXT

Error 1111 occurred at disk power-on lifetime: 7882 hours (328 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 48 60 c7 1a 40  Error: UNC at LBA = 0x001ac760 = 1754976

  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 48 60 c7 1a 40 00      01:11:55.297  READ FPDMA QUEUED
  61 48 40 c8 83 19 40 00      01:11:55.289  WRITE FPDMA QUEUED
  61 38 38 b0 3e a0 40 00      01:11:53.561  WRITE FPDMA QUEUED
  61 10 30 88 cb 9c 40 00      01:11:53.561  WRITE FPDMA QUEUED
  61 18 28 28 bf 9c 40 00      01:11:53.561  WRITE FPDMA QUEUED

Error 1110 occurred at disk power-on lifetime: 7882 hours (328 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 00 60 c7 1a 40  Error: UNC at LBA = 0x001ac760 = 1754976

  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 60 c7 1a 40 00      01:10:39.001  READ FPDMA QUEUED
  61 08 f0 40 62 ea 40 00      01:10:38.988  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:10:38.808  FLUSH CACHE EXT
  61 08 e0 38 37 19 40 00      01:10:38.808  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:10:38.687  FLUSH CACHE EXT

Error 1109 occurred at disk power-on lifetime: 7882 hours (328 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 f0 60 c7 1a 40  Error: UNC at LBA = 0x001ac760 = 1754976

  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 f0 60 c7 1a 40 00      01:10:34.821  READ FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:10:32.462  FLUSH CACHE EXT
  61 08 e0 38 36 19 40 00      01:10:32.462  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:10:32.392  FLUSH CACHE EXT
  61 40 d0 f8 34 19 40 00      01:10:32.391  WRITE FPDMA QUEUED

Error 1108 occurred at disk power-on lifetime: 7882 hours (328 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 b8 60 c7 1a 40  Error: UNC at LBA = 0x001ac760 = 1754976

  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 b8 60 c7 1a 40 00      01:08:48.384  READ FPDMA QUEUED
  61 08 b0 98 1b 58 40 00      01:08:48.290  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:08:48.183  FLUSH CACHE EXT
  61 08 a0 90 ee 18 40 00      01:08:48.183  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:08:48.152  FLUSH CACHE EXT

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%       615         -
# 2  Short offline       Completed without error       00%       615         -
# 3  Short offline       Completed without error       00%        36         -

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.

Dernière modification par Nuliel (Le 11/11/2019, à 23:21)

Hors ligne

#7 Le 11/11/2019, à 23:24

Nuliel

Re : initramfs au démarrage

Il est URGENT de sauvegarder les données sur un autre support, ton disque dur part en vrille: 3488 secteurs réalloués, 760 en attente de l'être, c'est beaucoup!

Sinon bizarre que smartctl râle pas alors que tu l'as passé sur une partition et non le disque (/dev/sda2 au lieu de /dev/sda)

Dernière modification par Nuliel (Le 11/11/2019, à 23:25)

Hors ligne

#8 Le 12/11/2019, à 01:39

moko138

Re : initramfs au démarrage

Oui, disque moribond.    Et qui a été secoué :

191 G-Sense_Error_Rate      -       534

/!\  Priorité à la sauvegarde des données sur un support sain.


= =

Naziel,
Le nombre (sdaN) perturbe smartctl quand il y a un adaptateur usb à identifier.
Seulement dans ce cas, jusqu'à plus ample informé. Cf. ./viewtopic.php?pid=21841415#p21841415 (et la Doc, si ma note n'a pas été supprimée).

Et non, smartctl, même perturbé, ne proteste - malheureusement - jamais quand on ajoute un numéro de partition.

Tu trouveras dans le man des détails sur le seul cas où on ajoute un chiffre (ex /dev/sg0 ) : derrière un contrôleur RAID.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#9 Le 12/11/2019, à 14:59

zouzou

Re : initramfs au démarrage

bonjour,

Merci pour vos conseils, je vais voir au plus vite pour me prendre un disque dur externe en espérant que mon pc tienne le coup jusque là :-)
Et merci aussi pour le lien concernant le fait de poster correctement un retour de commande car je n'avais pas trouvé roll lol
Je vous tiens au courant si j'ai du nouveau
à bientôt

Hors ligne

#10 Le 12/11/2019, à 21:11

Nuliel

Re : initramfs au démarrage

Tu peux en profiter pour mettre un ssd à la place du disque dur dans le pc. Ça permettra d'accélérer le pc.
Ok pour le disque externe pour sauvegarder les données

Merci moko!

Hors ligne