[Bug 1904263] Re: Writing GRUB to boot device failed

Untrusted Source 1904263 at bugs.launchpad.net
Tue Nov 24 22:44:51 UTC 2020


Since all the files I looked at are present and updated, I rebooted and
it works as expected.

Also linking in adding --no-nvram to grub from this thread: -
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1872212

I ran the install line - boot drive is /dev/sda and efi (/dev/sda1) is
mounted /boot/efi

root at pinhead:# grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-nvram /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.

....compelted without error and reboots ok, so moving toward something
in that area.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1904263

Title:
  Writing GRUB to boot device failed

Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  Running apt-get update; apt-get upgrade for the first time in a few
  months, I get an error

  ```
  Writing GRUB to boot device failed - continue
  GRUB failed to install to the following devices:

   [*] /dev/nvme1n1p1 (104 MB; /boot/efi) 1000204 MB WDC WDS100T2B0C-00PXH0
  ```

  Retrying fails.

  Running

  ```
  $ sudo dpkg-reconfigure --force grub-efi-amd64
  ```

  Gives the following output:

  ```
  Installing grub to /boot/efi.
  Installing for x86_64-efi platform.
  grub-install: warning: Internal error.
  grub-install: error: failed to register the EFI boot entry: Operation not permitted.
  Installing grub to /boot/efi.
  Installing for x86_64-efi platform.
  grub-install: warning: Internal error.
  grub-install: error: failed to register the EFI boot entry: Operation not permitted.
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-5.4.0-53-generic
  Found initrd image: /boot/initrd.img-5.4.0-53-generic
  Found linux image: /boot/vmlinuz-5.4.0-52-generic
  Found initrd image: /boot/initrd.img-5.4.0-52-generic
  Found Windows Boot Manager on /dev/nvme1n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
  Adding boot menu entry for UEFI Firmware Settings
  done
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: grub-efi-amd64 2.04-1ubuntu26.6
  ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
  Uname: Linux 5.4.0-52-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.12
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Fri Nov 13 21:38:56 2020
  InstallationDate: Installed on 2020-05-23 (175 days ago)
  InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  SourcePackage: grub2
  UpgradeStatus: Upgraded to focal on 2020-05-29 (169 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1904263/+subscriptions



More information about the foundations-bugs mailing list