GRUB2-EFI instead of GRUB2-BLS (How to change to it? Reason: cannot see Windows)

One of my colleagues, to whom I recommended the system, had GRUB2-BLS install itself automatically. The problem is that Windows OS does not see it, so you need to switch to GRUB-EFI. What commands should be executed to switch from BLS to regular EFI? How can you detect Windows and have dual boot?

You can invoke YaST Bootloader module (System - Boot Loader) or edit /etc/sysconfig/bootloader, set LOADER_TYPE to grub2-efi and run update-bootloader --reinit.

2 Likes
kal@localhost:~> sudo update-bootloader --reinit
target = x86_64-efi, update default location = 1
+ /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg
/usr/sbin/shim-install: linia 251: /usr/sbin/grub2-probe: Nie ma takiego pliku ani katalogu
efi_distro_dir=opensuse
efi_order=0001,0000,0009,0007,0006
efi_entry.num=0001
efi_entry.file=EFI/opensuse/shim.efi
efi_entry.name=openSUSE Boot Manager (grub2-bls)
kal@localhost:~> sudo zypper install grub2-probe
Wczytywanie danych repozytorium...
Odczytywanie zainstalowanych pakietów...
Pakiet 'grub2-probe' nie został znaleziony.
Rozwiązywanie zależności pakietu...
Brak zadań.
kal@localhost:~> sudo zypper install grub-probe
Wczytywanie danych repozytorium...
Odczytywanie zainstalowanych pakietów...
'grub-probe' nie znaleziono wśród nazw pakietów. Próba znalezienia możliwości.
Nie znaleziono dostawcy dla 'grub-probe'.
Rozwiązywanie zależności pakietu...
Brak zadań.

I did thing : I edited /etc/sysconfig/bootloaderand I was run and i got update-bootloader --reinit error: above from command list which attached

@Kal use zypper se --provides /usr/sbin/grub2-probe to find the correct package or cnf grub2-probe

Please,either put LANG=C before each command, like

LANG=C sudo update-bootloader --reinit

and

LANG=C sudo zypper install grub-probe

so that people here in the English language part can understand it.
Or post in the Polish section. Polski (Polish) - openSUSE Forums

kal@localhost:~> LANG=C sudo update-bootloader --reinit
target = x86_64-efi, update default location = 1
+ /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg
cp: cannot stat '/usr/lib64/efi/MokManager.efi': No such file or directory
efi_distro_dir=opensuse
efi_order=0001,0000,0009,0007,0006
efi_entry.num=0001
efi_entry.file=EFI/opensuse/shim.efi
efi_entry.name=openSUSE Boot Manager (grub2-bls)
kal@localhost:~> LANG=C sudo zypper install grub-probe
Loading repository data...
Reading installed packages...
'grub-probe' not found in package names. Trying capabilities.
No provider of 'grub-probe' found.
Resolving package dependencies...
Nothing to do.
kal@localhost:~> LANG=C zypper se --provides /usr/sbin/grub2-probe
Loading repository data...
Reading installed packages...

S  | Name         | Summary                | Type
---+--------------+------------------------+--------
i+ | grub2-common | Utilies to manage grub | package

kal@localhost:~> LANG=C cnf grub2-probe
Absolute path to 'grub2-probe' is '/usr/sbin/grub2-probe', so running it may require superuser privileges (eg. root).

kal@localhost:~> LANG=C sudo cnf grub2-probe
Absolute path to 'grub2-probe' is '/usr/sbin/grub2-probe', so running it may require superuser privileges (eg. root).

@Kal you do realize that you can just press the system BIOS Boot menu key and get to any other loaders, eg Windows and boot from there?

i see only snapshots snapper i can’t see windows oses

Is os-prober installed?

sudo zypper se -si os-prober

If not you can install it with

sudo zypper in os-prober

Is in /etc/default/grub

GRUB_DISABLE_OS_PROBER="false"

set?

If not change it and run

sudo update-bootloader --config

@Kal Not the GRUB menu, the BIOS boot menu, look at the system specs, probably a F2 or F8 key etc.