#[SOLVED] Make Arch grub the default windows bootmgr
93 messages · Page 1 of 1 (latest)
so your goal is that the system automatically boots to grub first?
yup
on many systems you can set a default boot order in uefi, have you tried that route
usually it's easy because the grubx64.efi is on the leftmost partition, but with arch the efi partition is the 6th
yup but rn i can't choose any because i kinda messed with windows bootmgr
i can just choose a specific efi file to boot from but i have to manually search it
my bios lets me choose from "classic" boot manager but rn it can't find any so i choose a file manually
your bios interface doesn't give you a list of bootable partitions it finds?
nope but that's not really the issue
well typically I'd solve this with that, just select the desired partition as the default boot entry
usually i do this command bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi for ubuntu so i tried to do it for arch by replacing 'ubuntu' by 'arch' but because it's not on the same partition it doesn't work
bcdedit is a windows tool that I'm not familiar with
I'm assuming it's the windows equivalent of efibootmgr
yup
because rn i have two grubs, ubuntu's one where i have ubuntu and windows and where i tried to add arch but i doesn't work, and arch's one where i have all three
so maybe if i fix ubuntu's grub to make arch works it will be better
grub-install on an UEFI booted system with efibootmgr installed tries to automatically create a boot entry using efibootmgr
so if you did that, you should have that grub boot entry
I'm talking about the entries on your uefi/bios interface
when your computer first boots, it loads that, which loads one of those bootloaders (such as grub)
if I understand correctly, the issue is that by default your uefi/bios selects the windows bootloader
and you'd want to change it to select grub by default
this is my boot manager
okay that gave me more info
and the windows boot manager is set to boot on grub
because with my computer it was the easiest way to do so at the time
and it was a pretty normal way to do so
(for ubuntu)
okay so you have an uefi boot entry called windows boot manager which boots what, arch's grub?
ubuntu's
and you want to change that to boot to arch's grub
okay now I understand better
this is ubuntu's grub
but the arch entry does not work
it juste black screen indefinitely
ah
or make arch entry on ubuntus grub works
okay okay
sorry if it was hard to understand
I wasn't really familiar with this kind of a setup
but now I get it
I'd boot to ubuntu and try to reinstall ubuntu's grub
i already tried it
hmm
i mount the arch partition, run os-prober and update grub config but still nothing
it doesn't say anything?
nope
are you able to boot to arch directly somehow
yes, with arch grub
so the issue is that the boot process stops with a black screen only on one of the grub installs
I don't exactly know where to go from there
maybe there's a config difference?
idk what else could be different with those
in grub you can press a button to show the grub config for that entry
I'd do that for both grubs on the arch entry
see if there's something different
ubuntu grub's arch entry is missing the initramfs, I'm pretty sure that has to be explicitly defined
I'd also try with gfcxpayload=keep on
grub lets you manually edit it once there
but those aren't saved
can i update the grub.conf file directly?
first I'd try and see if it boots just with those changes
you can do them there and copy them from the arch grub's arch config
that file is autogenerated by grub-mkconfig (ubuntu also has update-grub as a wrapper to that I think) and is not meant to be edited directly
the change would have to go elsewhere
well now you know what the issue is but you have to make it persist
but where should write the changes ? because i put them in grub.cfg
yeah that's not a good idea since those will be gone the next time you regenerate grub.cfg on ubuntu
off the top of my head I'm not exactly sure what to do
yeah but if i don't regenerate it it won't chagnge right?
I'm pretty sure it autogenerates on a hook when you run system updates
I'd check differences with the grub settings between the arch and ubuntu installs
grub.cfg isn't meant for holding persistent changes
and not related to this but i can't remember in which file i should put my keyboard layout
it's different based on what we're talking about
tty keyboard layout? xorg? wayland?
thx