#1 Le 26/09/2020, à 09:58
- devEric69
[Résolu]Plantage upgrade du GRUB 18.04 vers 20.04: lancer Boot-repair?
Bonjour,
J'ai upgradé mon PC Ubuntu 18.04 vers 20.04 (sudo do-release-upgrade -d).
L'upgrade est allée à son terme .
Mais, quand j'ai voulu redémarrer le poste, je suis tombé sur un écran noir avec le prompt ">GRUB rescue mode" . Sous 18.04, je n'avais pas GRUB, et son installation semble être perdue dans les partitions trouvées. J'ai tenté de dépanner le GRUB manuellement, avec les commandes set root ...\..., set prefix ...\..., insmod normal, etc, mais je n'y suis pas arrivé (toujours le même message "symbol grub_file_filters not found", en GRUB rescue). J'ai alors gravé une clé USB live "Boot-repair", et je suis maintenant dans une session Boot-repair live depuis la clé bootée, avec un accès à internet.
Comme suggéré par les tutoriels de Boot-repair, j'ai lancé la fonctionnalité "Boot Info" uploadée, visible ici: http://paste.ubuntu.com/p/NhmdgdKZMG/.
Pouvez-vous m'indiquer si la recommandation préconisée par Boot-repair est adaptée ou non, à la configuration de mon PC?
nb 1: je pense que /dev/sda1 est la partition '/' (quand je lançais la commande ls (hd0,msdos1) depuis le prompt >Grub rescue mode, j'obtenais comme réponse: ./, ../, etc/, boot/, ...).
nb 2: je pense que /dev/sda2 est la partition '/home'.
Cordialement.
Dernière modification par devEric69 (Le 27/09/2020, à 15:47)
Hors ligne
#2 Le 26/09/2020, à 16:40
- lucmars
Re : [Résolu]Plantage upgrade du GRUB 18.04 vers 20.04: lancer Boot-repair?
Le boot-info
boot-repair-4ppa125 [20200926_0757]
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v2.00) is installed in the boot sector of sda1
and looks at sector 68573376 of the same hard drive
for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following
components:
modules
-------------------------------------------------------
fshelp ext2 part_msdos biosdisk
-------------------------------------------------------
Operating System: Ubuntu 20.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 4.03 debian-20101222 ...........>...s>........1.....0...~.~...~...f...M.f.f....f..8~....>E}
Boot sector info: Syslinux looks at sector 4113536 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the directory.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/BOOT/grubx64.efi /ldlinux.sys
================================ 1 OS detected =================================
OS#1: Ubuntu 20.04.1 LTS on sda1
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
This live-session is not in EFI-mode.
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, farbios
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda2 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x6995a1a2
Boot Start End Sectors Size Id Type
sda1 * 2048 307201266 307199219 146.5G 83 Linux
sda2 307202048 974675967 667473920 318.3G 83 Linux
sda3 974675968 976773119 2097152 1G 82 Linux swap / Solaris
Disk sdb: 14.9 GiB, 16008609792 bytes, 31266816 sectors
Disk identifier: 0xaf8b75f2
Boot Start End Sectors Size Id Type
sdb1 * 8528 31266815 31258288 14.9G c W95 FAT32 (LBA)
Disk zram0: 987 MiB, 1034932224 bytes, 252669 sectors
Disk zram1: 987 MiB, 1034932224 bytes, 252669 sectors
Disk zram2: 987 MiB, 1034932224 bytes, 252669 sectors
Disk zram3: 987 MiB, 1034932224 bytes, 252669 sectors
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:4096:msdos:ATA TOSHIBA DT01ACA0:;
1:1049kB:157GB:157GB:ext4::boot;
2:157GB:499GB:342GB:ext4::;
3:499GB:500GB:1074MB:linux-swap(v1)::;
sdb:16.0GB:scsi:512:512:msdos:Lexar USB Flash Drive:;
1:4366kB:16.0GB:16.0GB:fat32::boot, lba;
zram3:1035MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1035MB:1035MB:linux-swap(v1)::;
zram1:1035MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1035MB:1035MB:linux-swap(v1)::;
zram2:1035MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1035MB:1035MB:linux-swap(v1)::;
zram0:1035MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1035MB:1035MB:linux-swap(v1)::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ext4 67e51c79-58f7-4be5-8284-f53b2c83dce6 6995a1a2-01
├─sda2 ext4 c4dd5051-2fac-441f-ba1f-b28eb4bcb5d5 6995a1a2-02
└─sda3 swap 16a65574-e5cf-4afc-9e98-e8af8afde15d 6995a1a2-03
sdb
└─sdb1 vfat 9230-4D17 af8b75f2-01 MYLINUXLIVE
zram0
zram1
zram2
zram3
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 96.9G 27% /mnt/boot-sav/sda1
sda2 249G 15% /mnt/boot-sav/sda2
sdb1 14G 6% /cdrom
Mount options: __________________________________________________________________
sda1 rw,relatime
sda2 rw,relatime
sdb1 ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
====================== sda1/boot/grub/grub.cfg (filtered) ======================
Ubuntu 67e51c79-58f7-4be5-8284-f53b2c83dce6
Ubuntu, avec Linux 5.4.0-48-generic 67e51c79-58f7-4be5-8284-f53b2c83dce6
Ubuntu, avec Linux 5.3.0-7648-generic 67e51c79-58f7-4be5-8284-f53b2c83dce6
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda1/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=67e51c79-58f7-4be5-8284-f53b2c83dce6 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=c4dd5051-2fac-441f-ba1f-b28eb4bcb5d5 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=16a65574-e5cf-4afc-9e98-e8af8afde15d none swap sw 0 0
//192.168.1.4/convertir /media/partage_choucas cifs rw,uid=er,_netdev,credentials=/root/.smbcredentials 0 0
======================= sda1/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=""
==================== sda1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
100.535785675 = 107.949477888 boot/grub/grub.cfg 2
32.698356628 = 35.109593088 boot/grub/i386-pc/core.img 1
24.910289764 = 26.747219968 boot/vmlinuz 1
14.689186096 = 15.772393472 boot/vmlinuz-5.3.0-7648-generic 1
24.910289764 = 26.747219968 boot/vmlinuz-5.4.0-48-generic 1
14.689186096 = 15.772393472 boot/vmlinuz.old 1
14.689186096 = 15.772393472 vmlinuz 1
26.294277191 = 28.233265152 boot/initrd.img 3
18.342769623 = 19.695398912 boot/initrd.img-5.3.0-7648-generic 3
26.294277191 = 28.233265152 boot/initrd.img-5.4.0-48-generic 3
18.342769623 = 19.695398912 boot/initrd.img.old 3
18.342769623 = 19.695398912 initrd.img 3
===================== sda1: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17622 Sep 8 10:24 10_linux
-rwxr-xr-x 1 root root 42359 Sep 8 10:24 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Sep 8 10:24 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 17 2018 30_os-prober
-rwxr-xr-x 1 root root 1424 Sep 8 10:24 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jul 17 2018 40_custom
-rwxr-xr-x 1 root root 216 Jul 17 2018 41_custom
====================== sdb1/boot/grub/grub.cfg (filtered) ======================
Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)
========================= sdb1/syslinux.cfg (filtered) =========================
default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash ---
label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit
label ubnentry1
menu label ^64bit session
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash ---
label ubnentry2
menu label ^64bit session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal ---
label ubnentry3
menu label Boot-Repair-Disk session
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
label ubnentry4
menu label Boot-Repair-Disk session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal --
==================== sdb1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================== sdb1: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 1
?? = ?? menu.c32 1
=============== sdb1: Version of COM32(R) files used by Syslinux ===============
menu.c32 : COM32R module (v4.xx)
=============================== StdErr Messages ================================
File descriptor 63 (pipe:[34554]) leaked on lvs invocation. Parent PID 1804: /bin/bash
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub2 of
sda1 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s
Gaulois Matter !
Hors ligne
#3 Le 26/09/2020, à 16:51
- lucmars
Re : [Résolu]Plantage upgrade du GRUB 18.04 vers 20.04: lancer Boot-repair?
Je ne sais si cela remonte à ta 1804 ou à sa mise à niveau, mais grub est à la fois dans le mbr de sda et à la fois en sda1 ta racine.
Je préconiserai une installe fraiche de la 2004, mais il y a toute chance que boot-repair t'en fasse l'économie; commences par là.
Gaulois Matter !
Hors ligne
#4 Le 27/09/2020, à 08:37
- Qid
Re : [Résolu]Plantage upgrade du GRUB 18.04 vers 20.04: lancer Boot-repair?
Perso je suis plus adepte du démarrage forcé à l'aide de supergrubdisk puis de l'utilisation de "grub-install" mais au final bootrepair fera effectivement le job aussi en principe
"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil
Hors ligne
#5 Le 27/09/2020, à 15:42
- devEric69
Re : [Résolu]Plantage upgrade du GRUB 18.04 vers 20.04: lancer Boot-repair?
@lucmars et @Qid: merci pour vos réponses.
J'ai lancé la réparation recommandée de Boot-repair: il a bien réparé le GRUB, et je démarre mon PC normalement maintenant .
Hors ligne