#[SOLVED] trouble with boot orders and efibootmgr
538 messages · Page 1 of 1 (latest)
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
How did you install grub again?
I will ping you for further development
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
One efi is for windows and another i made during installation of arch
This is the boot orders
And
This is what i see when i load into my hp laptop
This is the list of os’s in bios
0
Idk what esp is
It doesn’t
Afaik hp bios doesnt
I have to browse through efi files to load grub
EFI system partition
wdym?
a lot of systems won't read entries from a partition that doesn't have the ESP flag set
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
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
Is this a dual boot guide
What command do i run to show that
there is one, this isn't it, but right now the issue seems to be grub
just paste the commands you used
What command im sorry im confused
the grub-install and grub-mkconfig commands you used to install grub
just type them here?
why not?
Only have my phone rn
Ill have to manually boot linux then install discord first
No results found.
<command to print output> |& curl --data-binary @- https://paste.rs
Bootctl remove
that can also be used with the history command
that isn't either of the commands I asked for 😭
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)
Ok i can do rhat but is this better
Basically what i have done aside from different partition names of course
was that run when you were chrooted?
Yes
would be good to see the outcome of the grub-mkconfig
Okay i will boot it give me a moment
Its an hp laptop
that almost answered my question lol
Im not sure how to check
are you using /boot or /efi as your esp?
try the grub-install command again, but append --removable to it and then see if that works
/boot according to the lsblk in the screenie
i think earlier i saw a path like /efi/efi which suggests you were using /efi as your ESP mountpoint
this
I dont understand these kind of questioms it would be helpful if you told me to run a command to show u details lol
can you show blkid?
they're asking where you have mounted your grub bootloader to
removable can hurt things tbh, but it can help buggy uefis
Grub IS installed i just have to boot into it manually
what do you mean by this?
"boot into it manually"
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?
Yeah
Top one is windows bottom one is for linux
--removable may help but there is an underlying issue
Yeah
--removable puts the efi file in a path where the bootloader should search by default
some motherboards are just shit
There is an underlying issue im not able to figure out
but if your boot options aren't sticking, then there is a real issue
yea, it could be a uefi issue, when you reboot do the options you added get removed?
No they dont
hmmm but they don't appear in the bios at all?
On arch the efibootmgr stays unchanged
They dont appear in bios at all
0 trace of anything in bios
usually they will nuke them, did windows have an entry before?
im wondering if something inthis guide did something weird
is windows using grub too now?
Yea
wot
you should only need one grub install too
it can boot windows and linux i think
The guide mounts win efi partition to grub
Things are just not going how they normally should
are you asking if grub was installed to both the /boot partition above, and the windows bootmanager partition?
yes lol
i think it was, they said their windows install boots from a second grub install now?
idk i think it's worth considering why your uefi is not working with any boot entries now, that's kinda concernign
Windows or linux doesnt show or boot in bios but when i manually start grub i can start it from there
have you checked that windows boots properly?
Manually probably
i would double check, because it's weird if windows has a separate grub install
well it should detedct the os?
It mounted it
that guide seems strange
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
future reference, dualbooting guide:
https://wiki.archlinux.org/title/Dual_boot_with_Windows
it's just not bootable automatically, but still boots?
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
ask which ones you're confused about
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
that's why the paste command I gave you is so helpful for sharing command outputs
does the bios need updating out of interest?
I will try again later thank you so much for your patience
I will check for that too
Probably not
@cold timber sorry for ping
But i am updating bios
When using the easy uefi windows program it detects grub
did it add a proper entry for it?
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
@timber halo any more ideas?
easy UEFI?
A windows program
so windows booted without going through grub?
ok so that is fine, can you get back into your arch chroot?
Im happy but that’s still windows
And windows doesnt make me happy
How do i chroot
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
You’re speaking like the wiki rn lol
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
I’m not used enough to linux to fill out voids in advice
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
Ill boot into linux first
yeah you have to be on some liveusb or similar first, then you mount, then chroot in
but arch-chroot is a good shortcut
Do i boot in with my linux installation usb?
Im confused
what console?
you probably need to use some install usb to boot into first to get a console
then you can chroot from there
Ok
Thats what i was asking thank you
I call it arch installation menu
First one right
Nice
I’m in
If just
Arch chroot
When i type arch chroot it says no directory specified
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
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
What’s endeavour
ESP is your boot partition more or less
"efi system parttion
typically fat32 formatted and mounted at /boot or efi
Okay thank you now i know what that standa for
it depends tho, there is not really one place you have to put it
Ill look up the mount command
/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
It's basically arch but ez mode with some minimal configs for convenience, like something that a sane arch user would use
What if i told you i dont know how that would help me
Im just trying to figure out what to type here
I enjoy arch
well you have to kinda know what you're doing to know what to mount, there isn't one way to do this
Endeavour is arch.. just made easier to install
Sudo mount ....
Arch is installed
nop check blkid
or run fdisk against your base storage devices
like /dev/nvme0n1 maybe?
you can see what's there
and then youu want the EFI system partition mounted under /boot or /efi under the root of your install
mount /dev/sdx /mnt
mount /dev/sdy /mnt/boot
Is the one on the wiki iirc
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
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
you need to specify a target when you arch-chroot
so first you need to mount the root/whatever to a dir
then arch-chroot into ti
so like arch-chroot /mnt
I dont know how to mount
.aw installation_guide
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
you did?
when?
i didn't see that in the pic you sent
During installation
you rebooted tho
Ill boot into linux and run lsblk
mounts aren't persistent
Never been so confused tbh
Ill shut down from usb and show u lbsblk from linux konsole
from what linux?
Archlinux
from the install?/
so grub is working now?
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
so that has the correct mounts, can you show blkid and efibootmgr -u
But only by browsing through efi files
And then look for the grub64.efg or smthng like that
yes you should be able to add a boot entry
There is a boot entry
yes you should be able to add that to efibootmgr
Apparently
it's not using it
it would show it there, i think? generally it lists all boot entries
efibootmgr has the boot entry
like it should show windows too
can you show what that looks like now? does it show a windows entry?
It does now thats an old pic
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
run with -u
Ok
it shows the unicode cmdline not hex data
so you can see what's actualy set
and file /boot/EFI/GRUB/grubx64.efi
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
this
you can run that
since your ESP is at /boot
I think I saw you had /EFI/EFI before which is not correct
Okay lemme remove previous one then
Im sorry but i forgot the command for deleting boot orders
-B -b bootnum
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
yeah looks good
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
what?
i thought you had an entry for windows?
I do
ok so you do have entries?
As in no grub entries
no entry for grub on the efi boot menu?
no grrub entries sounds like grub starts but doesn't have any boot options
did you run that "file" command?
to check the path
Yeah
and then let it fill in the path
Grub is
so your pwd is boot
Hold up
and then you just let it fill in the rest of the path with autocomlete
that is what i do
Ok
just the very first /boot
because that is just path info in linux
it reads from the root of the partition
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
hmmmm
I did without grubx64
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
Ok ill restart
I will send a pic of efibootmgr if it does not recognize
Pfffff
I dont see it
Damn it
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
I’ll run this command in console then
Ok it said no errors reported
yeah from there you should be able to just reboot
if that doesn't work idk what will
Ok so
What changed is
There is a boot file in efi
Inside of it there is BOOTX64.EFI
Okay okay
Ill remove the other one
YES
@timber halo i’m over the moon thank you for your patience
zen_desu received a thank you cookie!
Hm?
only one bootloader can use that path per ESP
so things like to install over that to make things "more compatible"
sure, but i mean if you were to try to install some other os, it may try to replace that file
it's just worth knowing that is a somewhat common path and things may remove it
yeah just for the future
And windows
the "removable path" is literally meant for removable storage
Windows entry still in there which is good
yeah because you have 2 ESPs
Ok well atleast that works ill keep in mind
if you only had one this could really be causing problems
Wow this has been a journey
yeah the linux instlal process can be a real learning experience
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?
Thanks to @cold timber aswell
You're thanking too much ó_ò
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"
Ill confirm this by trying to boot windows from grub and boot arch again
any changes and it won't even read it
well i mean you have 2 ESP partitions on one disk
historically you have a single boot partition
technically you can have more with UEFI but i can see implementations being lazy lol
One esp that comes w windows
yeah
And a efi part that is 1gb
if you're careful you can combine them tbh
Which might be overkill
i mean technically you should be able to have on ESP
unless your UEFI is buggy lol
in which case all bets are off
Windows boots
Hp is known for really weird issues
And they like to remove bios options
yeah i have some lenovo stuff that is similar
tbh pretty much every UEFI will have quirks
How are things now?
i think it works, the uefi plainly wasn't accepting more entries
but the original path was wrong
So you’re able to boot straight into grub now?
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
Yes thats why i said thank you
vegancookies received a thank you cookie!
... solved
#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
more or less
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 🙂
Yeah it doesnt work on movile
that's...what I said
[SOLVED] trouble with boot orders and efibootmgr