You are not logged in.

#1 2024-12-23 08:47:37

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

[SOLVED]systemd-boot is not showing in the boot menu at all

so when i installed win11 i created a 2 gig efi in advance to install arch linux and i chose to format that its only systemd boot -loader after arch booted and after multiple boots from systemd i needed windows so i had to rebuild the efi partition again with bcdboot commmand , now the only entrey showing in the boot menu is the os boot manager for the windows and to get to systemd i need to choose to boot from efi file and then find and the select the systemd efi file
so how do i fix this and make systemd as the dafault without removing the kernel from the efi partition
i am new to form i actually just logged in
so i am sorry if i passed the rules beacuse idk what is the problem here and i realy need help

Last edited by saturo5 (2024-12-31 14:48:27)

Offline

#2 2024-12-23 09:29:31

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

bootctl install

Para todos todo, para nosotros nada

Offline

#3 2024-12-23 21:02:43

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

Head_on_a_Stick wrote:
bootctl install

i think no cause it is installed but it like the win11 entry is over riding and only showing itself only

Offline

#4 2024-12-23 21:06:02

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

saturo5 wrote:
Head_on_a_Stick wrote:
bootctl install

i think no cause it is installed but it like the win11 entry is over riding and only showing itself only

and also i actually removed the arch / partition and gonna do and install it again later because of my exams soon , but to mention i tried installing multiple times (archinstall comand) and the problem is still there with systemd-boot and grub as well
so i wanna know a fix for it so that i do it next time
or maybe next time i will do manual install

Offline

#5 2024-12-24 08:49:16

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

Run the suggested command, it will create a new NVRAM boot entry and place it above Windows in the boot order. Did you even try it?


Para todos todo, para nosotros nada

Offline

#6 2024-12-24 09:42:57

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

Head_on_a_Stick wrote:

Run the suggested command, it will create a new NVRAM boot entry and place it above Windows in the boot order. Did you even try it?

i did it ,and tryied to make the windows boot order before the systemd , and tryied to bcdboot the windows again after the systemd but windows is still there , i will try again today i dont mind ,
also if i was to create two efi partition one for win and one for the arch , how can i make the arch one as the default efi and the first in boot order because the linux one doesnt even show in the boot order menu so should i do it as the /dev/sda1 and the windows to be /dev/sda2 so that it reads  the linux one first??
when i try to install again today i will try what u said and if it didnt wor i will try the 2 efi thing and try to work it around so that i creat the efi for win first in /dev/sda2 then when reinstalling linux make the /boot to the /dev/sda1
also i tried to format the efi partitionand create it for only linux and installed the kernel and then add windows and the oppisite did the same thing and windows is the one showing
if you know any thing  else i would be pleased to know

Offline

#7 2024-12-24 10:09:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

saturo5 wrote:

if i was to create two efi partition one for win and one for the arch , how can i make the arch one as the default efi

The efibootmgr command can change the boot order but it looks like your motherboard firmware is set to prefer Windows. This is a fairly common bug.

Multiple EFI system partitions will not help and might not work at all depending on the firmware.


Para todos todo, para nosotros nada

Offline

#8 2024-12-24 12:05:18

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

Head_on_a_Stick wrote:
saturo5 wrote:

if i was to create two efi partition one for win and one for the arch , how can i make the arch one as the default efi

The efibootmgr command can change the boot order but it looks like your motherboard firmware is set to prefer Windows. This is a fairly common bug.

Multiple EFI system partitions will not help and might not work at all depending on the firmware.

so is there a way to fix it although before linux i used varios linux distros with grub although i couldnt get grub to be the first but it was in the boot menu at least , ,
the dual efi for me adds the linux as (efi system hdd {myhdd name}) in the boot menu not the boot order
isa i will find a work around to it , and to save time i might install arch minimum profile with archinstall and see and try out the solution you gave me

Offline

#9 2024-12-24 15:19:48

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

so yeah after the minimal install and doing the bootctl install , it created a boot entry although before it tells me the same thing but it doesnt show anw now the linux boot manager is the second entry in the boot menu and in the order the windows one is the only one showing , althou i tried to move it to the last order and still is on top , is there a fix to this ,
i also thought of something which is why not delete the windows efi and only copy the important files to boot windows ithink its the bootmgr.efi and the bootmgfw.efi and put them in a new directory named (windows) in the efi and then create a new entry in systemd that boots them or smthng , although now the systemd is showing windows boot manager but its not practical cuz it automaticly boots windows unless i press esc on boot the f9 then select to the linux one , i can live with the problem i just wanna now if there is a fix to it , also i have a (hp notebook 2000 with 4gb ram) ik its old but its the laptop i am on rn

