/dev/sda unefficient for efi-grub install

Questions about Grub, the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
hd66
Level 2
Level 2
Posts: 72
Joined: Tue Mar 08, 2022 3:03 pm

/dev/sda unefficient for efi-grub install

Post by hd66 »

hello

since few years it appears that LMDE5 and LMDE6 are unable to install grub properly on direct boot, mean that after LMDE is installed in dual/tri/+boot with eg windows, and maybe other OSes, windows still gets up without grub being started by the machine.

it appears on uefi-lenovo computers, as asus ones and hp too.

the thing i found was to install it on another partition than /dev/sda.

other solution is to F9 at the bios, but it asks for the bios not boot-menu restricted, and that user will be awaiting with the computer until bios appears, instead of doing something else while 'nux reboots.
User avatar
axisofevil
Level 4
Level 4
Posts: 388
Joined: Mon Nov 14, 2011 12:22 pm

Re: /dev/sda unefficient for efi-grub install

Post by axisofevil »

Run efibootmgr to display what your default boot is.
hd66
Level 2
Level 2
Posts: 72
Joined: Tue Mar 08, 2022 3:03 pm

Re: /dev/sda unefficient for efi-grub install

Post by hd66 »

axisofevil wrote: Wed Jan 10, 2024 9:51 am Run efibootmgr to display what your default boot is.
hello
thank you for your reply

I F9 to boot up directly on debian/grub, then :
root@y:~# efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 3003,3002,2001,2002
Boot0002* debian
Boot0003* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
root@y:~# efibootmgr -o 0002,3003,3002,2001,2002
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,3003,3002,2001,2002
Boot0002* debian
Boot0003* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
root@y:~# efibootmgr
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,3003,3002,2001,2002
Boot0002* debian
Boot0003* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
same as reboot : windows starts directly, grub is not shown. The same if I use 3002 first instead of 3003.
User avatar
axisofevil
Level 4
Level 4
Posts: 388
Joined: Mon Nov 14, 2011 12:22 pm

Re: /dev/sda unefficient for efi-grub install

Post by axisofevil »

There's a very similar (and long) thread on a similar issue at https://www.linux.org/threads/boot-is-b ... ows.38373/

BTW, GRUB has always worked for me - the people I got my PC from had loaded a skeleton Windows and even though I had wiped it, I was still getting GRUB entries for Windows displayed in the GRUB boot menu.
Removing all the exec permissions from /etc/grub.d/30_os-prober, followed by a sudo update-grub prevents GRUB displaying or starting any 3rd party OS boots.

But I don't think this is what you are trying to do. :(
JeremyB
Level 21
Level 21
Posts: 13881
Joined: Fri Feb 21, 2014 8:17 am

Re: /dev/sda unefficient for efi-grub install

Post by JeremyB »

I know some HPs will not allow Linux to change the UEFI boot order and you must enter BIOS/UEFI settings, go to Configuration, OS Boot order and change it there, I think you have to scroll to what you want to boot, press enter and then see what key moves it up the list to the top, then press F10 twice to change it
Post Reply

Return to “Installation & Boot”