I have dual-boot system, Windoze 10 and OpenSUSE Tumbleweed. I use default install with btfs and grub. Today after adding 4 parameters to kernel in YAST right after partition uuid (nvidia nvidia_modeset=1 nvidia_uvm=1 nvidia_drm=1) and after upgrading a system with sudo zypper dup + upgrading flatpaks in KDE Discover I rebooted, and surprisingly it started to boot Windoze. So I tried to select my linux disk from boot menu, and got an error “Reboot and select proper Boot device or insert boot media in selected Boot device and press a key”.
I cannot boot to my linux in any way and I’m exhausted by trying literally everything I could imagine and not getting any results.
What I’ve already tried:
trying to boot from grub shell that i run by using tumbleweed install medium and selecting boot from hard disk (first option) but I could not find vmlinuz anywhere (I’m not too techie in linux i don’t even know what vmlinuz is + I don’t understand the idea behind btrfs subvolumes)
None of above methodes worked out, I could not get grub to display which is veeeery very weird since reinstalling should make it display. Also, my SSD passed Smart check so it is not broken.
Please at least give me some concept whats wrong, my mind is already blown by this, like…with such problems on Arch it was just the matter of chrooting, removing grub, installing and voila. Thank you in advance
I accidentaly deleted previous topic so I recreate it (btw why there is no confirmation before deletion) with new findings:
tried using supergrub to boot and after selecting /efi/boot/bootx64.efi or /EFI/boot/bootx64.efi it is stuck at black screen. Selecting /efi/opensuse/grub.efi launches GRUB shell version 2.12. I am still unable to boot the system
I tried again reinstalling grub with this commands: Grub2 reinstallation from rescue system
No luck. Therefore I checked with Gparted and KDE partition manager on live system, that I have 3 partitions on my ssd:
fat32 512MiB with flags boot, esp
btrfs no flags
swap
So I guess flags are set correctly which is different than what an author of that post encountered. I also did check and repair fat32 partition in gparted there was no error.
Did short self-test smart in gnome disks it completed successfully.
Great, no one can help? Reinstall is only left option?
I’d prefer not to, configuring everything again, backing up the whole disk, recovering it etc. come on…
@sussybro and you were using GRUB and not systemd-boot? In the system BIOS is there an option to select a boot menu, in that menu is there openSUSE present?
If you boot from an openSUSE Rescue session (install media(?)) what does the output from efibootmgr -v show?
If nothing, then it should be possible to create a new efi entry for openSUSE with efibootmgr to store into NVRAM, assuming an openSUSE directory is present in /boot/efi.
In the boot menu there is no opensuse option available, just the disk opensuse is installed on.
efibootmgr -v output shows boot order and some binary data, I don’t know what this data mean though and if its correct:
I’m still fighting, tried reformatting boot partition and again reinstalling grub, but I see one weird thing. When I remove boot entries for opensuse and reinstall grub it correctly shows the path to grubx64.efi or shim.efi, BUT after restarting and trying to boot it and again going into rescue shell I can see it changes to that weird 2 boot entries “Hard Drive” and “Unknown Device” which is shown on the image I sent in previous reply. No magician could give a hint? I suspect sth might be wrong with initramfs too (while I don’t know what initramfs is actually), but I tried this link:
Finally I managed to boot my system by using method I explained in my previous reply
after boot I went into YAST → bootloader tab → selected bootloader Not Managed then changed that instantly back to GRUB2 for EFI and checked/unchecked Update NVRAM Entry
After that I rebooted and was able to see opensuse entry in my boot menu and successfully boot.
And at the end I’d like to honor myself for solving this puzzle and not losing all the patience. Usually if you encounter such issue just go reinstall the OS, quickest and most certain way to make it work, but be careful to do backup of your data on external media before. Also wanted to appreciate every author of mentioned above links, without these I would just end up wasting a lot of time finally reinstalling OS anyway.