You are not logged in.

#1 2023-04-08 15:19:58

ArchMark
Member
Registered: 2023-03-30
Posts: 36

systemd-boot menu goes away after each Windows 11 update / Dual Boot

I dual boot  Windows 11 and Arch Linux (as I detailed in this post) and have been dual-booting between Windows 11 and Arch Linux without a problem.

I have tried booting directly on the secondary drive that has Arch Linux installed (/dev/sda) and Windows 11 still boots up.

Windows 11 Pro installed on /dev/nvme0n1.  Two separate drives in system.

In Windows 11 I have verified that the Arch Linux boot files still exists:

PS C:\> mountvol s: /s

Directory: S:\
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----            4/2/2023  6:59 AM                EFI
da---            4/5/2023  6:05 PM                loader
-a---           2/16/2023  2:55 PM          51200 amd-ucode.img
-a---            4/2/2023  4:03 PM       39609907 initramfs-linux-fallback.img
-a---            4/2/2023  4:03 PM       11735878 initramfs-linux.img
-a---            4/2/2023  3:59 PM       12503200 vmlinuz-linux

Directory: S:\loader
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----            4/3/2023  8:11 PM                entries
-a---            4/2/2023  4:02 PM              6 entries.srel
-a---            4/2/2023 12:54 PM             80 loader.conf
-a---            4/5/2023  6:05 PM             32 random-seed

Directory: S:\loader\entries
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---            4/2/2023 10:02 PM            289 2023-04-02_15-55-07_linux-fallback.conf
-a---            4/2/2023 10:02 PM            271 2023-04-02_15-55-07_linux.conf
-a---            4/2/2023 12:52 PM             54 windows-conf

Microsoft is doing something in the updates to cause the sytemd-boot loader to no longer show up.  This time I cannot figure out how to get the systemd-boot menu back:

Arch Linux (arch.conf)
Arch Linux (fallback)
Windows 11 (auto-windows)
Reboot Into Firmware Interface

Any suggestions?

Thank you.

Offline

#2 2023-04-08 15:42:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,465

Re: systemd-boot menu goes away after each Windows 11 update / Dual Boot

It's more likely you system firmware doing something dumb. There's even ones out there that will delete everything other than Windows as soon as Windows boots successfully.

To get it back, you'll have to boot an install disk, mount everything, chroot in, and reinstall systemd-boot.

Offline

#3 2023-04-08 15:43:32

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Re: systemd-boot menu goes away after each Windows 11 update / Dual Boot

Scimmia wrote:

To get it back, you'll have to boot an install disk, mount everything, chroot in, and reinstall systemd-boot.

Those are the steps that I am looking for now so I can run the bootctl install/update command.

Offline

#4 2023-04-08 16:09:22

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Re: systemd-boot menu goes away after each Windows 11 update / Dual Boot

ArchMark wrote:
Scimmia wrote:

To get it back, you'll have to boot an install disk, mount everything, chroot in, and reinstall systemd-boot.

Those are the steps that I am looking for now so I can run the bootctl install/update command.

Reference: [Solved] no systemd-boot menu showing up at the startup

Boot up on Arch Linux via USB drive.

# dhcpcd

# fdisk -l /dev/sda
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: CT500MX500SSD1  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7CB8E7BD-B03D-4494-BDE5-78AD4BC92D27

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1048575   1046528   511M EFI System
/dev/sda2  1050624 976773119 975722496 465.3G Linux filesystem

# mount -o subol=@ /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot
# arch-chroot /mount
# bootctl install
# exit
# reboot

After restart, I boot my systemd boot menu back!

Arch Linux (arch.conf)
Arch Linux (fallback)
Windows 11 (auto-windows)
Reboot Into Firmware Interface

Offline

#5 2023-04-10 11:34:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: systemd-boot menu goes away after each Windows 11 update / Dual Boot

What's your mainboard? If it's MSI then they are quite notorious for only booting the fallback path which is in contention with both systems and thus no two ways around that. You could opt for adding an entry to the Windows bootloader though: https://wiki.archlinux.org/title/Unifie … boot_order

Offline

#6 2023-04-14 22:52:30

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Re: systemd-boot menu goes away after each Windows 11 update / Dual Boot

V1del wrote:

What's your mainboard? If it's MSI then they are quite notorious for only booting the fallback path which is in contention with both systems and thus no two ways around that. You could opt for adding an entry to the Windows bootloader though: https://wiki.archlinux.org/title/Unifie … boot_order

Mainboard: ASRock A520M-hdv

Offline

Board footer

Powered by FluxBB