#[SOLVED] Make Arch grub the default windows bootmgr

93 messages · Page 1 of 1 (latest)

stark kernel
#

I'm trying to make my computer boot up on the arch grub where i have arch, win10 and ubuntu. Normally i just do the classic bcdedit command to make me boot on grub , but the arch grub efi is not on the default partition and I can't find how to specify the partition.

wise remnant
#

so your goal is that the system automatically boots to grub first?

stark kernel
#

yup

wise remnant
#

on many systems you can set a default boot order in uefi, have you tried that route

stark kernel
#

usually it's easy because the grubx64.efi is on the leftmost partition, but with arch the efi partition is the 6th

stark kernel
wise remnant
#

can't choose any?

#

can you elaborate

stark kernel
#

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

wise remnant
#

your bios interface doesn't give you a list of bootable partitions it finds?

stark kernel
wise remnant
#

well typically I'd solve this with that, just select the desired partition as the default boot entry

stark kernel
#

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

wise remnant
#

bcdedit is a windows tool that I'm not familiar with

#

I'm assuming it's the windows equivalent of efibootmgr

stark kernel
#

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

wise remnant
#

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

stark kernel
#

i have windows, ubuntu and arch entry on grub

#

on both ubuntu and arch grub

wise remnant
#

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

stark kernel
wise remnant
#

and you'd want to change it to select grub by default

stark kernel
#

this is my boot manager

wise remnant
#

okay that gave me more info

stark kernel
#

and the windows boot manager is set to boot on grub

wise remnant
#

why is that so?

#

I think it would be clearer to just make an entry for grub there

stark kernel
#

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)

wise remnant
#

okay so you have an uefi boot entry called windows boot manager which boots what, arch's grub?

stark kernel
#

ubuntu's

wise remnant
#

and you want to change that to boot to arch's grub

stark kernel
wise remnant
#

okay now I understand better

stark kernel
#

this is ubuntu's grub

#

but the arch entry does not work

#

it juste black screen indefinitely

wise remnant
#

ah

stark kernel
wise remnant
#

okay okay

stark kernel
#

sorry if it was hard to understand

wise remnant
#

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

stark kernel
#

i already tried it

wise remnant
#

hmm

stark kernel
#

i mount the arch partition, run os-prober and update grub config but still nothing

wise remnant
stark kernel
#

nope

wise remnant
#

are you able to boot to arch directly somehow

stark kernel
wise remnant
#

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

stark kernel
#

ubuntu then arch grub arch entry

wise remnant
#

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

stark kernel
#

can i update the grub.conf file directly?

wise remnant
#

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

wise remnant
#

the change would have to go elsewhere

stark kernel
#

thank you

#

i edited the config and it works

wise remnant
#

well now you know what the issue is but you have to make it persist

stark kernel
#

but where should write the changes ? because i put them in grub.cfg

wise remnant
#

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

stark kernel
#

yeah but if i don't regenerate it it won't chagnge right?

wise remnant
#

I'd check differences with the grub settings between the arch and ubuntu installs

#

grub.cfg isn't meant for holding persistent changes

stark kernel
#

and not related to this but i can't remember in which file i should put my keyboard layout

wise remnant
#

it's different based on what we're talking about

#

tty keyboard layout? xorg? wayland?

stark kernel
#

tty

#

isn't it vnconsole or something?

stark kernel
#

thx