#[SOLVED] trouble with boot orders and efibootmgr

538 messages · Page 1 of 1 (latest)

unreal spear
#

[ryanbfb@archlinux ~]$ efibootmgr
Timeout: 0 seconds
BootOrder: 9999
Boot9999* USB Drive (UEFI) PciRoot(0x0)/Pci(0x1d,0x0)/USB(16,0)0000424f

#

I have tried making a grub boot order

#

like this

#

[ryanbfb@archlinux ~]$ efibootmgr
Timeout: 0 seconds
BootOrder: 0000,9999
Boot0000 GRUB HD(1,GPT,a3f0f6c0-3fb3-4b1f-949e-06bf501014b7,0x800,0x32000)/\EFI\EFI\GRUB\grubx64.efi
Boot9999
USB Drive (UEFI) PciRoot(0x0)/Pci(0x1d,0x0)/USB(16,0)0000424f
*

#

It still does not work

#

when i boot into hp laptop it says there is no os

#

but i can boot to windows 11 and arch by browsing through the efi files

#

i am dualbooting btw

odd herald
#

How did you install grub again?

unreal spear
#

Okay so

#

I am reinstalling arch

unreal spear
unreal spear
#

@odd herald hello

#

I am having the same issue

timber halo
#

you added an extra EFI?

#

you don't do it from your sys root

#

the path is from the ESP root

#

i think grub-install adds an entry too, if you did it in efi mode

unreal spear
#

This is the boot orders

#

This is what i see when i load into my hp laptop

#

This is the list of os’s in bios

#

0

timber halo
#

does it let you add an entry from the bios?

#

are those partitions marked as ESP?

unreal spear
#

Idk what esp is

unreal spear
#

Afaik hp bios doesnt

#

I have to browse through efi files to load grub

timber halo
timber halo
#

a lot of systems won't read entries from a partition that doesn't have the ESP flag set

unreal spear
#

I will show you the guide i used

unreal spear
#

I did that

#

I think my issue is a lot more specific

#

I can install again

#

Have a hard time using the wiki

#

Im tilted ill take a break

#

Make sure to ping me if anything

cold timber
#

can you share your grub-install command in full, as well as your grub-mkconfig command in full

#

we don't support video guides in this server, there is one offical guide, the wiki

#

.aw installation_guide

tacit walrusBOT
unreal spear
#

Is this a dual boot guide

unreal spear
cold timber
cold timber
unreal spear
#

What command im sorry im confused

cold timber
#

the grub-install and grub-mkconfig commands you used to install grub

unreal spear
#

I used the ones in the guide

#

That’s about it

cold timber
#

just type them here?

unreal spear
#

Ok ill do that

#

Well i cant rlly actually

cold timber
unreal spear
#

Only have my phone rn

cold timber
#

they're not that long

#

you're talking like 1 min of typing

unreal spear
#

Ill have to manually boot linux then install discord first

cold timber
#

why?

#

why can't you just type them on your phone

#

.aw rs

tacit walrusBOT
cold timber
#

whoops

#

.s rs

tacit walrusBOT
unreal spear
#

Bootctl remove

cold timber
#

that can also be used with the history command

cold timber
unreal spear
#

Mkdir /mnt /win

#

Im just listing

cold timber
#

history |& curl --data-binary @- https://paste.rs
Run that, and send me the link

#

(you can check nothing bad like a password is in the link first if you want)

unreal spear
#

Ok i can do rhat but is this better

#

Basically what i have done aside from different partition names of course

cold timber
unreal spear
#

Yes

cold timber
unreal spear
#

Okay i will boot it give me a moment

cold timber
#

what brand is your motherboard?

#

||in before MSI||

unreal spear
#

Its an hp laptop

cold timber
unreal spear
#

Im not sure how to check

timber halo
#

are you using /boot or /efi as your esp?

cold timber
#

try the grub-install command again, but append --removable to it and then see if that works

cold timber
timber halo
#

i think earlier i saw a path like /efi/efi which suggests you were using /efi as your ESP mountpoint

unreal spear
timber halo
#

can you show blkid?

cold timber
timber halo
unreal spear
#

Grub IS installed i just have to boot into it manually

timber halo
#

"boot into it manually"

unreal spear
#

Okay here

#

I have to browse through these files

timber halo
#

ok and what partition is it on?

#

are you sure that is waht was mounted to /boot?

cold timber
#

