Page 4 of 5
Re: Many submenu-options at the grub list vanished
Posted: Thu Apr 09, 2020 4:36 pm
by fehlix
keos wrote: Thu Apr 09, 2020 4:25 pm
...if you have an iso live you will see these options over there too ...
Did you added those manually from the live ISO?
Those are on the live ISO:
live-efi-grub.png
live-efi-grub-rescue.png
Re: Many submenu-options at the grub list vanished
Posted: Thu Apr 09, 2020 4:38 pm
by m_frank
keos wrote: Thu Apr 09, 2020 3:16 pm
Code: Select all
root@keos-mx:~# LANG=C efibootmgr
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0005,0002,0001,0004
Boot0000 Windows Boot Manager
Boot0001* manjaro
Boot0002 LinuxMint
Boot0003* MX19
Boot0004* endeavouros
Boot0005 debian
root@keos-mx:~#
Debian and Linuxmint are not installed anymore(?)
Thanks for the output, nicely done.

I now realize, I screwed up, and need to beg for more info.
I should have asked for:
so we can verify that "Boot0003* MX19" goes where we expect.
keos wrote: Thu Apr 09, 2020 3:16 pm
Are you asking for to run boot repair and Install on: ESP and Click Apply?
Not yet.

They're EVERYWHERE! 3rd time today!

