Erreur installation : grub-install

Résolu/Fermé
Mentalink Messages postés 75 Date d'inscription dimanche 19 février 2017 Statut Membre Dernière intervention 22 février 2021 - 27 oct. 2020 à 22:51
Mentalink Messages postés 75 Date d'inscription dimanche 19 février 2017 Statut Membre Dernière intervention 22 février 2021 - 27 oct. 2020 à 23:33
Bonsoir,

Cela fait plus d'une semaine que je tente d'installer Ubuntu en dual-boot sur mon petit pc. Je l'ai déjà fait sur d'autres pc mais cette-fois... Ça bloque !

J'ai réservé une partition de 20Go et démarré l'installation (minimale) de la toute dernière version d'Ubuntu depuis une clé bootable très fraîchement faite.
Lors de l'installation, malgré plusieurs tentatives, l'étape de grub-install échoue avec le message suivant :
« L'exécution de "grub-install /dev /sda" a échoué. Cette erreur est fatale. »

Voici le rapport donné par un boot-info depuis la session live de la clé : ... (Voir réponse)
Lorsque je démarre mon pc, comme depuis la première tentative d'installation d'Ubuntu, je tombe sur un grub/terminal de commandes, avec en titre : « GNU GRUB version 2.04 » et pour description : « Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. ». Je peux entrer des commandes (avec devant « grub> _ » ...). Je ne connas pas du tout cela mais j'aurais voulu essayer de faire "load_env" suivi du nom associé à Ubuntu (avec tab) mais malheureusement lorsque je veux taper un underscore _, il s'affiche un 8...

Comment donc réussir l'installation du grub (le vrai, celui dont j'ai l'habitude) ?
Merci d'avance.
Cordialement
A voir également:

1 réponse

Mentalink Messages postés 75 Date d'inscription dimanche 19 février 2017 Statut Membre Dernière intervention 22 février 2021 11
27 oct. 2020 à 23:33
Boot-info :

boot-info-4ppa125 [20201027_1538]

============================== Boot Info Summary ===============================

=> No boot loader is installed in the MBR of /dev/sda.
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda2: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:

sda3: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /Windows/System32/winload.exe

sda4: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda5: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.1 LTS
Boot files: /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

File system: vfat
Boot sector type: SYSLINUX 6.04
Boot sector info: Syslinux looks at sector 16400 of /dev/sdb1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi /ldlinux.sys


================================ 2 OS detected =================================

OS#1: Windows 8 or 10 on sda3
OS#2: Ubuntu 20.04.1 LTS on sda5

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.1 LTS, focal, x86_64)


===================================== UEFI =====================================

BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.

efibootmgr -v
Skipping unreadable variable "Boot0000": Interrupted system call
Skipping unreadable variable "Boot0001": Interrupted system call
Skipping unreadable variable "Boot0002": Interrupted system call
Skipping unreadable variable "Boot0003": Interrupted system call
Skipping unreadable variable "Boot0004": Interrupted system call
Skipping unreadable variable "Boot2001": Interrupted system call
Skipping unreadable variable "Boot2002": Interrupted system call
Skipping unreadable variable "Boot2003": Interrupted system call

f7a57b08bc7c1c85417ae4cea582d1d4 sda1/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446 sda1/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700 sda1/Boot/mmx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4 sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700 sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4 sda1/ubuntu/shimx64.efi
15ba29cdd4054fd936a6e6acbd791336 sda1/Microsoft/Boot/bootmgfw.efi
425b3cd6722f65838d3196ec7c39d9a4 sda1/Microsoft/Boot/bootmgr.efi


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios

Partitions info (2/3): _________________________________________________________

sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda5 : isnotESP, fstab-has-goodEFI, 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
sda3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda4 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda5 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: 2C89F1FA-E39B-4E9B-AFF2-9D284E94645B
Start End Sectors Size Type
sda1 2048 1023999 1021952 499M EFI System
sda2 1024000 1286143 262144 128M Microsoft reserved
sda3 1286144 207439871 206153728 98.3G Microsoft basic data
sda4 248399872 250069646 1669775 815.3M Windows recovery environment
sda5 207439872 248399871 40960000 19.5G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.77 GiB, 4026531840 bytes, 7864320 sectors
Disk identifier: 0x0039658a
Boot Start End Sectors Size Id Type
sdb1 * 2048 7864319 7862272 3.8G c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:128GB:scsi:512:4096:gpt:ATA SanDisk SD8SN8U-:;
1:1049kB:524MB:523MB:fat32:EFI system partition:boot, esp;
2:524MB:659MB:134MB::Microsoft reserved partition:msftres;
3:659MB:106GB:106GB:ntfs:Basic data partition:msftdata;
5:106GB:127GB:21.0GB:ext4::;
4:127GB:128GB:855MB:ntfs::hidden, diag;
sdb:4027MB:scsi:512:512:msdos:Generic Flash Disk:;
1:1049kB:4027MB:4025MB:fat32::boot, lba;

blkid (filtered): ______________________________________________________________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 9CF0-C65C 76d5dcbe-f61d-4e09-b260-7ed4e41e4c71 BOOT EFI system partition
├─sda2 499992e3-c2d2-4efd-9163-8fdbf99f4af6 Microsoft reserved partition
├─sda3 ntfs DC22F35722F334DC 0547de4c-52e4-414d-9b62-b7deb2341b82 Windows Basic data partition
├─sda4 ntfs 5E18ACFA18ACD277 98c47eb2-fde7-4c5a-a653-11a52ac53520
└─sda5 ext4 33bb80f7-9715-42c8-8ed3-9fb4873ddb5f 708b1c5c-368e-4364-bbc1-05b2427b96b9
sdb
└─sdb1 vfat C2F4-10E4 0039658a-01 UBUNTU 20_0

df (filtered): _________________________________________________________________

Avail Use% Mounted on
sda1 462.1M 7% /target/boot/efi
sda3 25.1G 74% /mnt/boot-sav/sda3
sda4 311.7M 62% /mnt/boot-sav/sda4
sda5 12.4G 30% /target
sdb1 1.2G 69% /cdrom

Mount options: __________________________________________________________________

sda1 rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda3 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda5 rw,relatime,errors=remount-ro
sdb1 ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

========================== sda5/etc/fstab (filtered) ===========================

# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=33bb80f7-9715-42c8-8ed3-9fb4873ddb5f / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=9CF0-C65C /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

======================= sda5/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda5: Location of files loaded by Grub ====================

GiB - GB File Fragment(s)
101.980587006 = 109.500821504 boot/vmlinuz 1
101.980587006 = 109.500821504 boot/vmlinuz-5.4.0-42-generic 1
102.133022308 = 109.664497664 boot/initrd.img 2
102.133022308 = 109.664497664 boot/initrd.img-5.4.0-42-generic 2
102.133022308 = 109.664497664 boot/initrd.img.old 2

===================== sda5: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17123 Jul 31 02:34 10_linux
-rwxr-xr-x 1 root root 42128 Jul 31 02:34 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jul 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31 02:34 30_os-prober
-rwxr-xr-x 1 root root 1424 Jul 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jul 31 02:34 40_custom
-rwxr-xr-x 1 root root 216 Jul 31 02:34 41_custom

====================== sdb1/boot/grub/grub.cfg (filtered) ======================

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/

==================== 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


=============================== StdErr Messages ================================

File descriptor 63 (pipe:[172937]) leaked on lvs invocation. Parent PID 28384: /bin/bash

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda5,
using the following options: sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file

Blockers in case of suggested repair: __________________________________________

/target detected. Please close the Ubuntu installer, then retry.

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.1 LTS entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.

If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)
0