#1 Le 11/10/2021, à 11:29
- elcoyote_21
Problème au démarrage - Ermergency mode
Bonjour,
Mon PC principal vient de planté. Il m'a annoncé une erreur sur Firefox, je l'ai redémarré correctement (la souris fonctionait, j'ai donc cliquer sur "éteindre" puis "redémarrer") et là catastrophe, au reboot je me retouve avec le message suivant :
"You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into dafault mode. Press Enter for maintenance (or press control-D to continue)"
Pourriez-vous me guider afin de (tenter de) résoudre ce souci ?
Pour info : Ubuntu 20.04 est installé sur un SSD, et j'ai accès facilement au forum depuis le second PC situé dans la même pièce ( + facile pour faire les manips).
Merci d'avance.
- - - - - - - - - - - - - - - -
Edit :
Le problème a été réglé de la façon suivante : démarrage d'une session live à partir d'Ubuntu sur clé USB
puis depuis le terminal, lancement de la commande
sudo fsck /dev/sdb1
j'ai répondu Oui (o) à toutes les questions posées lors du fsck.
puis reboot de l'ordinateur....et voilà ! (merci à ceux qui m'ont aidé)
Dernière modification par elcoyote_21 (Le 17/10/2021, à 10:20)
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#2 Le 11/10/2021, à 13:24
- malbo
Re : Problème au démarrage - Ermergency mode
"You are in emergency mode. After logging in, type "journalctl -xb" to view system logs,
Ce serait intéressant de faire ce qui est proposé (taper : "journalctl -xb") et de prendre des photos de tout ce qui apparaît en rouge comme geole l'explique dans ce post : https://forum.ubuntu-fr.org/viewtopic.p … #p22242950
En outre, ce serait bien de faire un Boot-info depuis une session live (*) de Ubuntu 20.04 et de donner l'URL de ce Boot-info dans ta réponse : ça permettra d'identifier plus facilement les partitions.
(*) ordi démarré sur une LiveUSB de Ubuntu 20.04, choix "Essayer Ubuntu"
Dernière modification par malbo (Le 11/10/2021, à 13:27)
Hors ligne
#3 Le 11/10/2021, à 15:37
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
Merci pour ton aide malbo.
Le lien vers le post de geole n'a pas l'air de fonctionner. Quoi qu'il en soit, j'ai effectivement des ligne de couleur (orange, rose/rouge et même bleu).
Dans un premier temps, je transmets les "rouges" (j'imagine que les couleurs correspondent à des "degrés" de problème. Dans la foulée, je grave un DVD 20.04 pour pouvoir démarrer une session live dans un second temps.
https://ibb.co/PjFpnJz
Edit : Le DVD est prêt !
Le LiveUSb est en train de faire une verif (filesystem check)
Dernière modification par elcoyote_21 (Le 11/10/2021, à 16:37)
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#4 Le 11/10/2021, à 17:00
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
Donc, après le passage de boot-info, je vous donne le lien : Boot-Info du 11 octobre 2021 17h00
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#5 Le 11/10/2021, à 17:03
- xubu1957
Re : Problème au démarrage - Ermergency mode
Bonjour,
Collage du boot-info :
boot-info-4ppa130 [20211011_1451]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdc: ___________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/FD/sdc: /dev/sdc déjà monté ou point de montage actif.
================================ 1 OS detected =================================
OS#1: Ubuntu 20.04.3 LTS on sda2
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.3 LTS, focal, x86_64)
===================================== UEFI =====================================
This live-session is not in EFI-mode.
EFI in dmesg.
[ 0.007984] ACPI: UEFI 0x00000000B8198A88 000042 (v01 INTEL EDK2 00000002 01000013)
[ 0.008014] ACPI: Reserving UEFI table memory at [mem 0xb8198a88-0xb8198ac9]
This session has been detected as 'live' because df -Th / contains overlay
85fa9d77b929ec4231aba29476574eb6 sda1/BOOT/fbx64.efi
469e608783843a701d172242f016c79c sda1/BOOT/mmx64.efi
fa1bf1a7f90a852abe0bdbd089b7f1b0 sda1/ubuntu/grubx64.efi
469e608783843a701d172242f016c79c sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ng, update-grub, not-far
sda3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda2 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda3 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sdb1 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
sdb2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 42A183C8-178E-4C4B-A713-8B7BDF299546
Start End Sectors Size Type
sda1 2048 411647 409600 200M EFI System
sda2 411648 98068479 97656832 46.6G Linux filesystem
sda3 98068480 293380095 195311616 93.1G Linux filesystem
Disk sdb: 2.75 TiB, 3000592982016 bytes, 5860533168 sectors
Disk identifier: EDE633A2-ACA9-44B7-BD04-A8C6B669D7CD
Start End Sectors Size Type
sdb1 2048 2097154047 2097152000 1000G Linux filesystem
sdb2 2097154048 5860532223 3763378176 1.8T Microsoft basic data
Disk sdc: 7.28 GiB, 7811891200 bytes, 15257600 sectors
Disk identifier: 0x2cf4ba3a
Boot Start End Sectors Size Id Type
sdc1 * 0 5999871 5999872 2.9G 0 Empty
sdc2 5271500 5279499 8000 3.9M ef EFI (FAT-12/16/32)
sdc3 6000640 15257599 9256960 4.4G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:256GB:scsi:512:512:gpt:ATA Samsung SSD 850:;
1:1049kB:211MB:210MB:fat32::boot, esp;
2:211MB:50.2GB:50.0GB:ext4::;
3:50.2GB:150GB:100GB:ext4::;
sdb:3001GB:scsi:512:4096:gpt:ATA WDC WD30EZRZ-00Z:;
1:1049kB:1074GB:1074GB:ext4::;
2:1074GB:3001GB:1927GB:ntfs:PARTITION_NTFS:msftdata;
sdc:7812MB:scsi:512:512:unknown:Wilk GOODRAM 8GB:;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat A4D2-FCC4 78899ae5-5b8b-496f-a91d-cf0445aa303c EFI
├─sda2 ext4 01163dce-fcc8-4e92-bc12-ced9aaf16faf fa18d2bf-b0f2-4336-8777-fecf51e43630
└─sda3 ext4 e037437f-071a-42cf-95b7-9860afa4d9ab 28a453e3-f597-4ca8-a4e4-50b96a315ad0
sdb
├─sdb1 ext4 fa2438fa-3d30-4827-a5c6-21328950eb31 6a565d81-8e96-4466-9299-e8c3e4bc1be3
└─sdb2 ntfs 5806A4CC3B87EA4D f876b860-8b99-4353-b5fc-b37becbd875b PARTITION_NTFS PARTITION_NTFS
sdc iso9660 2021-08-19-11-03-38-00 Ubuntu 20.04.3 LTS amd64
├─sdc1 iso9660 2021-08-19-11-03-38-00 2cf4ba3a-01 Ubuntu 20.04.3 LTS amd64
├─sdc2 vfat 54C5-9C6C 2cf4ba3a-02
└─sdc3 ext4 996b80a1-ab6f-486c-adbf-36aadc0e8317 2cf4ba3a-03 writable
df (filtered): _________________________________________________________________
Avail Use% Mounted on
disk/by-label/writable[/install-logs-2021-10-11.0/crash] 4G 0% /var/crash
disk/by-label/writable[/install-logs-2021-10-11.0/log] 4G 0% /var/log
sda1 191.7M 3% /mnt/boot-sav/sda1
sda2 20.6G 50% /mnt/boot-sav/sda2
sda3 4.2G 90% /mnt/boot-sav/sda3
sdb1 210G 74% /mnt/boot-sav/sdb1
sdb2 283.9G 84% /mnt/boot-sav/sdb2
sdc1 0 100% /cdrom
Mount options: __________________________________________________________________
disk/by-label/writable[/install-logs-2021-10-11.0/crash] rw,relatime
disk/by-label/writable[/install-logs-2021-10-11.0/log] rw,relatime
sda1 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2 rw,relatime
sda3 rw,relatime
sdb1 rw,relatime
sdb2 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdc1 ro,noatime,nojoliet,check=s,map=n,blocksize=2048
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 01163dce-fcc8-4e92-bc12-ced9aaf16faf root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 01163dce-fcc8-4e92-bc12-ced9aaf16faf
Ubuntu, avec Linux 5.4.0-88-generic 01163dce-fcc8-4e92-bc12-ced9aaf16faf
Ubuntu, avec Linux 5.4.0-86-generic 01163dce-fcc8-4e92-bc12-ced9aaf16faf
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda2/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=01163dce-fcc8-4e92-bc12-ced9aaf16faf / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=A4D2-FCC4 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sdb1 during installation
UUID=fa2438fa-3d30-4827-a5c6-21328950eb31 /home ext4 defaults 0 2
/swapfile none swap sw 0 0
======================= sda2/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
24,558071136 = 26,369028096 boot/grub/grub.cfg 2
14,902568817 = 16,001511424 boot/vmlinuz 2
19,207256317 = 20,623634432 boot/vmlinuz-5.4.0-86-generic 1
14,902568817 = 16,001511424 boot/vmlinuz-5.4.0-88-generic 2
19,207256317 = 20,623634432 boot/vmlinuz.old 1
23,580703735 = 25,319587840 boot/initrd.img 2
13,180660248 = 14,152626176 boot/initrd.img-5.4.0-86-generic 4
23,580703735 = 25,319587840 boot/initrd.img-5.4.0-88-generic 2
13,180660248 = 14,152626176 boot/initrd.img.old 4
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18151 août 12 09:18 10_linux
-rwxr-xr-x 1 root root 42359 sept. 8 2020 10_linux_zfs
-rwxr-xr-x 1 root root 12894 sept. 8 2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 17 2018 30_os-prober
-rwxr-xr-x 1 root root 1424 sept. 8 2020 30_uefi-firmware
-rwxr-xr-x 1 root root 214 juil. 17 2018 40_custom
-rwxr-xr-x 1 root root 216 juil. 17 2018 41_custom
================== sdb2: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? libcom32.c32 1
=============== sdb2: Version of COM32(R) files used by Syslinux ===============
libcom32.c32 : not a COM32/COM32R module
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown BootLoader on sdc
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 94 5a 4f 00 00 00 00 00 3a ba f4 2c 00 00 80 00 |.ZO.....:..,....|
000001c0 01 00 00 b7 e0 fa 00 00 00 00 00 8d 5b 00 00 fe |............[...|
000001d0 ff ff ef fe ff ff cc 6f 50 00 40 1f 00 00 00 85 |.......oP.@.....|
000001e0 51 75 83 bd c8 b5 00 90 5b 00 00 40 8d 00 00 00 |Qu......[..@....|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
=============================== StdErr Messages ================================
File descriptor 63 (pipe:[91256]) leaked on lvs invocation. Parent PID 22845: /bin/bash
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
sda2,
using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Blockers in case of suggested repair: __________________________________________
The current session is in BIOS-compatibility mode. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode. This will enable this feature.
Confirmation request before suggested repair: __________________________________
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to EFI mode.
Are you sure you want to continue anyway?
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.3 LTS entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] 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
#6 Le 11/10/2021, à 18:29
- geole
Re : Problème au démarrage - Ermergency mode
Le LiveUSb est en train de faire une verif (filesystem check)
Bonjour.
Je ne suis pas certain que le boot-info ait bien corrigé. On ne voit pas de trace de son exécution.
La commande à faire pour réparer ton home est
sudo fsck /dev/sdb1
et d'accepter les réparations proposées
Dernière modification par geole (Le 11/10/2021, à 18:30)
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
#7 Le 11/10/2021, à 18:54
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
Bonjour geole, Je pense que tu as raison. La vérif s'est lancée directement, sans que je ne tape aucune commande (c'est peut-être une procédure par défaut?) Je fais la manip que tu me conseilles et je vous tiens au courant.
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#8 Le 11/10/2021, à 19:03
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
en lançant la commande fsck j'obtiens cela :
/dev/sdb1 contient un système de fichiers comportant des erreurs, vérification forcée
Passe 1 : vérification des i-noeuds, des blocs et des tailles
L'arbre d'extent de l' i-noeud 3932655 (au niveau 1) pourrait être plus étroit.
Optimiser <o>?
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#9 Le 11/10/2021, à 19:06
- geole
Re : Problème au démarrage - Ermergency mode
Pour cette question,
Tu peux répondre o ou refuser le rétrécissement n
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
#10 Le 11/10/2021, à 19:07
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
Quelle est l'incidence? A ma place, tu optimiserais ?
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#11 Le 11/10/2021, à 19:09
- malbo
Re : Problème au démarrage - Ermergency mode
Dans l'image dont tu as donné le lien dans le post #3, on voit qu'il y a un problème avec /dev/sdb1 (ta partition /home). La commande proposée par geole devrait réparer ça.
Dernière modification par malbo (Le 11/10/2021, à 19:09)
Hors ligne
#12 Le 11/10/2021, à 19:12
- geole
Re : Problème au démarrage - Ermergency mode
J'ai déjà fait les deux contextes et je ne connais pas exactement ce que cela fait.
Accepter semble être sans risques et évite d'avoir la question à chaque réparation.
Dernière modification par geole (Le 12/10/2021, à 00:50)
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
#13 Le 11/10/2021, à 19:29
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
ça roule, je réponds o et on verra ce qui se passe.
Edit : Après plusieurs "o", il déroule la passe 2,3,4 et enfin 5
Vérification de l'information du sommaire du groupe
Le décompte des blocs libre est erroné pour le groupe n° 5900 (12239, décompté 12240)
Corriger? <o>
Je suppose que je réponds encore oui à chaque question de ce type?
J'ai également répondu oui aux autres questions.
Le processus est terminé il m'indique
/dev/sdb1 : 477079/65536000 fichiers (1,9% non contigu) 193993461/262144000 blocs
et retour au prompt.
Dois-je rebooter ou rester en session live pour faire d'autres manips?
Dernière modification par elcoyote_21 (Le 11/10/2021, à 19:52)
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#14 Le 12/10/2021, à 00:51
- geole
Re : Problème au démarrage - Ermergency mode
La réparation est finie.
Il faut rebooter.
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
#15 Le 12/10/2021, à 07:47
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
J'attendais le "Go!" (je ne fais pas comme ces gens qui demandent de l'aide et qui font à leur façon ).
Je viens de rebooter à l’instant, tout semble nickel !
Un grand merci à geole, malbo et xubu1957 ! Je vais de ce pas voir comment faire un petit geste pour Ubuntu-fr.
Je passe donc le post en "résolu".
Je ne sais pas pourquoi la bécane a planté, problème logiciel, défaillance disque dur ? (je vais faire une sauvegarde de mes fichiers perso, on ne sait jamais!).
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#16 Le 12/10/2021, à 09:15
- malbo
Re : Problème au démarrage - Ermergency mode
Bonjour,
Le problème que tu as rencontré, c'est parce que tu as créé une partition /home. Oui, ça a beaucoup été recommandé dans le passé de créer une partition /home mais comme tu viens de l'apprendre, ça peut donner du souci. Dans ce post, le maître geole donne des infos et des conseils sur le sujet : https://forum.ubuntu-fr.org/viewtopic.p … #p22243355
Hors ligne
#17 Le 12/10/2021, à 22:01
- geole
Re : Problème au démarrage - Ermergency mode
Bonsoir.
Pour savoir si la cause est une défaillance du disque sdb
il faut installer l'application smartmontools https://doc.ubuntu-fr.org/smartmontools avec cette commande
sudo apt-get install --no-install-recommends smartmontools
et poster le retour de cette commande
sudo smartctl -s on -a /dev/sdb
pour analyse.
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
#18 Le 17/10/2021, à 10:25
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
Bonjour, j'ai de nouveau rencontré le problème de démarrage ce matin, pc bloqué.
En faisant un "hard reset" je me retrouve de nouveau avec le choix de grub puis en laissant sur l'option "Ubuntu" il m'indique de nouveau Emergency mode....
Je penche sérieusement pour une défaillance mécanique du disque !
Je vais lire le post que malbo m'a indiqué.
De plus, j'ai la possibilité de brancher le DD défaillant du PC1 sur le PC2 avec un adaptateur SATA-USB 2.0.
Puis-je installer smartmontools sur le PC2 et vérifier le DD ou vaut-il mieux que j'utilise de nouveau un live CD ?
Comme d'habitude, j'attends vos précieux conseils avant de faire des manipulations hasardeuses !
Merci pour le lien vers le post, geole pointe exactement le problème que je rencontre : à savoir le /home est situé sur le DD.
Pour info : ma config est la suivante : Un SSD sur lequel j'ai installé Ubuntu et le DD de 3To sur lequel j'avais mis le /home (effectivement suite à des "conseils" trouvés sur Internet).
Si j'arrive à réparer le souci actuel, pourriez-vous m'indiquer le meilleur choix à faire pour optimiser l'installation d'Ubuntu ? (Je suis disposé à refaire une install de zéro, en reformatant le SSD).
Dernière modification par elcoyote_21 (Le 17/10/2021, à 10:41)
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#19 Le 17/10/2021, à 11:17
- malbo
Re : Problème au démarrage - Ermergency mode
ou vaut-il mieux que j'utilise de nouveau un live CD ?
Oui, fais ça (démarre en session live) et réponds à la demande de geole (post #17) pour qu'on sache si le disque dur est défaillant ou pas.
Dernière modification par malbo (Le 17/10/2021, à 11:17)
Hors ligne
#20 Le 17/10/2021, à 13:43
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
sudo smartctl -s on -a /dev/sdb
me renvoit
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.11.0-27-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Blue
Device Model: WDC WD30EZRZ-00Z5HB0
Serial Number: WD-WCC4N7PLXDNX
LU WWN Device Id: 5 0014ee 2b8625598
Firmware Version: 80.00A80
User Capacity: 3000592982016 bytes [3,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Oct 17 11:41:43 2021 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (39360) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 395) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x7035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 1306
3 Spin_Up_Time 0x0027 179 178 021 Pre-fail Always - 6008
4 Start_Stop_Count 0x0032 098 098 000 Old_age Always - 2481
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 078 078 000 Old_age Always - 16500
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2481
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 52
193 Load_Cycle_Count 0x0032 011 011 000 Old_age Always - 568145
194 Temperature_Celsius 0x0022 125 115 000 Old_age Always - 25
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 1
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 1
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 90% 16475 2479168
# 2 Short offline Completed without error 00% 14369 -
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.
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#21 Le 17/10/2021, à 18:35
- geole
Re : Problème au démarrage - Ermergency mode
Bonjour.
As-tu tenté le même style de réparation?
J'ai vu cela depuis le boot-info
fdisk -l (filtered): ___________________________________________________________
Disk sdb: 2.75 TiB, 3000592982016 bytes, 5860533168 sectors
Start End Sectors Size Type
sdb1 2048 2097154047 2097152000 1000G Linux filesystem
Ainsi que ceci depuis le rapport smartctl
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1
Donc un seul secteur trouvé. Cela ne semble pas très grave. Le tout est de savoir lequel.
Un test assez récent fait il y a 25 heures indique.
1 Extended offline Completed: read failure 90% 16475 2479168
Le secteur 2479168 est trouvé illisible et il appartient à la partition SDA1.
On va s'assurer que ce secteur est toujours illisible ( en fait 8 secteurs car ton disque a des secteurs huit fois plus grand que les secteurs logiques.
Sector Sizes: 512 bytes logical, 4096 bytes physical
)
Peux-tu donner ces retours
sudo dd if=/dev/sdb skip=2479168 count=1
sudo dd if=/dev/sdb skip=2479169 count=1
sudo dd if=/dev/sdb skip=2479170 count=1
sudo dd if=/dev/sdb skip=2479171 count=1
sudo dd if=/dev/sdb skip=2479172 count=1
sudo dd if=/dev/sdb skip=2479173 count=1
sudo dd if=/dev/sdb skip=2479174 count=1
sudo dd if=/dev/sdb skip=2479175 count=1
Cependant, je crains un autre problème non identifié car si ces secteurs sont illisibles et qu'une application en a besoin, cela ne devrait pas empêcher un démarrage mais seulement le démarrage de l'application voire uniquement des injures signalant des erreurs de lecture.
Nota: Après la réparation des huit secteurs, il faudra relancer le test long pour savoir si d'autres secteurs sont dans le même mauvais état.
Dernière modification par geole (Le 17/10/2021, à 19: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
#22 Le 17/10/2021, à 19:16
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
alors
sudo dd if=2479168 count=1
me donne
dd: impossible d'ouvrir '2479168': Aucun fichier ou dossier de ce type
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#23 Le 17/10/2021, à 20:03
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
sudo dd if=/dev/sdb skip=2479168 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 7,03954 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479169 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 4,03748 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479170 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,54179 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479171 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,53552 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479172 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,52777 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479173 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,58141 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479174 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 4,26359 s, 0,0 kB/s
sudo dd if=/dev/sdb skip=2479175 count=1
dd: erreur de lecture dans '/dev/sdb': Erreur d'entrée/sortie
0+0 enregistrements lus
0+0 enregistrements écrits
0 octet copié, 3,5244 s, 0,0 kB/s
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne
#24 Le 17/10/2021, à 20:25
- geole
Re : Problème au démarrage - Ermergency mode
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479168 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479169 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479170 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479171 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479172 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479173 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479174 /dev/sdb
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 2479175 /dev/sdb
puis un test long et un nouveau rapport smartctl
Dernière modification par geole (Le 17/10/2021, à 20:29)
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
#25 Le 17/10/2021, à 23:01
- elcoyote_21
Re : Problème au démarrage - Ermergency mode
/dev/sdb:
re-writing sector 2479175: succeeded
J'ai terminé tes commandes. Qu'appelles-tu test long?
Edit :
En cherchant un peu sur la page smartmontools, j'ai trouvé la commande
sudo smartctl -t long /dev/sdb
. Ça correspond au test long?
Dernière modification par elcoyote_21 (Le 18/10/2021, à 08:15)
Utilisateur d'Ubuntu 20.04.3 LTS
Hors ligne