18.04 erasing all reinstall on uefi fails to install the boot loader

Bug #1787916 reported by Péter Prőhle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
New
Undecided
Unassigned

Bug Description

There was already a working 18.04 in UEFI mode. I just reinstalled it using an USB stick with UEFI boot, asking the installer to totally erase the target disk and to make a default system.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubiquity 18.04.14
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CasperVersion: 1.394
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 20 11:50:00 2018
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash ---
LiveMediaBuild: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Péter Prőhle (prohlep) wrote :
Revision history for this message
Péter Prőhle (prohlep) wrote : Re: Bug 1787916

I have the same problem on a Lenovo Thinkpad E125 as well.

Assuming the uefi and root partitions are /dev/sda1 and /dev/sda2
respectively, the following helped in the case of Lenovo, but did not help
in case of Asus Eee PC 1215B :

     boot in UEFI the 18.04.1 pen,

     continue in "try" mode and then in a terminal after "sudo -s"

     mount "/dev/sda2 /mnt

     mkdir --parents /mnt/boot/efi

     mount "/dev/sda1 /mnt/boot/efi

     for x in dev dev/pts proc sys ; do
         mount -B /$x /mnt/$x
     done

     modprobe efivars

     apt-get install --reinstall grub-efi-amd64-signed

     grub-install --no-nvram --root-directory=/mnt

     chroot /mnt update-grub

     cd /mnt/boot/efi/EFI

     cp -R ubuntu/* BOOT/

     cd BOOT

     cp grubx64.efi bootx64.efi

In case of Asus 1215B the following did help:

     boot in UEFI the 18.04.1 pen,

     continue in "try" mode and then in a terminal after "sudo -s"

     add-apt-repository ppa:yannubuntu/boot-repair

     apt-get update

     apt-get install -y boot-repair

     boot-repair

Now the both old (2011 = early UEFI) laptops boot 18.04 in UEFI mode.

It would be nice, if the 18.04 install media would have this fairly
universal, not really laptop-specific knowledge, ... what I learned from
various internet resources.

Revision history for this message
Péter Prőhle (prohlep) wrote :

Thanks for the help, I hope it will solve the problem in a future release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.