what they mean is that they have to go into the boot order manually each time in their boot up screen, but it won't add to the bootorder for automatic booting in their uefi menu?

unreal spear
#

Top one is windows bottom one is for linux

timber halo
#

so that means the entires are just wrong

#

like the UEFI boot entry

unreal spear
timber halo
#

--removable may help but there is an underlying issue

unreal spear
#

Yeah

timber halo
#

--removable puts the efi file in a path where the bootloader should search by default

cold timber
unreal spear
#

There is an underlying issue im not able to figure out

timber halo
#

but if your boot options aren't sticking, then there is a real issue

unreal spear
#

Some motherboards are just shit

#

And hp stands for horrible problems

timber halo
#

yea, it could be a uefi issue, when you reboot do the options you added get removed?

unreal spear
#

No they dont

timber halo
#

hmmm but they don't appear in the bios at all?

unreal spear
#

On arch the efibootmgr stays unchanged

#

They dont appear in bios at all

#

0 trace of anything in bios

timber halo
#

usually they will nuke them, did windows have an entry before?

#

im wondering if something inthis guide did something weird

unreal spear
#

It did

#

Before

#

This is my second try

timber halo
#

is windows using grub too now?

unreal spear
#

Yea

timber halo
#

wot

#

you should only need one grub install too

#

it can boot windows and linux i think

unreal spear
#

The guide mounts win efi partition to grub

timber halo
#

you can keep the windows partition as is

#

and grub chainloads

unreal spear
#

Things are just not going how they normally should

cold timber
timber halo
#

yes lol

unreal spear
#

Im booted into linux

#

What commands do i do

#

For details

timber halo
#

idk i think it's worth considering why your uefi is not working with any boot entries now, that's kinda concernign

unreal spear
#

Windows or linux doesnt show or boot in bios but when i manually start grub i can start it from there

timber halo
#

have you checked that windows boots properly?

unreal spear
#

Manually probably

timber halo
#

i would double check, because it's weird if windows has a separate grub install

unreal spear
#

If i just restart it will obv just detect no OS

#

The guide did that

timber halo
#

well it should detedct the os?

unreal spear
#

It mounted it

timber halo
#

that guide seems strange

unreal spear
#

Ive followed a good one alledgedly before that was all manual and he had an hp and i did everything as he does

#

Restart booted into windows for a while

#

Until i messed around w efimanager and now nothing boots automatically

#

Tbh i dont care too much abt windows not being bootable automatically

#

I just wish grub would show on launch

cold timber
timber halo
unreal spear
#

Yeah

#

Wiki says stuff like mount this to that

#

But i dont know all the commands

#

Thats why wiki has been very confusing to me

cold timber
unreal spear
#

I am defeated ill try reinstalling later

#

Im also ruining my drive from formattinf paritions so many times

#

There’s only so much it can write

#

I hate hp

cold timber
#

does the bios need updating out of interest?

unreal spear
#

I will try again later thank you so much for your patience

#

I will check for that too

#

Probably not

unreal spear
#

@cold timber sorry for ping

#

But i am updating bios

#

When using the easy uefi windows program it detects grub

timber halo
#

did it add a proper entry for it?

unreal spear
#

Yes

#

It did

#

Windows works

#

Grub nowhere to be seen

#

easy UEFI recognizes it weirdly enough

#

Booting issues aside arch is rlly cool

#

And kde plasma is rlly nice

cold timber
#

@timber halo any more ideas?

timber halo
unreal spear
#

A windows program

timber halo
#

so windows booted without going through grub?

unreal spear
#

Yes

#

Automatically

timber halo
#

ok so that is fine, can you get back into your arch chroot?

unreal spear
#

Im happy but that’s still windows

#

And windows doesnt make me happy

#

How do i chroot

timber halo
#

and show the output of efibootmgr -u; blkid

#

you have to mount the arch root fs to some dir and then arch-chroot /mount/point

unreal spear
#

You’re speaking like the wiki rn lol

timber halo
#

tbh not sure what arch recommends but you can maybe do something like mkdir /mnt/arch; mount /dev/sdX /mnt/arch; arch-chroot /mnt/arch

unreal spear
#

Uhhh

#

So do i go into konsole

#

And do exactly those commands

timber halo
#

probably not exactly those

#

i would slow down and consider what you need to do

unreal spear
#

I’m not used enough to linux to fill out voids in advice

