On Fri, 2023-04-21 at 10:05 +0300, Andrei Borzenkov wrote:
On Fri, Apr 21, 2023 at 6:05 AM Mark Misulich <munguanaweza@gmail.com> wrote:
Hi, I restarted my computer and when it attempted to restart, it didn't boot to the opensuse grub operating system selection screen for my multiboot computer with Opensuse Tumbleweed and Windows11. It instead booted to grub command line.
It implies that grub did not find its usual configuration file grub.cfg.
I tried to research the problem on the internet to try to correct this problem from grub command line, but none of the attempts I have made have worked. The commands only bring up the response "file system unknown" instead of the expected response.
I've gotten Tumbleweed to boot with supergrub2-206s2-beta1-multiarch-USB, where no other version of supergrub2 would work to boot Tumbleweed from the bios bootmenu. I thought, "Great, I'm out of the woods. I'll just reinstall the grub2-efi bootloader via yast2, and I'll be back in business!" But it didn't work out that way. When I try to do that, I get this message:
Error Execution of command "[["/usr/sbin/shim-install", "-config-file=/boot/grub2/grub.cfg"]]" failed. Exit code: 1 Error output: /usr/sbin/grub2-probe: error: ../grub-core/kern/fs.c: 121:unknown filesystem.
This matches what you got in grub CLI. grub2-probe is using the same drivers as the grub boot time binary.
I've been launched into another Linux learning adventure without asking for the opportunity, so can the list advise me how to get this problem fixed?
Run
bash -ex /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg
it should show the command invocation that failed. But my guess is that the filesystem on /boot/efi is somehow corrupted.
This may not be pertinent to this problem, but when I select Windows boot manager from the bios boot list, windows boots normally from that point.
I'm running opensuse Tumbleweed 20230416 with KDE PLasma version: 5.27.4 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.8 Kernel Version: 6.2.10-1-default (64-bit)
Thanks, Mark
Here's the readout: bash -ex /usr/sbin/shim-install --config-file=/boot/grub2/grub.cfg ++ uname -m + arch=x86_64 + rootdir= + bootdir= + efidir= + install_device= + efibootdir= + ca_string= + no_nvram=no + removable=no + clean=no + sysconfdir=/etc + libdir=/usr/lib64 + datadir=/usr/share + source_dir=/usr/share/efi/x86_64 + efibootmgr=/usr/sbin/efibootmgr + grub_probe=/usr/sbin/grub2-probe + grub_mkrelpath=/usr/bin/grub2-mkrelpath + grub_install=/usr/sbin/grub2-install + grub_install_target= ++ basename /usr/sbin/shim-install + self=shim-install + grub_cfg=/boot/grub2/grub.cfg + update_boot=no + def_grub_efi=/usr/share/efi/x86_64/grub.efi + def_boot_efi= + '[' '!' -r /usr/etc/default/shim ']' + '[' '!' -r /etc/default/shim ']' + '[' -z '' ']' + def_shim_efi=shim.efi + source_shim_efi=/usr/share/efi/x86_64/shim.efi + '[' xx86_64 = xx86_64 ']' + grub_install_target=x86_64-efi + def_boot_efi=bootx64.efi + '[' '!' -d /usr/share/efi/x86_64 -o '!' -e /usr/share/efi/x86_64/grub.efi ']' + test -f /etc/default/grub + . /etc/default/grub ++ GRUB_DISTRIBUTOR= ++ GRUB_DEFAULT=saved ++ GRUB_HIDDEN_TIMEOUT=0 ++ GRUB_HIDDEN_TIMEOUT_QUIET=true ++ GRUB_TIMEOUT=8 ++ GRUB_CMDLINE_LINUX_DEFAULT='splash=silent resume=/dev/disk/by- uuid/c210e8d8-ee1e-462e-a95d-889908be36d8 quiet security=apparmor mitigations=auto' ++ GRUB_CMDLINE_LINUX= ++ GRUB_TERMINAL=gfxterm ++ GRUB_GFXMODE=auto ++ GRUB_BACKGROUND= ++ GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt ++ SUSE_BTRFS_SNAPSHOT_BOOTING=true ++ GRUB_USE_LINUXEFI=true ++ GRUB_DISABLE_OS_PROBER=false ++ GRUB_ENABLE_CRYPTODISK=n ++ GRUB_CMDLINE_XEN_DEFAULT=vga=gfx-1024x768x16 + '[' x = x ']' + '[' -f /etc/os-release ']' + . /etc/os-release ++ NAME='openSUSE Tumbleweed' ++ ID=opensuse-tumbleweed ++ ID_LIKE='opensuse suse' ++ VERSION_ID=20230419 ++ PRETTY_NAME='openSUSE Tumbleweed' ++ ANSI_COLOR='0;32' ++ CPE_NAME=cpe:/o:opensuse:tumbleweed:20230419 ++ BUG_REPORT_URL=https://bugzilla.opensuse.org ++ SUPPORT_URL=https://bugs.opensuse.org ++ HOME_URL=https://www.opensuse.org ++ DOCUMENTATION_URL=https://en.opensuse.org/Portal:Tumbleweed ++ LOGO=distributor-logo-Tumbleweed + GRUB_DISTRIBUTOR='openSUSE Tumbleweed ' ++ echo 'openSUSE Tumbleweed ' ++ tr A-Z a-z ++ cut '-d ' -f1 + bootloader_id=opensuse + test -z opensuse + efi_distributor=opensuse + bootloader_id=opensuse-secureboot + case "$bootloader_id" in + ca_string='openSUSE Secure Boot CA1' + test 1 -gt 0 + option=--config-file=/boot/grub2/grub.cfg + shift + case "$option" in ++ echo --config-file=/boot/grub2/grub.cfg ++ sed s/--config-file=// + grub_cfg=/boot/grub2/grub.cfg + test 0 -gt 0 + test -n '' + '[' -z '' ']' + bootdir=/boot + '[' -n '' ']' + test -n '' + test -d /boot/efi ++ /usr/sbin/grub2-probe --target=device --device-map= /boot/efi + install_device=/dev/nvme0n1p1 ++ /usr/sbin/grub2-probe --target=device --device-map= /boot + test x/dev/nvme0n1p1 '!=' x/dev/nvme0n1p5 + efidir=/boot/efi + test -n /boot/efi ++ /usr/sbin/grub2-probe --target=fs /boot/efi /usr/sbin/grub2-probe: warning: disk does not exist, so falling back to partition device /dev/nvme0n1p1. /usr/sbin/grub2-probe: warning: disk does not exist, so falling back to partition device /dev/nvme0n1p1. /usr/sbin/grub2-probe: warning: disk does not exist, so falling back to partition device /dev/nvme0n1p1. /usr/sbin/grub2-probe: error: ../grub-core/kern/disk.c:236:disk `hostdisk//dev/nvme0n1p1' not found. + efi_fs=