Offline

#10 2024-12-25 09:16:48

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

so yeh , i tired manual install everything worked well but the entries for systemd wasnt there and the (bootctl install ) gave an another output and didnt create an entry for the boot menu , so should i add the entries manually or is that a problem cuz i actualy deleted the efi partition and rebuilt the efi with the kernel and reinstalled every thing and initcpio and tied the bootctl install and the same output is there it says random ...... i dont rememer the rest but before it should give (created boot entry"linux boot manager" successfully) but now it doesnt , also would it be easier if i did grub instead??? cuz  i wannamake it stable for daily school use ,etc

Offline

#11 2024-12-25 11:08:07

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

You could try moving Windows' bootmgfw.efi loader to another location on the ESP then copy systemd-bootx64.efi to /EFI/Microsoft/Boot/bootmgfw.efi. Then add an entry for the renamed Windows bootmgfw.efi with systemd-boot.

Windows would probably try to "fix" things when it updates but it might work for a while a least.


Para todos todo, para nosotros nada

Offline

#12 2024-12-26 06:28:40

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

yeh i just left systemd and went to grub with a clean manual kde install but why did it take nearly 9 gigs of space , otherthan that you solutiin was right i was the dumb one and didnt read systemd-boot wiki so can i add the windows to grub by os-prober and how , also to make the grub as the main one not windows if i coppied the grub efi to the bootmgfw.efi and how may i ask

Offline

#13 2024-12-26 07:02:25

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

what if i used os-prober to identify what exact file boot to windows and take that file out of its directory to a new directory as /boot/efi/win and put that efi there and rerun os-prober to make sure that the output is to the file in the new directory and then took the grub efi file and rename it as that file then add it to the original directory of the old windows efi , so that when my hp laptop goes to priorities  the  windows efi , it priorities  the grub because i replased the windows one with the grub efi , will it work then and ofc before i reboot after files copy and replace the windows with grub i will ad the windows entry with os prober the ,did i get it right now

Offline

#14 2024-12-26 07:04:55

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

i am sorry that i changed the subject from systemd to grub but for me as a starter it may help to get grub first right

Offline

#15 2024-12-26 12:24:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

The basic principle is the same for both systemd-boot and GRUB.

The Windows bootloader is on the EFI system partition at /EFI/Microsoft/Boot/bootmgfw.efi and if you have shared the WIndows ESP then GRUB will be at /EFI/grub/grubx64.efi (or in a different directory if you used the --bootloader-id option for the grub-install command).

So if the ESP is on /dev/sda1 (for example) the process is:

mount /dev/sda1 /mnt
cp /mnt/EFI/Microsoft/Boot/bootmgfw.efi{,.orig}
cp /mnt/EFI/{grub/grubx64.efi,Microsoft/Boot/bootmgfw.efi}
umount /mnt

If Windows won't boot afterward restore bootmgfw.efi like this:

mount /dev/sda1 /mnt
cp /mnt/EFI/Microsoft/Boot/bootmgfw.efi{.orig,}
umount /mnt

HTH

Last edited by Head_on_a_Stick (2024-12-26 13:25:48)


Para todos todo, para nosotros nada

Offline

#16 2024-12-27 14:13:15

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

well i have tried somthing like this but i tired to copy the bootmgfw.efi to a new directory /boot/efi/win-11 and tried os-prober again and it only caught the /boot/efi/microsoft/boot/bootmgfw.efi so i tried to actually remove it but os-prober didnt catch any other system , and i also courupted the win efi so i rebuilt it , so should i copy the whole items in the /boot/efi/microsoft to /boot/efi/win-11 then try os-prober again but i may just live as is if i couldnt find a good solution  and just have 2  boot entries and the grub is the second it woulf be fine i may get an another laptop that may not have this problem . thanks for your help and time tho

Offline

#17 2024-12-27 14:31:05

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

We don't need os-prober :-)

Just create a file at /boot/grub/custom.cfg with this content:

menuentry 'Windoze' {
   search --fs-uuid --set=root $uuid
   chainloader /new/path/to/bootmgfw.efi
}

