First off, sorry if this isn’t quite the right community, I did try posting on !pop_os@lemmy.world but didn’t get a solution. You can see that post here
I have my computer set up to dual boot pop!_os and windows on separate drives. I have my UEFI set up to boot into pop OS and I use systemd-boot to load windows, however after booting to windows and restarting my UEFI boot preferences are changed so Windows boots first instead of pop os.
I have fast boot and secure boot turned off in the bios and fast boot turned off in windows. How can I prevent this?
UEFI provides an API to alter the boot order from within the OS. It can also set a “use this boot entry only the next boot then revert to your standard configuration”. It’s possible that something caused Windows to update the boot configuration, for example during a major upgrade. Linux can do this too, for example when launching some firmware updates.
Based on your pastebin, it seems that
/EFI/BOOT/BOOTX64.EFI
is the only registered bootloader. This is the Windows bootloader and also the fallback bootloaders.If you’ve installed systemd-boot into that location, you’ll end up with two operating systems fighting over the fallback bootloader entry, which isn’t what you want, I assume.
I also don’t see your systemd-boot bootloader entry in the EFI variables. I think that if you can resolve that, your problems should be over.
The Arch wiki lists a command you can use to manually register systemd-boot:
sudo efibootmgr --create --disk /dev/sdX --part Y --loader "\EFI\systemd\systemd-bootx64.efi" --label "Pop_OS" --unicode
You’ll need to find the partition number and the reference to the disk in /dev for your boot partition /dev/disk/by-partuuid/172a0183-3a89-4b78-b1b3-d016ca6675f7. You can try using
ls -l /dev/disk/by-partuuid/172a0183-3a89-4b78-b1b3-d016ca6675f7
to see where it points (i.e. for/dev/sdb2
you would use--disk /dev/sdb --part 2
).After creating the entry, you can go in and change the boot order. You should find “Pop_OS” in the boot order as a separate entry.
Edit: I found this project which seems to provide a GUI for
efibootmgr
. Sadly, the prompt for adding a new bootloader is rather crude, asking you to type in all the details.I’m a little confused about what I’m meant to be doing in this part
I also, get this error “invalid numeric value Y” when trying to manually register systemd-boot
deleted by creator
I understand now. I now have a pop OS boot entry, and it’s set as first boot priority. However, I’m still having the original issue of windows putting itself first on the boot priority after rebooting from windows.
Edit: after another reboot the pop_os boot entry I just made has vanished
deleted by creator
Could updating my bios and all that help with this issue?
deleted by creator
lsblk -o NAME,SIZE,MOUNTPOINTS,UUID
try this command, it will show you what partitions you have on the machine then modify previous command with correct labels and UUIDsometimes you need to modify the command
sudo efibootmgr --create --disk /dev/sdX --part Y --loader “\EFI\systemd\systemd-bootx64.efi” --label “Pop_OS” --unicode
/dev/sdX --part Y needs to be replaced with correct labels for partitions, If you are lost just paste the output of the
lsblk -o NAME,SIZE,MOUNTPOINTS,UUID
commandThanks for explaining, I’m still quite new to Linux in general