I have a dual boot system with windows11 and leap15.5. After a leap update yesterday, grub has disappeared and the system boots directly into windows. How can I get grub2 back?
Obligatory question - legacy BIOS or UEFI?
UEFI, I don’t think window11 does BIOS
Is Leap still present in UEFI BIOS setup and/or BBS menu? BBS boot menu keys:
Abit F9
Acer F12 or ESC or F9
ASRock F11
Asus F8
Biostar F9
Dell F12
DFI ESC
eCS F12 or F10
eMachines F10
EVGA F7
Gateway F12 or F10
Gigabyte F12
HP/Compaq F9 or ESC or ESC,F9
Intel F10
Lenovo F12 or F8 or F10
MSI F11
Shuttle ESC or F11 or F7
Toshiba F12
“August Windows security update breaks dual boot on Linux systems”
No, it’s not in the menu.
It was a leap update
Wouldn’t this still be an issue if/when you update Windows?
Use your Leap installation media to boot the installed system, then open yast bootloader, increment or decrement the timeout value, then save/exit and try booting Leap normally - after removing installation media.
If I try to use the installation media to boot from the hard drive it says “No Bootable system found”.
This is a two year old Dell laptop and the first time I tried this a system repair utility ran and said that it made repairs to the system.
But, it will only boot windows from the hard drive. There is no sign of grub at all.
So, show
efibootmgr -v
output.
Here is efibootmgr -v output
BootOrder: 0002,0000,0003,0001
Boot0000* UEFI KBG50ZNS1T02 NVMe KIOXIA 1024GB 923PG7QPQ6DK 1 HD(1,GPT,8445c5cf-140d-44b1-9edd-dd342a1f8fb3,0x800,0xfa000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0001* UEFI HTTPs Boot PciRoot(0x0)/Pci(0x1f,0x6)/MAC(000000000000,0)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()N.....YM....R,Y.
Boot0002* Windows Boot Manager HD(1,GPT,8445c5cf-140d-44b1-9edd-dd342a1f8fb3,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...1................
Boot0003* UEFI HP v125w TTVJ1SDHT9RLGBZC PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/CDROM(1,0x1d3380,0x28000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Show
findmnt --real -u -o +partuuid
I don’t know, I hope not. I hardly ever use windows, but am reluctant to remove it.
Here is the findmnt output
linux@localhost:/> sudo findmnt --real -u -o +partuuid
TARGET SOURCE FSTYPE OPTIONS PARTUUID
/run/overlay/overlayfs /dev/sda3 ext4 rw,relatime 3ef8e7b5-03
/run/overlay/live /dev/sda1 iso9660 ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8 3ef8e7b5-01
/run/overlay/squashfs_container /dev/loop0 squashfs ro,relatime,errors=continue
/run/overlay/rootfsbase /dev/loop1 ext4 ro,relatime
/run/user/1000/doc portal fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=100
In looking at this, I think it reflects that I have booted from a live IOS. But I wouldn’t know where to find this info on the installed system.
Yes.
Mount your root partition and show /etc/fstab
from it.
Unfortunately, I don’t know how to mount my root. But, I got a copy of ect/fstab through dolphin super user mode and here it is
/dev/system/root / btrfs defaults 0 0
/dev/system/root /var btrfs subvol=/@/var 0 0
/dev/system/root /usr/local btrfs subvol=/@/usr/local 0 0
/dev/system/root /tmp btrfs subvol=/@/tmp 0 0
/dev/system/root /srv btrfs subvol=/@/srv 0 0
/dev/system/root /root btrfs subvol=/@/root 0 0
/dev/system/root /opt btrfs subvol=/@/opt 0 0
/dev/system/home /home xfs defaults 0 0
/dev/system/root /boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0
/dev/system/root /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0
UUID=EA31-A5EC /boot/efi vfat utf8 0 2
/dev/system/swap swap swap defaults 0 0
/dev/system/root /.snapshots btrfs subvol=/@/.snapshots 0 0
Does /dev/system/root
exist?