Page 1 sur 1

Pb installation GRUB lors install Xubuntu

Posté : 05 janv. 2022, 06:49
par Jim-my
Bonjour la communauté,

Lors de l'installation de Xubuntu sur mon HP 17-bs006nf a partir d'une USBLive je recois le message d'erreur suivant :

"Echec de l'installation de GRUB
Le paquet grub-efi-amd64-signed n'a pas pu être installé dans /target/.

Après moults recherches en vérifiant mon BIOS qui est bien EFI/UEFI et mes partitions avec GParted (/dev/sda1 = EFI System Partition - fat32 - Mount point = /target/boot/efi et /dev/sda2 en ext4 - mount point=/target)

En ayant essayé un boot-repair mais au lancement des lignes de commande pour effacer GRUB l'effacement n'a pas lieu donc abort de la réparation.

J'ai aussi essayé de réinstaller de force GRUB via CHOOT : rien n'y fait.

Donc là j'ai besoin de vous :) Grand merci pour votre aide.

Voici le bootlog :
boot-repair-4ppa152 [20220105_0634]

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

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sdb: ___________________________________________________________________________

File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.

================================ 1 OS detected =================================

OS#1: Ubuntu 20.04.3 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: HDGraphics620
SunXT[RadeonHD8670A/8670M/8690M/R5M330/M430/Radeon520Mobile] from Intel Corporation
Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.3 LTS, focal, x86_64)

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

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

efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,2002,2004
Boot0001* USB Hard Drive (UEFI) - SanDisk'Cruzer Fit (SanDisk'Cruzer Fit) PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)/HD(1,MBR,0xd83f1e1,0x33f50c,0x1f40)RC
Boot2001* EFI USB Device RC

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda2 : is-os, 64, apt-get, grub-pc , grub2, grub-install, no-grubenv, update-grub, farbios
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far

Partitions info (2/3): _________________________________________________________

sda2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot

Partitions info (3/3): _________________________________________________________

sda2 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 11F1EAB0-BD67-496F-91B5-3342F2155DAF
Start End Sectors Size Type
sda1 2048 1050623 1048576 512M EFI System
sda2 1050624 1953523711 1952473088 931G Linux filesystem
Disk sdb: 58.75 GiB, 63065554944 bytes, 123174912 sectors
Disk identifier: 0x0d83f1e1
Boot Start End Sectors Size Id Type
sdb1 * 0 3499327 3499328 1.7G 0 Empty
sdb2 3405068 3413067 8000 3.9M ef EFI (FAT-12/16/32)
sdb3 3502080 123174911 119672832 57.1G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM035-1RK1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
sdb:63.1GB:scsi:512:512:unknown:SanDisk' Cruzer Fit:;

Free space (filtered): _________________________________________________________

sda:953870MiB:scsi:512:4096:gpt:ATA ST1000LM035-1RK1:;
sdb:60144MiB:scsi:512:512:unknown:SanDisk' Cruzer Fit:;

gdisk (filtered): ______________________________________________________________

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Disk identifier (GUID): 11F1EAB0-BD67-496F-91B5-3342F2155DAF
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00 EFI System Partition
2 1050624 1953523711 931.0 GiB 8300
Found invalid GPT and valid MBR; converting MBR to GPT format
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdb: 123174912 sectors, 58.7 GiB
Disk identifier (GUID): C4D1D259-9113-4872-996C-DC74284C2694
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 123174878
Partitions will be aligned on 4-sector boundaries
Total free space is 3494046 sectors (1.7 GiB)
Number Start (sector) End (sector) Size Code Name
2 3405068 3413067 3.9 MiB EF00 EFI system partition
3 3502080 123174911 57.1 GiB 8300 Linux filesystem

blkid (filtered): ______________________________________________________________

├─sda1 vfat 5289-514D 0effd3bf-a0dc-47f5-9d68-aef9d6276757 EFI System Partition
└─sda2 ext4 58af077b-e21c-4804-998a-ae279f949612 bf14d8aa-562b-4cf5-aaf6-3dc38ef738cb
sdb iso9660 2021-08-19-10-55-29-00 Xubuntu 20.04.3 LTS amd64
├─sdb1 iso9660 2021-08-19-10-55-29-00 0d83f1e1-01 Xubuntu 20.04.3 LTS amd64
├─sdb2 vfat 54C5-9C6C 0d83f1e1-02
└─sdb3 ext4 dbafe897-14b0-4ba3-84c2-170d28e10b3f 0d83f1e1-03 writable

df (filtered): _________________________________________________________________

Avail Use% Mounted on
disk/by-label/writable[/install-logs-2022-01-05.2/crash] 53G 0% /var/crash
disk/by-label/writable[/install-logs-2022-01-05.2/log] 53G 0% /var/log
sda1 511M 0% /target/boot/efi
sda2 862G 1% /target
sdb1 0 100% /cdrom

Mount options: __________________________________________________________________

disk/by-label/writable[/install-logs-2022-01-05.2/crash] rw,relatime
disk/by-label/writable[/install-logs-2022-01-05.2/log] rw,relatime
sda1 rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2 rw,relatime,errors=remount-ro
sdb1 ro,noatime,nojoliet,check=s,map=n,blocksize=2048

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=58af077b-e21c-4804-998a-ae279f949612 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=5289-514D /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

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

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

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

GiB - GB File Fragment(s)
4.649410248 = 4.992266240 boot/vmlinuz 2
4.649410248 = 4.992266240 boot/vmlinuz-5.11.0-27-generic 2
129.140197754 = 138.663231488 boot/initrd.img 3
129.140197754 = 138.663231488 boot/initrd.img-5.11.0-27-generic 3
129.140197754 = 138.663231488 boot/initrd.img.old 3

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

-rwxr-xr-x 1 root root 18151 Aug 12 11:18 10_linux
-rwxr-xr-x 1 root root 42359 Aug 12 11:18 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Aug 12 11:18 20_linux_xen
-rwxr-xr-x 1 root root 12059 Aug 12 11:18 30_os-prober
-rwxr-xr-x 1 root root 1424 Aug 12 11:18 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Aug 12 11:18 40_custom
-rwxr-xr-x 1 root root 216 Aug 12 11:18 41_custom

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub-efi of
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: __________________________________________

/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.3 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !

Re: Pb installation GRUB lors install Xubuntu

Posté : 05 janv. 2022, 09:50
par trimardeur

- La partition Sda1 devrait être montée en "/boot/efi" et contenir le chargeur de démarrage, Xubuntu n'installe pas le chargeur de démarrage, il faut installer manuellement. Il a sûrement été lors du formatage du disque dur.

- je mets le lien vers une page qui explique comment faire. Cette page est en anglais, mais tu peux la traduire avec Google translate.

Installation du chargeur de démarrage EFI

Re: Pb installation GRUB lors install Xubuntu

Posté : 08 janv. 2022, 22:37
par Jim-my
Merci Trimardeur pour ta réponse,

en revoyant ma procédure, mon problème venait que lors de la création de mon USBLive avec Rufus sous Windows j'ai laissé le partitionage en MBR au lieu de GPT. J'ai donc appris que sur les systèmes avec UEFI donc non BIOS il faut être en GPT.

D'ou mon montage de sda1 incorrect.

Maintenant ce pb est résolu.