timber halo
#

you "installed" arch as in the userspace stuff to some storag volume

#

that is typically done in a chroot

#

that explains the whole process but it depends on what partition your rootfs is installed on

#

but arch-chroot automates all of this:

#

in order to make the rootfs usable, you have to bind mount some special filesystems from the host

#

and then you chroot so that acts as your root, it almost simulates you booting into your install

unreal spear
#

Ill boot into linux first

timber halo
#

yeah you have to be on some liveusb or similar first, then you mount, then chroot in

#

but arch-chroot is a good shortcut

unreal spear
#

Oh so you want me to use the installation usb?

#

Or chroot from console

unreal spear
#

Im confused

timber halo
#

you probably need to use some install usb to boot into first to get a console

#

then you can chroot from there

unreal spear
#

Ok

#

Thats what i was asking thank you

#

I call it arch installation menu

#

First one right

cold timber
#

yes

#

that's the arch iso

unreal spear
#

Nice

#

I’m in

#

If just

#

Arch chroot

#

When i type arch chroot it says no directory specified

timber halo
#

you have to specify a target

#

the first step is mounting the rootfs

#

and probably the /boot or /efi, whereever your ESP is mounted at

unreal spear
#

I dont know how to mount

#

Esp as in the efi partition

#

Im dumb

odd herald
#

Quick question, wouldn't it be better if we just let him use Endeavour or something like that so that he can familiarize himself with whatever he needs to learn? Because at this point

unreal spear
#

What’s endeavour

timber halo
#

"efi system parttion

#

typically fat32 formatted and mounted at /boot or efi

unreal spear
#

Okay thank you now i know what that standa for

timber halo
#

it depends tho, there is not really one place you have to put it

unreal spear
#

Ill look up the mount command

timber halo
#

/efi is kinda the new way, /boot is the old way

#

/boot is technically for "extended boot" stuff, which is extra files the bootloader uses

#

while the bootloader itself lives on the ESP

odd herald
unreal spear
unreal spear
#

I enjoy arch

timber halo
#

well you have to kinda know what you're doing to know what to mount, there isn't one way to do this

unreal spear
#

/mount /dev/esp /mnt?

#

Idk

odd herald
odd herald
unreal spear
#

Arch is installed

unreal spear
#

Not in konsole

timber halo
#

or run fdisk against your base storage devices

#

like /dev/nvme0n1 maybe?

#

you can see what's there

unreal spear
#

Ok give me a min

#

I know my partitions are right

timber halo
#

and then youu want the EFI system partition mounted under /boot or /efi under the root of your install

odd herald
#

mount /dev/sdx /mnt

mount /dev/sdy /mnt/boot

Is the one on the wiki iirc

timber halo
#

so if you have your arch root at /mnt/arch then you'd mount that first and the your ESP under /mnt/arch/boot or whatever

#

yeah i guess you can just do it at /mnt

#

it just has to be consistent, like you mount the rootfs first, and then the ESP under that

unreal spear
#

Is all of this fine

#

I’ll show lsblk too

#

Or cfdisk actually

#

The live usb doesnt detect anything

#

Usb only detects itself

#

This is weird

#

Im sure everything is mounted correctly

#

@timber halo any ideas

#

Feel free to give up im confused in what you’re even asking me

timber halo
#

so first you need to mount the root/whatever to a dir

#

then arch-chroot into ti

#

so like arch-chroot /mnt

unreal spear
#

I dont know how to mount

timber halo
#

you run mount /dev/sourcedev /mountpoint

#

replacing both args

cold timber
tacit walrusBOT
unreal spear
#

Okay but why would i mount

#

When i alrdy mounted things correctly

#

Sorry for sounding stupid but i dont know the point of all this

timber halo
#

when?

#

i didn't see that in the pic you sent

unreal spear
#

During installation

timber halo
#

you rebooted tho

unreal spear
#

Ill boot into linux and run lsblk

timber halo
#

mounts aren't persistent

unreal spear
#

Never been so confused tbh

#

Ill shut down from usb and show u lbsblk from linux konsole

timber halo
#

from what linux?

unreal spear
#

Archlinux

timber halo
#

from the install?/

unreal spear
timber halo
#

so grub is working now?

unreal spear
#

Oh my god

#

So you didnt know my issue all this time

timber halo
#

yes so that has it mounted, if you're using the live usb then you have to mount it yourself

#

