Comment 4 for bug 1787692

Revision history for this message
oldfred (oldfred) wrote :

I have been booting with the same version of UEFI from Asus since April.
But now either UEFI or Ubuntu is deleting all UEFI entries and creating multiple new UEFI entries from boot device.

I was having issue of UEFI entry not installing at all.
fred@bionic-z97:~$ sudo grub-install --bootloader-id ubuntu /dev/sda --recheck
Installing for x86_64-efi platform.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

I have to boot full install on flash drive and use configfile to boot into working install in sda.
But something is adding entries from flash drive's ESP. And on reboot added a second BIOS/grub entry (which is not used)

I can see UEFI entries come from flash drive as it has extra bionic & copy folders.
I was then able to add an entry for working install on sda, but reboot erased it.

After boot with efi_not_storage_paranoia
And reset of UEFI to defaults & changing back to my preferred settings
fred@bionic-z97:/media/fred/ESP_USB/EFI$ ll
total 24
drwxr-xr-x 6 fred fred 4096 Apr 4 15:34 ./
drwxr-xr-x 4 fred fred 4096 Dec 31 1969 ../
drwxr-xr-x 3 fred fred 4096 Mar 10 17:47 bionic/
drwxr-xr-x 2 fred fred 4096 Apr 21 09:36 Boot/
drwxr-xr-x 3 fred fred 4096 Apr 21 09:37 ubuntu/
drwxr-xr-x 3 fred fred 4096 Apr 2 12:43 'ubuntu (copy)'/
fred@bionic-z97:/media/fred/ESP_USB/EFI$ sudo efibootmgr -v -c -L ubuntu -l \\EFI\\ubuntu\\shimx64.efi
efibootmgr: Warning : Boot0000 has same label ubuntu
efibootmgr: Warning : Boot0001 has same label ubuntu
efibootmgr: Warning : Boot0002 has same label ubuntu
efibootmgr: Warning : Boot0003 has same label ubuntu
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0005,0002,0001,0000,0004,0003
Boot0000* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\bionic\shimx64.efi)
Boot0002* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\ubuntu (copy)\shimx64.efi)
Boot0003* ubuntu VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* UEFI: (FAT) PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(5,0)/HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)..BO
Boot0005* ubuntu HD(1,GPT,3195d314-ce88-42ac-beac-d9f80289ac11,0x800,0xf9dcd)/File(\EFI\ubuntu\shimx64.efi)

fred@bionic-z97:~$ sudo efibootmgr -v
[sudo] password for fred:
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0001,0000,0004,0005,0003
Boot0000* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\bionic\shimx64.efi)
Boot0002* ubuntu HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)/File(\EFI\ubuntu (copy)\shimx64.efi)
Boot0003* ubuntu VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* UEFI: (FAT) PciRoot(0x0)/Pci(0x14,0x0)/USB(9,0)/HD(1,GPT,2a6f47aa-0ae8-42e3-86d8-6463449b2862,0x800,0xfa000)..BO
Boot0005* ubuntu VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)