[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what is the proper way to recover grub in an EFI environment ?



at bottom :-

On 05/11/2019, shirish शिरीष <shirishag75@gmail.com> wrote:
> <snipped>
>
> Dear all,
>
> I was getting the error unknown which was messing me up. I finally
> went to supergrub github page and saw this issue -
>
> https://github.com/supergrub/supergrub/issues/35
>
> I downloaded the hybrid image as shared by the author i.e.
> https://sourceforge.net/projects/supergrub2/files/2.04s2-beta2/super_grub2_disk_2.04s2-beta2/supergrub2-2.04s2-beta2-multiarch-USB.img.zip/download
> .
>
> Did get the familiar orange supergrub menu and was able to boot into
> 5.2.0-3-amd64 kernel and everything. Now running the update and that
> will probably take half a day as have missed whole lot of updates.
>
> One of the interesting things seems to be that probably one of the
> MS-Windows updates corrupted the boot entry because as I did -
>
> $ sudo update-grub
> [sudo] password for shirish:
> Generating grub configuration file ...
> Found background image: /usr/share/images/desktop-base/desktop-grub.png
> Found linux image: /boot/vmlinuz-5.2.0-3-amd64
> Found initrd image: /boot/initrd.img-5.2.0-3-amd64
> Found linux image: /boot/vmlinuz-5.2.0-2-amd64
> Found initrd image: /boot/initrd.img-5.2.0-2-amd64
> Found linux image: /boot/vmlinuz-4.19.0-5-amd64
> Found initrd image: /boot/initrd.img-4.19.0-5-amd64
> Found linux image: /boot/vmlinuz-4.19.0-4-amd64
> Found initrd image: /boot/initrd.img-4.19.0-4-amd64
> Found memtest86 image: /memtest86.bin
> Found memtest86+ image: /memtest86+.bin
> Found memtest86+ multiboot image: /memtest86+_multiboot.bin
> Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
> Adding boot menu entry for EFI firmware configuration
> done
>
> I find this 'Adding boot menu entry for EFI firmware configuration'
> interesting statement.
>
> I have yet to reboot without the usb to see if it holds.
>
> FWIW, efibootmanager is at -
>
> $ apt-cache policy efibootmgr
> efibootmgr:
>   Installed: 15-1+b1
>   Candidate: 15-1+b1
>   Version table:
>  *** 15-1+b1 900
>         900 http://cdn-fastly.deb.debian.org/debian testing/main amd64
> Packages
>         100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64
> Packages
>         100 /var/lib/dpkg/status
>
> I also have -
>
> $ apt-cache policy grub-efi-amd64
> grub-efi-amd64:
>   Installed: 2.04-3
>   Candidate: 2.04-3
>   Version table:
>  *** 2.04-3 900
>         900 http://cdn-fastly.deb.debian.org/debian testing/main amd64
> Packages
>         100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64
> Packages
>         100 /var/lib/dpkg/status
>
> The issue might be resolved but still if you want me to dig something
> or the other, please let me know.
>

Seems that efibootmgr still doesn't put the debian label anywhere :(

# efibootmgr
BootCurrent: 0008
Timeout: 1 seconds
BootOrder: 0008,0000,0003,0009,0006
Boot0000* Windows Boot Manager
Boot0003* Hard Drive
Boot0006* USB
Boot0008* UEFI: Sony Storage Media DL17, Partition 1
Boot0009* UEFI: Sony Storage Media DL17, Partition 2

i even tried the workaround given at -

https://wiki.debian.org/UEFI

specifically the one given at example 3 -

efibootmgr -c -d /dev/sdb -p 1 -w -L debian -l \EFI\debian\grubx64.efi

but got -

root@debian:~# efibootmgr -c -d /dev/sdb -p 1 -w -L debian -l
\EFI\debian\grubx64.efi
Could not prepare Boot variable: No such file or directory

although dunno if I need both or only one -

$ apt-cache policy grub-efi-amd64-bin grub-efi-amd64-signed
grub-efi-amd64-bin:
  Installed: 2.04-3
  Candidate: 2.04-3
  Version table:
 *** 2.04-3 900
        900 http://cdn-fastly.deb.debian.org/debian testing/main amd64 Packages
        100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
grub-efi-amd64-signed:
  Installed: 1+2.04+3
  Candidate: 1+2.04+3
  Version table:
 *** 1+2.04+3 900
        900 http://cdn-fastly.deb.debian.org/debian testing/main amd64 Packages
        100 http://cdn-fastly.deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com

E493 D466 6D67 59F5 1FD0 930F 870E 9A5B 5869 609C


Reply to: