grub2 fails to install upon ubuntu installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-installer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Currently attempting to install ubuntu 20.04 alongside Windows 11 on my HP laptop. I have tried the boot-repair service on previous installation attempts yet still receive errors when that program attempts to repair grub. If it is any help, here is the pastebin of the errors from boot-repair from a few weeks ago:
https:/
It seems like these lines are most important:
*******
grub-install --efi-directory
Installing for x86_64-efi platform.
grub-install: error: cannot open `/boot/
Exit code: 1
Refind detected on nvme0n1p1
Error: no grub*.efi generated for Ubuntu 20.04.3 LTS. Please report this message to <email address hidden>
/sbin/grub-install --efi-directory
Installing for x86_64-efi platform.
/sbin/grub-install: error: cannot open `/boot/
/sbin/grub-install --efi-directory
Installing for x86_64-efi platform.
/sbin/grub-install: error: cannot open `/boot/
--no-nvram exit code: 1 Please report this message to <email address hidden>
*******
I will continue to try different fixes on my end to install Grub, but it seems like an actual bug in the ubuntu/grub installer for EFI systems.
Thank you!
Nikolai
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubiquity 20.04.15.19
ProcVersionSign
Uname: Linux 5.13.0-30-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CasperVersion: 1.445.1
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 1 22:25:03 2022
InstallCmdLine: BOOT_IMAGE=
LiveMediaBuild: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)
Hello Nikolai,
I'm having the same issue that your are reporting. Did you managed to find a fix for that error? Here's the log file:
***
boot-repair-4ppa200 [20220831_1928]
======= ======= ======= ======= = Boot Repair Summary ======= ======= ======= ======= ==
df: /dev/nvme0n1p2: Aucun fichier ou dossier de ce type
df: /dev/nvme0n1p2: Aucun fichier ou dossier de ce type
Recommended repair: _______ _______ _______ _______ _______ _______ _______ _______ ____
The default repair of the Boot-Repair utility will reinstall the grub-efi- amd64-signed of efi-file
nvme1n1p2,
using the following options: nvme1n1p1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-
Mount nvme1n1p1 on /mnt/boot- sav/nvme1n1p2/ boot/efi
=============== Reinstall the grub-efi- amd64-signed of nvme1n1p2 ===============
chroot /mnt/boot- sav/nvme1n1p2 grub-install --version 15+zorin1 sav/nvme1n1p2 modprobe efivars
grub-install (GRUB) 2.04-1ubuntu26.
chroot /mnt/boot-
chroot /mnt/boot- sav/nvme1n1p2 efibootmgr -v before grub install 0c87fef8- cfd9-46ed- 8f12-ae0a3b00b3 7e,0x800, 0x100000) /File(EFIUBUNTU SHIMX64. EFI) 0c87fef8- cfd9-46ed- 8f12-ae0a3b00b3 7e,0x800, 0x100000) /File(EFIMICROS OFTBOOTBOOTMGFW .EFI)WINDOWS. ....... .x...B. C.D.O.B. J.E.C.T. =.{.9.d. e.a.8.6. 2.c.-.5. c.d.d.- .4.e.7. 0.-.a.c. c.1.-.f. 3.2.b.3. 4.4.d.4. 7.9.5.} ...1... ....... ...... 0x0)/Pci( 0x14,0x0) /USB(23, 0)/USB( 3,0)/USB( 0,0)/CDROM( 1,0x258, 0x8500) ..BO
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0003,0000,0004
Boot0000* ubuntu HD(1,GPT,
Boot0003* Windows Boot Manager HD(1,GPT,
Boot0004* UEFI: USB DISK 3.0 PMAP PciRoot(
chroot /mnt/boot- sav/nvme1n1p2 uname -r
5.13.0-30-generic
chroot /mnt/boot- sav/nvme1n1p2 grub-install --efi-directory =/boot/ efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
Error: no grub*.efi generated for Zorin OS 16.1 (16). Veuillez indiquer ce message à <email address hidden>
chroot /mnt/boot- sav/nvme1n1p2 efibootmgr -v after grub install 0c87fef8- cfd9-46ed- 8f12-ae0a3b00b3 7e,0x800, 0x100000) /File(EFIubuntu shimx64. efi) 0c87fef8- cfd9-46ed- 8f12-ae0a3b00b3 7e,0x800, 0x100000) /File(EFIMICROS OFTBOOTBOOTMGFW .EFI)WINDOWS. ....... .x...B. C.D.O.B. J.E.C.T. =.{.9.d. e.a.8.6. 2.c.-.5. c.d.d.- .4.e.7. 0.-.a.c. c.1.-.f. 3.2.b.3. 4.4.d.4. 7.9.5.} ...1... ....... ...... 0x0)/Pci( 0x14,0x0) /USB(23, 0)/USB( 3,0)/USB( 0,0)/CDROM( 1,0x258, 0x8500) ..BO
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0003,0004
Boot0000* ubuntu HD(1,GPT,
Boot0003* Windows Boot Manager HD(1,GPT,
Boot0004* UEFI: USB DISK 3.0 PMAP PciRoot(
chroot /mnt/boot- sav/nvme1n1p2 update-grub grub.d/ init-select. cfg' grub/themes/ zorin/theme. txt 5.15.0- 46-generic img-5.15. 0-46-generic 5.13.0- 44-generic img-5.13. 0-44-generic /EFI/Microsoft/ Boot/bootmgfw. efi
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found theme: /usr/share/
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found Windows Boot Manager on /dev/nvme1n1p1@
Adding boot menu entry for UEFI Firmware Settings
Unhide GRUB boot menu in nvme1n1p2/b...