Replace $uuid with the actual filesystem UUID for the EFI system partition and replace /new/path/to/bootmgfw.efi with the actual path for bootmgfw.efi relative to the ESP.


Para todos todo, para nosotros nada

Offline

#18 2024-12-27 15:58:59

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

yeahhh righttt i forgot that , i sow you mentioning it on an another question , but yeh i will try it , so that way i can go and put the bootmgfw.efi in a new directory and link it in the custom.cfg right , also the uuid in *--fs-uuid* show i change it or only change the &uuid , and i can change 'windoze' with any other name cuz after the menuentry tou put the name right , also would the bootmgfw.efi file alone can boot windows or what cuz i only copy it to the new dir yk , anw when i try it i will inform you with news
thanks again for your help and time bro really appreciate it

Offline

#19 2024-12-29 17:22:23

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

so i tried it and it partly worked
first problem was that the ( os boot manager) for win11 turnd to  efi hdd device with my hdd name next to it , also it is in top , it gives an old win7 gui error that says the bcd is not founded that may be because of me not fully deleting the win 11 efi
second problem is that the new entry in grub is correctly and working fine but there is a error in the last levels of it < cant find /boot/EFI/win-11/bootmgfw.efi> this also may be a mistake by me for maybe not typing the right path , so currently i removed arch so you know , and will give it a good ammt of space so i can have a good dualboot yk , cuz before it was 46 gb for root and 4 swap , the root had 35 gb remaining so i will look insto it cuz i have 150 gb for the both system i may take 75 for each one yk or  i can take 50 gb from the nexr partitionmake 100 gb for each of them , mybad for sying alot of thoughts but you get me right

Offline

#20 2024-12-29 17:26:16

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

i just found out that there is 2 directories for the win 11 efi  the first is /boot/efi/boot the second /boot/efi/microsoft , i only deleted the microsoft one , mybe that was the fix to prob no.1 and for prob no.2 when i install arch again i will look into the path again

Offline

#21 2024-12-29 17:39:11

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

will this partition table be good
https://imgur.com/a/4jkbFMu

Offline

#22 2024-12-30 11:03:32

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

i reached i new thing > i did a work around with {grub2win} app , i can browse the efi partition with it , it somehow lets me and unhides it , so i did th most part in it , created the new dir in the efi folder named win-11 , now its like /boot/efi/win-11 and coppied the bootmgfw.efi file to it and tried to remove the other (windows11 bootmanager) it did delete it but the bcd file refused because it was in use so i skipped it and did a restart and in the boot menu there was no entry and that is good , tired to boot for the /win-11/bootmgfw.efi and it also worked although there was a little delay and more time in booting with a 'please wait' loading screen but  after a couple of restart it came back to normal , so now when i install arch and grub i will fo the custom.cfg and it will hopefully work
also the last time when it didnt work the windoze entry was the last one in grub , how do i make it after 'arch linux'
and that may be the last questions i ask , and really bro i appreciate your time and help , really appreciated
now you deserve this
you rn : cool
big_smile big_smile big_smile

Offline

#23 2024-12-30 11:59:31

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,738
Website

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

saturo5 wrote:

the last time when it didnt work the windoze entry was the last one in grub , how do i make it after 'arch linux'

Not sure if this will work (I can't test atm) but copy /etc/grub.d/40_custom to /etc/grub.d/11_windows then add the content of /boot/grub/custom.cfg to the end of that file, delete /boot/grub/custom.cfg then run `grub-mkconfig -o /boot/grub/grub.cfg`.


Para todos todo, para nosotros nada

Offline

#24 2024-12-30 20:10:45

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

i may try it but after installing a DE or smthng , cuz i have some wifi issues and its working to slow
currently i have a minimal arch install , but why does iwd not giving me network access , the ip doesnot show and gets (is the dhcp configured?) when i try (station wlan0 show)
other than tha the custom.cfg gave the same "/boot/EFI/win-11/bootmgfw.efi not founf" error
i will look online for fixes to the iwd thing and when i install cinnamon i will try what you suggested and will see the result and will also look for a way to do the windows entry

Offline

#25 2024-12-30 20:47:00

saturo5
Member
From: saudi arabia / egyptian
Registered: 2024-12-23
Posts: 41

Re: [SOLVED]systemd-boot is not showing in the boot menu at all

found a fix from here in here will try and see if it works and reaches wifi , and then i will try to try your fix and see if it works

Offline

Board footer

Powered by FluxBB