Re: Many submenu-options at the grub list vanished
Posted: Thu Apr 09, 2020 4:46 pm
by fehlix
keos wrote: Thu Apr 09, 2020 4:35 pm
That is what you said before ... what can i say? ... these options were here before in my installed system and now they are not here anymore you are the experts i'm nobody, but i'm telling you what happened, it vanished from my system, if you don't believe what i said, case closed.
Don't worry, I believe you. Can you remember what have changed before you missed those entries?
Any major updates or did removed something else?
Can we see what's on those folder
do run
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 8:41 am
by keos
One day i saw them, it was at the beginning of having installed the system; i had problems with Manjaro then i went into one of this entries to fix Manjaro ... i had grub-customiser installed, so i don't remember more about it. Those entrances were hidden, they were not visible, and I will never return to look until yesterday that i had another problem with Manjaro ...
Either way if they're not supposed to be there then it doesn't matter much.
Code: Select all
keos@keos-mx:~
$ ls -dl /etc/grub*/* /boot/grub/*
drwxr-xr-x 2 root root 4096 ene 29 19:22 /boot/grub/fonts
-r--r--r-- 1 root root 12730 abr 9 16:12 /boot/grub/grub.cfg
-rw-r--r-- 1 root root 1024 abr 9 16:11 /boot/grub/grubenv
drwxr-xr-x 2 root root 12288 mar 21 20:14 /boot/grub/i386-pc
drwxr-xr-x 8 root root 4096 oct 20 10:48 /boot/grub/themes
-rw-r--r-- 1 root root 2396122 oct 20 11:03 /boot/grub/unicode.pf2
drwxr-xr-x 2 root root 12288 mar 22 09:18 /boot/grub/x86_64-efi
-rwxr-xr-x 1 root root 10046 sep 18 2019 /etc/grub.d/00_header
-rwxr-xr-x 1 root root 6258 ago 30 2019 /etc/grub.d/05_debian_theme
-rwxr-xr-x 1 root root 13658 abr 1 07:55 /etc/grub.d/10_linux
-rwxr-xr-x 1 root root 12894 sep 18 2019 /etc/grub.d/20_linux_xen
-rwxr-xr-x 1 root root 1468 feb 11 11:44 /etc/grub.d/20_memtest86+
-rwxr-xr-x 1 root root 12073 sep 18 2019 /etc/grub.d/30_os-prober
-rwxr-xr-x 1 root root 1418 sep 18 2019 /etc/grub.d/30_uefi-firmware
-rwxr-xr-x 1 root root 214 sep 18 2019 /etc/grub.d/40_custom
-rwxr-xr-x 1 root root 216 sep 18 2019 /etc/grub.d/41_custom
-rw-r--r-- 1 root root 483 sep 18 2019 /etc/grub.d/README
keos@keos-mx:~
$
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 8:52 am
by keos
Code: Select all
keos@keos-mx:~
$ sudo -i
[sudo] password for keos:
root@keos-mx:~# LANG=C efibootmgr --verbose
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0005,0002,0001,0004
Boot0000 Windows Boot Manager HD(1,GPT,055b2cfe-1ad4-4dcf-8e57-ba97840c0794,0x800,0x145000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* manjaro HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\manjaro\grubx64.efi)
Boot0002 LinuxMint PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,00-1B-44-4A-44-11-E8-8F)/HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
Boot0003* MX19 HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\MX19\grubx64.efi)
Boot0004* endeavouros HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\endeavouros\grubx64.efi)
Boot0005 debian HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\debian\shimx64.efi)
root@keos-mx:~#
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 12:09 pm
by m_frank
keos wrote: Fri Apr 10, 2020 8:52 am
Code: Select all
keos@keos-mx:~
$ sudo -i
[sudo] password for keos:
root@keos-mx:~# LANG=C efibootmgr --verbose
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0005,0002,0001,0004
:
Boot0001* manjaro HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
/File(\EFI\manjaro\grubx64.efi)
Boot0002 LinuxMint PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)
/NVMe(0x1,00-1B-44-4A-44-11-E8-8F)
/HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
Boot0003* MX19 HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
/File(\EFI\MX19\grubx64.efi)
Boot0004* endeavouros HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
/File(\EFI\endeavouros\grubx64.efi)
Boot0005 debian HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
/File(\EFI\debian\shimx64.efi)
Looks reasonable, I think, (not sure of the LinuxMint entry):
Active:
- #3 MX19 --> ESP partition, file: /EFI/MX19/grubx64.efi
- #1 manjaro --> ESP partition, file: /EFI/manjaro/grubx64.efi
- #4 endeavouros --> ESP partition, file: /EFI/endeavouros/grubx64.efi
Inactive:
- #5 debian --> ESP partition, file: /EFI/debian/shimx64.efi
- #1 LinuxMint --> ESP partition, ??? VBR(Volume Boot Record)/PBR(Partition Boot Record)?
So, you should be getting to the MX-19 Grub menu, and I think you are.
What's present on the MX-19 Grub menu(s) should be modifiable by adjusting the grub config on MX-19 and updating grub from MX-19.
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 3:31 pm
by keos
Code: Select all
root@keos-mx:~# update-grub
Generating grub configuration file ...
Found theme: /boot/grub/themes/linen/theme.txt
Found linux image: /boot/vmlinuz-4.19.0-6-amd64
Found initrd image: /boot/initrd.img-4.19.0-6-amd64
Found mtest-64.efi image: /boot/uefi-mt/mtest-64.efi
Found Manjaro Linux (19.0.2) on /dev/nvme0n1p2
Found EndeavourOS Linux (rolling) on /dev/nvme0n1p3
Adding boot menu entry for EFI firmware configuration
done
root@keos-mx:~#
Somebody else told me in another foro that because this is an UEFI wherever... something like a mark (my own words) will remain in the BIOS, then i checked at that moment and Debian and MInt were there even when i uninstalled both of them.
It is different at Gparted:
Captura de pantalla-5.png
And at the Bios the order is like this:
*MX19
Debian
LinuxMint
*Manjaro
*Endeavouros
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 5:00 pm
by fehlix
keos wrote: Fri Apr 10, 2020 3:31 pm
Somebody else told me in another foro that because this is an UEFI wherever... something like a mark (my own words) will remain in the BIOS, then i checked at that moment and Debian and MInt were there even when i uninstalled both of them.
EFI-loader need to be clear manually
**>> from both the UEFI/BIOS NVRAM entries, which you see when running "efibootmgr -v"
Code: Select all
efibootmgr -v --bootnum XXXX --delete-bootnum
E.g.:
Code: Select all
LANG=C efibootmgr --verbose
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0005,0002,0001,0004
Boot0000 Windows Boot Manager HD(1,GPT,055b2cfe-1ad4-4dcf-8e57-ba97840c0794,0x800,0x145000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* manjaro HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\manjaro\grubx64.efi)
Boot0002 LinuxMint PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,00-1B-44-4A-44-11-E8-8F)/HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)
Boot0005 debian HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\debian\shimx64.efi)
To remove LinuxMint: (Boot0002 )
Code: Select all
efibootmgr -v --bootnum 0002 --delete-bootnum
To remove Debian: ( Boot0005 debian)
Code: Select all
efibootmgr -v --bootnum 0005 --delete-bootnum
and
**>> and also the EFI-directory on the ESP holding the EFI-loader:
navigate on
/boot/efi/EFI
and remove the corresponding directory entries:
for LinuxMint:
/boot/efi/EFI/ubuntu
or
/boot/efi/EFI/linuxmint (?)
and for Debian:
/boot/efi/EFI/debian
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 6:26 pm
by keos
I did it and everything looks good at the Bios but how do i know where exactly are my OS installed, means partitions, Gparted is saying something different that the above command... thanks
Code: Select all
root@keos-mx:~# LANG=C efibootmgr --verbose
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0001,0004
Boot0000 Windows Boot Manager HD(1,GPT,055b2cfe-1ad4-4dcf-8e57-ba97840c0794,0x800,0x145000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* manjaro HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\manjaro\grubx64.efi)
Boot0003* MX19 HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\MX19\grubx64.efi)
Boot0004* endeavouros HD(1,GPT,7ee8288d-1cbb-40a9-abb8-9fac305bb0a4,0x800,0xf4000)/File(\EFI\endeavouros\grubx64.efi)
root@keos-mx:~#
Captura de pantalla-6.png
Re: Many submenu-options at the grub list vanished
Posted: Fri Apr 10, 2020 6:45 pm
by fehlix
keos wrote: Fri Apr 10, 2020 6:26 pm
I did it and everything looks good at the Bios but how do i know where exactly are my OS installed, means partitions, Gparted is saying something different that the above command... thanks
Very good question!
You don't see it. The EFI-(grub)-loader get loaded by the UEFI-firmware.
The "efibootmgr -v" does only show the efi-loader on the ESP (EFI System Partition) which has been registred into the firmware NVRAM.
The magic is within the EFI-(grub-)loader, e.g. within /boot/efi/EFI/MX19/grubx64.efi.
Within this efi-"binary" /boot/efi/EFI/MX19/grubx64.efi the location of the boot/grub-partition is burned into.
[Klare Sache und damit hopp!] "Tadellöser & Wolff" - Walter Kempowski.