Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and I do not see anywhere a 003D or 2003 entry (non under /sys/firmware/efi/efivars).
Edit. And I cannot remove those two entries
Code:
aris@hp2Debian:~$ sudo efibootmgr -b 003D -B
Could not delete variable: No such file or directory
aris@hp2Debian:~$ sudo efibootmgr -b 2003 -B
Could not delete variable: No such file or directory
/Edit
I believe here there should have been two directories, the one listed below and a "BOOT" directory. Am I wrong?
Code:
aris@hp2Debian:~$ ls -l /boot/efi/EFI/
drwx------ 2 root root 4.0K Nov 8 09:26 debian
And no, I did not delete anything. Edit2. Since yesterday. /Edit2.
The only thing that was done to the computer since the last known good boot (yesterday) was a grub-- package upgrade
with /dev/sda1 being my EFI partition (/boot/efi mount point).
Right now I can boot manually from BIOS through a sequence of "Boot from EFI file" > "EFI-some-string" > EFI > debian > grubx64.efi, which loads the grub menu.
Last edited by Debian6to11; 11-16-2022 at 10:26 AM.
I believe here there should have been two directories, the one listed below and a "BOOT" directory. Am I wrong?
Mine are all debian10, debian11 or debian12. A BOOT is there as a fallback, so if it's missing, it doesn't matter if there's another that produces the desired results.
Quote:
The only thing that was done to the computer since the last known good boot (yesterday) was a grub-- package upgrade
with /dev/sda1 being my EFI partition (/boot/efi mount point).
With a possible exception of -L, all good. If /etc/default/grub's GRUB_DISTRIBUTOR= contains `lsb_release -i -s 2> /dev/null || echo Debian` and lsb_release -i -s 2> /dev/null || echo Debian produces "Debian", then yes. If it produces "debian", then no, IIUC. The ESP is not a case sensitive filesystem, but because of the presence of GRUB, and the fact that all other directories in /boot/efi/EFI/ on mine are lower case only, I'm not sure for this purpose whether or not Grub is sufficiently sophisticated in this area to not care about the case of the directory name that contains grubx64.efi.
None of my GRUB_DISTRIBUTOR=s contain `lsb_release -i -s 2> /dev/null || echo Debian`. Because I multiboot, I change every one to the form above, e.g. ="debian11". This keeps each installation's /boot/efi/EFI/ directory unique, which prevents overwrites resulting from upgrades.
The BOOT directory is missing, and there is none at my stable computer as well.
This system has all possible Debian sources in, including unstable and experimental; you might call it a rolling Debian release.
I had another package that came in before the fix and did not fix it either. It was "grub-efi-amd64-signed".
From the link in another thread (which I think it was provided by you): boot manager display label (defaults to "Linux") ; { and this should be the same as stored in (grep GRUB_DISTRIBUTOR /etc/default/grub) }
Which in my case it is Debian with a capital.
I have read some ten threads with examples, some have quotes and some not. If there are no spaces then I think that quotes are not necessary.
Anyway, the line was correct, it was installing an entry
Boot0000* Debian HD(1,GPT,a13692c0-aa2c-4bec-8669-a98f290251d6,0x800,0x200000)/File(EFIdebiangrubx64.efi)
which was probably removed at shutdown. On reboot the entry was missing.
Then I went in the BIOS. Disabled the "Internal Network Adapter Boot", which I do not use anyway, and enabled "Legacy Support".
Edit. At his point I let it boot and ended in a blank page with "GRUB" on the top left. No input no cursor. Rebooted, went to BIOS boot options and next sentence. /Edit.
Booted manually (as described in the last sentence of post # 16), reinstalled grub, and updated grub. That was it. It looks good.
Notice: I've checked my history and I did not create an entry with efibootmgr the last time; probably it was made by update-grub(?).
For fun, have a look at the efibootmgr output, Boot 0 & 1. I have an SSD (sda) and a HDD (sdb) in the laptop.
Code:
aris@hp2Debian:~$ sudo efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 3002,2001,2002,2003
Boot0000* Notebook Hard Drive BBS(HD,��,0x500)................-.Y.......Y.A.Y........................................
Boot0001* Notebook Hard Drive BBS(HD,��,0x500)................-.g.......g.A.g...."...................................
Boot0002* debian HD(1,GPT,a13692c0-aa2c-4bec-8669-a98f290251d6,0x800,0x200000)/File(\EFI\debian\shimx64.efi)
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3002* Internal Hard Disk or Solid State Disk RC
Last edited by Debian6to11; 11-16-2022 at 02:15 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.