i know your issue but it generally makes sense to fix stuff like this in some recovery environemtn

#

isolated from whatever setup you did before

unreal spear
#

Just to be clear

#

I can boot into grub

timber halo
#

so that has the correct mounts, can you show blkid and efibootmgr -u

unreal spear
#

But only by browsing through efi files

#

And then look for the grub64.efg or smthng like that

timber halo
#

yes you should be able to add a boot entry

unreal spear
#

There is a boot entry

timber halo
#

yes you should be able to add that to efibootmgr

unreal spear
#

Apparently

timber halo
#

it's not using it

#

it would show it there, i think? generally it lists all boot entries

unreal spear
#

efibootmgr has the boot entry

timber halo
#

like it should show windows too

#

can you show what that looks like now? does it show a windows entry?

unreal spear
#

NEVER MIND

#

It deleted it

#

I think bios update deleted the entry

unreal spear
#

Okay please

#

Last stretch

#

If this works im good

#

I need to add a boot entry using the efi boot mgr

#

I will type this

#

And now efibootmgr looks like this

timber halo
#

run with -u

unreal spear
#

Lol

#

Whats that

#

Do i add that next to unicode

timber halo
#

no

#

you just run efibootmgr -u

unreal spear
#

Ok

timber halo
#

it shows the unicode cmdline not hex data

#

so you can see what's actualy set

#

and file /boot/EFI/GRUB/grubx64.efi

unreal spear
#

Does this look good to you

timber halo
#

that looks fine, as long as that file is really there

#

and beyond that grub must be configured

#

but it sems to be if you can boot it manually

unreal spear
#

Ok lets see now ig?

#

Here goes nothing

#

Lemme boot into start menu

timber halo
#

you can run that

#

since your ESP is at /boot

#

I think I saw you had /EFI/EFI before which is not correct

unreal spear
#

Okay lemme remove previous one then

#

Im sorry but i forgot the command for deleting boot orders

timber halo
#

-B -b bootnum

unreal spear
#

Sudo efibootmgr -B -b bootnum 0000

#

Uhm

#

Il look online

timber halo
#

i think like that

#

just run man efibootmgr

#

or efibootmgr --help

unreal spear
#

Ok did it

#

Bootnum is just a place holder

#

Ok ill run it again

#

I did sudo efibootmgr —create —disk /dev/nvme0n1 part 4 —loader ‘\boot\EFI\GRUB\grubx64.efi

timber halo
#

yeah looks good

unreal spear
#

Hopefully that works

#

Ill run efibootmgr -u

#

File directory is as what you said

#

No reason for this not to work then

#

I’ll restart

#

Same thing as always

#

No entries

#

Must have done smthng wrong then

timber halo
#

i thought you had an entry for windows?

unreal spear
#

I do

timber halo
#

ok so you do have entries?

unreal spear
#

As in no grub entries

timber halo
#

no entry for grub on the efi boot menu?

unreal spear
#

Nope

#

Must have specified something wrong then

timber halo
#

no grrub entries sounds like grub starts but doesn't have any boot options

#

did you run that "file" command?

#

to check the path

unreal spear
#

Ok

#

No such file or directory

timber halo
#

yeah so the path you have is wrong

#

i'd go to the /boot mount

unreal spear
#

Yeah

timber halo
#

and then let it fill in the path

unreal spear
#

Grub is

timber halo
#

so your pwd is boot

unreal spear
#

Hold up

timber halo
#

and then you just let it fill in the rest of the path with autocomlete

#

that is what i do

unreal spear
#

Grub is in

#

Boot EFI arch

timber halo
#

yeah you have to use that path

#

remove the '/boot' when making the efibootmgr entry

unreal spear
#

Ok

timber halo
#

just the very first /boot

#

because that is just path info in linux

#

it reads from the root of the partition

unreal spear
#

I’ll do \EFI\arch\grubx64.efi

#

And then pray

timber halo
#

run file to double check the path

#

also i use / in the arg

#

it converts it

#

just sucks to type backslashes and worry about escapign

unreal spear
#

Nice to know it does that

#

It says directory

#

So nice ig

timber halo
#

hmmmm

unreal spear
#

I did without grubx64

timber halo
#

/boot/EFI/arch/grubx64.efi is a dir?

#

ah

#

check the file

unreal spear
#

Please ignore the failed tries

#

It is a efi

#

Soo should work

timber halo
#

yeah looks good to me

