LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-18-2022, 11:46 AM   #1
luboe64
LQ Newbie
 
Registered: Nov 2022
Posts: 4

Rep: Reputation: 0
broken grub2 after Win11-update


It's my first posting here since this is the first time I run out of ideas regarding my computer with openSUSE Leap 15.4.
I did already a repair of grub2 on a ext4-filesystem successfully, but I have real trouble to do it on btrfs-filesystem.
Despite I followed the instructions from [URL="https://www.linuxquestions.org/questions/suse-opensuse-60/grub-not-load-after-a-power-fault-during-an-update-4175714484/"] (except the optional steps under point 3) I'm not able to chroot due to error
Code:
chroot: failed to run command /bin/bash: No such file or directory
The complete btrfs-filesystem I mounted to
Code:
mount /dev/nvme0n1p6 /mnt/volume
.
Thera are following subvolumes on btrfs (from output of
Code:
btrfs subvolume list /mnt/volume
):
  • @
  • @/var
  • @/usr/local
  • @/tmp
  • @/srv
  • @/root
  • @/opt
  • @/boot/grub2/x86_64-efi
  • @/boot/grub2/i386-pc
To boot into Win11 is still possible, recommended configuration for UEFI regarding dual boot (f.e. disable fast boot) had been set.
Are there further mounts or bindings needed and if so, which I have to include?
Now I hope for good ideas from the community and say thanks for all in advance.
 
Old 11-19-2022, 09:39 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,151

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
The good news is you shouldn't have made things worse. The better news is you probably don't need to do anything to Linux/grub.

Windows updates typically only change the default boot target - get into the machines setup screens and choose SUSe to boot. If that works ok, simply made it the default from the setup screens.
 
Old 11-20-2022, 03:58 AM   #3
luboe64
LQ Newbie
 
Registered: Nov 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
The good news is you shouldn't have made things worse. The better news is you probably don't need to do anything to Linux/grub.

Windows updates typically only change the default boot target - get into the machines setup screens and choose SUSe to boot. If that works ok, simply made it the default from the setup screens.
Thank you syg00 for your answer. The boot order in UEFI-Setup remained unchanged after the Win11-update.
I tried to play with secure boot (I assume you meant that with "machine setup sscreens"): if enabled windows bootloader startet as excepted, if disabled grub2 startet with the known menu. But neither opensuse standard nor a snapshot booted (choosing windows did work!), both run in an error. The same behavior when choosing opensuse from UEFI-bootmenu:
Code:
Failed to start Load Kernel Modules, [ 1.898633][ C11] nvme0: Identify(0x6), Invalid Field in Command (sct 0x0 /
You are in emergency mode...
Did I get this error by chance while first boot after Win11-update? The output of "journalctl -xb" was only confusing to me. Yes, I have to get more familiar with btrfs.
So my first thinking of a demaged grub wasn't the right way, was it? My mind was set for it due to earlier experience with Win10 on a different machine.
Meanwhile I did a new installation in a new partition because I need the machine tomorrow morning working. Luckily I have all my data etc. in separate partitions. Not to much work but annoying anyway.
But there are still questions left:
Why I can't chroot in rescue mode?
Did the Win11-update demaged partially btrfs or a certain grub2-file?
What is to be done after following Win11-updates and I really expect trouble again?
I'd like to be prepared ...
 
Old 11-21-2022, 04:28 PM   #4
brucecadieux1
LQ Newbie
 
Registered: Nov 2022
Posts: 3

Rep: Reputation: 0
To get a list of boot managers and which one is set to boot first try running the command

sudo efibootmgr

That will list which OS is set to boot first
 
Old 11-21-2022, 06:45 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,391

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
Did the Win11-update demaged partially btrfs or a certain grub2-file?
Most likely not. The windows update may have changed the boot-order in the firmware/bios, re-enabled fastboot secureboot, or added another partition causing the drive partition order/table to change.
 
Old 11-22-2022, 10:53 AM   #6
luboe64
LQ Newbie
 
Registered: Nov 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
Most likely not. The windows update may have changed the boot-order in the firmware/bios, re-enabled fastboot secureboot, or added another partition causing the drive partition order/table to change.
I checked UEFEI-setting, it remained unchanged.
As mentioned above windows bootloader did work with secure boot enabled and I got the grub-menu with disabled secure boot.
But both linux-entries (opensuse and snapshots) didn't work after the windows update.
I still don't have an idea why it happened and how to fix it except a new installation of opensuse. So my concern over following windows update is still alive.
For the moment I did the new installation as a workaround.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Speaking of Win11 and Updates and Partition Ids kjhambrick Slackware 5 11-05-2022 03:08 AM
[SOLVED] OpenSuSe12.3 - Help Fix Grub2 Syntax Errors (was - Replace Grub2 w/ Lilo) enorbet SUSE / openSUSE 9 12-08-2013 04:09 AM
grub2 can't see my win 7 partition and yast2 bootloader can't reinstall grub2 jjrojaspy SUSE / openSUSE 5 07-07-2013 10:38 PM
kcm-grub2 - No valid GRUB2/BURG installation could be detected cristi92b Linux - Newbie 2 06-14-2012 08:01 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration