After installation Windows 11 boots instead

I am using KDE Manjaro as I type this. I installed it from a pen drive, I allocated 100 GB of my 1TB SSD for the Linux install. When I boot it auto boots Windows 11 unless I press F3 to get to the Bios and repair screen, then I get the option to boot either Manjaro or Windows. Did the aystem not install a boot loader, and how would I fix this.
Thank you, Ed.

Go to /etc/default/grub. See if it has a line with GRUB_TIMEOUT_STYLE=menu and a line with GRUB_TIMEOUT=5.
If not backup the current grub file as grub.bak or grub.old or copy it elsewhere. then edit the original file to include those two lines.
Then run sudo update-grub. That should give you a 5 second grub menu to choose what gets loaded.

I’ve tried this several times now without fixing it. First my terminal Konsole will not let me run it as root? I could not edit it OR SAVE either. My TIMEOUT_STYLE WAS SET TO hidden so I opened the file in Kate editor and backed it up as grub.old and saved it in Documents. Then I edited the file in Kate to read menu instead of hidden and when I tried to save it a menu asking to put my password in to be root I entered it and saved the file. Then I run sudo update-grub. I checked after the save and sudo update_grub and it was still the original unedited file. If Konsole terminal would let me start it as root it would have to work. Thank you for your help, at least I know the problem. I am looking for a superuser terminal like I used to have.

Maybe you saved your changes to the backup file. This process should work as described. You can’t start Kate as root, but it will ask for your password to save a privileged file.

Hi @Edprocoat,

Perhaps this helps:

I don’t understand your konsole issue. Can you not type in su enter then type in the root password to get to a root prompt?
As a side note; if you are at all unsure of what you are doing, don’t go mucking around as root. Especially dealing with grub or any system required files. You can render your machine useless real fast.

I dont understand it either. No I cant become root not even using sudo,I cant even update this installation. When I go to updates it lists 900 updates but every time I try to install one or all of them it says “invalid or corrupt package”

Yeah I did save the original file as a backup like I typed in above, I guess you missed that part. No I did not save the file I changed as a backup. It just does not work on this setup. . I am going to download it all new. I bought this online from a vendor on Amazon on a pen drive and I feel it may have a virus or malware even though I virus scanned it before I tried to dual boot. BTW I have been using Linux since 1995 in different versions so its not like I am totally new at this.

Like I wrote above I am using Windows 11.

I can become root in Konsole, what I meant to write is that it still wont let me do anything as root. Even kate after trying to save the file I changed asked for password to save as priveledged user but still would not save the file. sorry for the wrong reply but this has me vexed.

I tried this again and this time I seen where my grub file has updated! I came up with this and i am going to reboot and see if it works this time.
[sudo] password for ed:
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings …
Found memtest86+ image: /boot/memtest86+/memtest.bin

No, it still boots straight into Windows 11 . I can only get here (manjaro) by holding F3 to get into bios. This is disheartening to say the least. I guess the system is corrupt. I seen in another thread about updating mirrors to stop message “invalid or corrupt package” that I receive when trying to install either 1 or the entire 900 updates my system needs, it did not go too well either. if interested read here - Invalid or corrupt updates
Would you have any idea the best way to totally remove this install without affecting my dual boot windows 11? I am afraid there is some kind of virus in the Manjaro install as nothing seems to work like it should.

no there is no virus …
did you disabled secure boot in bios
did you disabled fast boot in bios - you may not have this option
ahci needs to be enabled
did you disabled fast startup in windows

I disabled secure boot in bios, there really is no other way to even install without doing that. I set up UEFI boot also.The ahci is already enabled as it is in most modern computers, and no I have never ENABLED fast startup so there is no need for me to disable it. I also had to disable BitLocker to even get it to install. Please dont tell me that you are one of those few people that think just because Linux has a small share of, less than 3% of the worlds PC operating systems that there are no viruses in Linux? lol

Have you tried this bit? [root tip] [How To] Dual boot Manjaro and Windows

Uhh, thanks again for that tip. I am using Windows 11 as I posted here in response to the last person that offered me this. This is a tip for booting from Windows 10.

Aw, I missed that, sorry (long thread). Windows 11 is demanding and may require secure boot which manjaro doesn’t support yet out of box.

The beforementioned bcdedit /set works on Windows 11, too. However, before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on your computer.

I don’t see anyone suggesting the most obvious. Did you go into your BIOS, and set manjaro as the first boot option? If you can manually boot to Manjaro from BIOS, you can surely set it as first boot option.

No, is that needed? I set my Bios up with USB as first boot option to get the USB drive with Manjaro on it to boot. I will have to reboot and enter Bios and see if that is an option, I wonder if that will allow me to boot windows or if given the choice will it boot either?

I already had to disable Bit locker and secure boot as well so that was taken care of.