#

as long as you don't have the /boot part in the entry path and the rest is the same

unreal spear
#

Ok ill restart

#

I will send a pic of efibootmgr if it does not recognize

#

Pfffff

#

I dont see it

#

Damn it

timber halo
#

yeah if that is the case you may have to do a removable grub install

#

so you do like grub-install --removable --efi-directory=/boot

#

and then at the very least you should eb able to target the storage device/partition

#

if not, then you're basically fucked sorry lol

#

some UEFIs just suck

unreal spear
#

Ok it said no errors reported

timber halo
#

yeah from there you should be able to just reboot

#

if that doesn't work idk what will

unreal spear
#

Ok so

#

What changed is

#

There is a boot file in efi

#

Inside of it there is BOOTX64.EFI

timber halo
#

bootx64.efi should be grub now

#

that is the "removable" path

unreal spear
#

Okay okay

#

Ill remove the other one

#

YES

#

@timber halo i’m over the moon thank you for your patience

toxic oakBOT
#

zen_desu received a thank you cookie!

timber halo
#

yw

#

also it's worth knowing that using the "removable" path can "eat" bootloaders

unreal spear
#

Hm?

timber halo
#

only one bootloader can use that path per ESP

#

so things like to install over that to make things "more compatible"

unreal spear
#

Boot order still there

#

Let’s restary again

timber halo
#

sure, but i mean if you were to try to install some other os, it may try to replace that file

unreal spear
#

Yes

#

I only need arch

timber halo
#

it's just worth knowing that is a somewhat common path and things may remove it

#

yeah just for the future

unreal spear
#

And windows

timber halo
#

the "removable path" is literally meant for removable storage

unreal spear
#

Windows entry still in there which is good

timber halo
#

yeah because you have 2 ESPs

unreal spear
#

Ok well atleast that works ill keep in mind

timber halo
#

if you only had one this could really be causing problems

unreal spear
#

Wow this has been a journey

timber halo
#

yeah the linux instlal process can be a real learning experience

unreal spear
#

I have 2 efi partition yes

#

Phew

timber halo
#

tbh i would not be too suprised if that somehow broke things? like your UEFI gets confused that there are too

#

maybe it ignored entries on the second one it reads?

unreal spear
#

Thanks to @cold timber aswell

toxic oakBOT
#

You're thanking too much ó_ò

timber halo
#

my asrock board will not boot from "BOOTX64.EFI" fat32 is supposed to be case insenstive but my board requires the case to be "BOOTx64.efi"

unreal spear
timber halo
#

any changes and it won't even read it

timber halo
#

historically you have a single boot partition

#

technically you can have more with UEFI but i can see implementations being lazy lol

unreal spear
#

One esp that comes w windows

timber halo
#

yeah

unreal spear
#

And a efi part that is 1gb

timber halo
#

if you're careful you can combine them tbh

unreal spear
#

Which might be overkill

timber halo
#

i mean technically you should be able to have on ESP

#

unless your UEFI is buggy lol

#

in which case all bets are off

unreal spear
#

Windows boots

#

Hp is known for really weird issues

#

And they like to remove bios options

timber halo
#

yeah i have some lenovo stuff that is similar

#

tbh pretty much every UEFI will have quirks

cold timber
#

How are things now?

timber halo
#

i think it works, the uefi plainly wasn't accepting more entries

#

but the original path was wrong

unreal spear
#

Makes sense

#

Both win and linux use bootx64

#

Can i close this thread

cold timber
#

So you’re able to boot straight into grub now?

timber halo
# unreal spear

windows can use the bootmgfw path here but many linux distros will put stuff in the bootx64 path by default

#

some play nice and will look, and if you're doing it yourself, it's easy to nuke something that's already there

unreal spear
toxic oakBOT
#

vegancookies received a thank you cookie!

cold timber
tacit walrusBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

cold timber
#

that's how to make the thread as solved

#

was the answer --removable in the end?

timber halo
unreal spear
#

… solved

#

Oops

#

I get it

cold timber
# unreal spear … solved

as in, you follow the instructions from the bot, not just, repeat the command, also ... won't work on mobile, you'll need to do .n or .note because ... is a different set of characters on mobile vs on desktop 🙂

unreal spear
#

Yeah it doesnt work on movile

cold timber
#

that's...what I said

unreal spear
#

[SOLVED] trouble with boot orders and efibootmgr