#[SOLVED] Can't get arch to show up in BIOS after install on new HP Omnibook Ultra Ryzen AI 9 HX 375

255 messages · Page 1 of 1 (latest)

solemn sentinel
#

I've been trying to install arch all afternoon. Yes secure boot is off, and I've installed the latest ISO. I am using the script (dont come at me) and have installed it a couple times to no avail. It just wont show up as an option to boot into on the boot selection

stone crag
#

what happens when you boot?

void knot
#

Grub

#

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

vapid zephyr
#

--efi-directory is dependent on where esp is mounted

#

also they said nothing about having grub as their bootloader

#

@solemn sentinel context please

mountpoints, bootloader, which uefi (msi?), etc

#

are you actually uefi? or bios

#

verify if unsure

void knot
void knot
#

q

glacial sinew
#

I had a similar problem recently when setting up a dual boot, I was using grub and the windows option wouldn't show up. I used os-prober and it fixed things for me

vapid zephyr
#

that is unrelated to this issue

solemn sentinel
#

Sorry for getting back so late

vapid zephyr
#

read the links

#

do you mean it doesnt show in uefi?

solemn sentinel
vapid zephyr
#

run this pls

#

in chroot

solemn sentinel
#

Just says that no chroot directory was specified

#

Just trying to get into it

vapid zephyr
#

?

#

you need to mount your partitions first

solemn sentinel
#

I did

vapid zephyr
#

and then arch-chroot mountpointhere

solemn sentinel
#

Wait im doing this with the Arch install script

#

And I've finished running said script

#

I tried doing arch-chroot /boot since thats where I had it

vapid zephyr
#

no

solemn sentinel
#

Wait shit

#

Hold up

vapid zephyr
#

show me lsblk -f

#

output

solemn sentinel
#

I did arch-chroot /dev/nvme0n1p5

vapid zephyr
#

follow my instructions

vapid zephyr
solemn sentinel
vapid zephyr
#

no

#

that is not what i asked for

#

lsblk -f

#

this command

solemn sentinel
vapid zephyr
#

arch-chroot /mnt

#

run this command

solemn sentinel
#

👍

#

I ran bootctl install

vapid zephyr
#

dont exit yet

#

pacman -S efibootmgr

#

efibootmgr

#

execute these 2 commands

#

and send a picture

solemn sentinel
#

Wait could I just use rEFInd for this

vapid zephyr
#

efibootstub

solemn sentinel
vapid zephyr
#

bootctl install

#

and then efibootmgr again

solemn sentinel
#

I already did bootctl install

solemn sentinel
#

It didn't work

vapid zephyr
#

i need to see

solemn sentinel
vapid zephyr
#

@solemn sentinel instead of a bootloader you can boot directly from uefi

solemn sentinel
#

That's what I tried but it literally doesn't show

vapid zephyr
#

no

#

i am talking about something else

#

read this

solemn sentinel
#

It only gives me the option between windows boot manager and the usb

vapid zephyr
#

uefi was made to remove the need for an intermediary (bootloader)

solemn sentinel
#

Ok

vapid zephyr
solemn sentinel
#

Alr i think I get it

#

But will I be able to go between windows and arch from this

#

Cause im dual booting

#

Or would be dual booting

vapid zephyr
#

why not

#

change boot order from user space

solemn sentinel
#

Oh id literally have to go to uefi every time

vapid zephyr
#

and no

#

only when you want to come back to linux

#

for linux you can change the boot order with efibootmgr

solemn sentinel
#

Just saw this

#

Specifically the second bullet

vapid zephyr
#

@solemn sentinel ignore that

#

it only matters if your firmware implementation is shit

solemn sentinel
#

My device is a Dell laptop though. Still doesn't matter?

vapid zephyr
#

you'll be fine

#

if it werks it werks

solemn sentinel
#

And would it be difficult to just use a unified kernel image

vapid zephyr
solemn sentinel
#

Again never tried I've never had this much of a hassle installing arch

vapid zephyr
#

@solemn sentinel to use uki, uncomment the uki options, and comment the image options

solemn sentinel
#

Ok wait im gonna try this. Ill be back

vapid zephyr
#

u dont need to do that

#

why are yout rying?

solemn sentinel
#

Alright I'll try to do this thing first

vapid zephyr
#

try efibootstub first

solemn sentinel
#

👍

vapid zephyr
#

efibootmgr --create --disk /dev/nvme0n1 --part 1 --label "Arch Linux" --loader /vmlinuz-linux --unicode "root=UUID=$(lsblk -dno UUID /dev/nvme0n1p2) rw initrd=\initramfs-linux.img"

it would look like this, except change the partitions

#

p2 is root, --part 1 is the partition number for the esp partition

#

and then send a picture of the output pls

solemn sentinel
#

This command at the bottom correct?

vapid zephyr
#

no

#

that is wrong

solemn sentinel
#

The only thing I was confused on if I should've replaced the y with what I had or just the 6

vapid zephyr
#

that is wrong

solemn sentinel
#

Ok

vapid zephyr
#

ill do it for you and give u the correct command

#

for now delete what u have typed

solemn sentinel
#

Got it

vapid zephyr
#

efibootmgr --create --disk /dev/nvme0n1 --part 6 --label "Arch Linux" --loader /vmlinuz-linux --unicode "cryptdevice=UUID=$(lsblk -dno UUID /dev/nvme0n1p7):root root=/dev/mapper/root rw initrd=\initramfs-linux.img"

@solemn sentinel

#

needs to be typed exactly as is

#

and then do not press enter, show me the command you ahve typed in the end so i can verify

solemn sentinel
#

Alr got it

vapid zephyr
#

brb

solemn sentinel
vapid zephyr
#

press enter

#

after doing that i want to check ur hooks

#

grep -i hooks /etc/mkinitcpio.conf

solemn sentinel
vapid zephyr
#

can you not post a rotated picture

#

@solemn sentinel unplug usb and reboot

#

you're good now

solemn sentinel
#

Idk why it uploaded like that sorry

#

It showed up in bios but just boots me to windows

#

It has priority and is the first one

vapid zephyr
#

what uefi?

#

msi?

solemn sentinel
#

Ill show a picture

#

When i save and try to boot it just goes to windows

#

And the USB is unplugged it just shows there

vapid zephyr
#

@solemn sentinel we are going to do uki like wiki suggests

#

go into /etc/mkinitcpio.d/linux.preset

#

comment everything with image in it by adding # at the beginning, additionally uncomment anything with "uki" in it by removing the # at the beginning, change the /efi to /boot NOT THE /EFI

only the /efi

solemn sentinel
#

Ok might take me a little bit

#

Ill brb

vapid zephyr
#

make the file:

mkdir -p /etc/cmdline.d
touch /etc/cmdline.d/root.conf

fill the contents:

echo "cryptdevice=UUID=$(lsblk -dno UUID /dev/nvme0n1p7):root root=/dev/mapper/root rw" > /etc/cmdline.d/root.conf

make the directory:

mkdir -p /boot/EFI/Linux

remove the old entry:

efibootmgr -b 1 -B

rebuild initramfs:

mkinitcpio -P

create the new entry:

efibootmgr --create --disk /dev/nvme0n1 --part 6 --label "Arch Linux" --loader '\EFI\Linux\arch-linux.efi' --unicode

and then reboot

vapid zephyr
#

no

#

that's the arch isos mkinitcipo?

#

are you in chroot?

solemn sentinel
#

Yes

#

Am i not suppose to be?

vapid zephyr
#

you are not in chroot

#

exit out of nano and send a picture

solemn sentinel
#

I didn't save any of that btw so its how it was originally

#

Just to make sure im in it correctly

vapid zephyr
# solemn sentinel

remove references to archsio, like the whole archiso_config line, and for the 'archiso' line in presets= change that to 'default'

#

and follow the rest of the guide

solemn sentinel
#

Idk what happened but this showed up when I exited and redid chroot

vapid zephyr
#

oh gud

#

then listen to the guide

solemn sentinel
#

👍

#

This is how it should be right

vapid zephyr
#

no

#

exit out of that

#

this is a command

solemn sentinel
#

Couldn't i just have saved it in that file

#

Does it make a difference?

vapid zephyr
#

because of the subshell usage

#

it will autofill your fs uuid

#

just execute that command please

solemn sentinel
#

Ok

#

And last question for that efibootmgr. Is the partition just the /boot partition

#

Just for future reference

#

Like in that last command

vapid zephyr
#

every command should be ran as written

#

don't twist it

solemn sentinel
#

Im asking its written how you gave it

#

Im just trying to understand it

vapid zephyr
#

it should be typed as written

#

--part 6 is the esp partition

solemn sentinel
#

Ok everything's done

#

Fingers crossed

#

At least it booted

vapid zephyr
solemn sentinel
#

So i fucked it up

vapid zephyr
#

show me /etc/cmdline.d/root.conf

solemn sentinel
#

It says it doesn't exist

vapid zephyr
#

in chroot

solemn sentinel
#

Im still in this rootfs

vapid zephyr
#

no

#

go back into the iso in chroot

solemn sentinel
#

From my flash drive?

vapid zephyr
#

yes

vapid zephyr
solemn sentinel
#

I cant go back into arch-chroot /mmt

vapid zephyr
#

picture please

solemn sentinel
#

It says failed to setup chroot /mnt now that I restarted

vapid zephyr
#

need a picture

solemn sentinel
vapid zephyr
#

lsblk -f

solemn sentinel
vapid zephyr
#

pls

#

wider screenshot

#

i need to see mount points

solemn sentinel
vapid zephyr
#

nothing is mounted

#

remount

solemn sentinel
#

I could only remount the /boot

#

I created a directory in /mnt and its just /boot and mounted it there

#

Everything else wont work cause its an "unknown filesystem type"

vapid zephyr
#

reboot the iso

solemn sentinel
#

Being swap, and the 2 encrypted luks partitions

#

Ok

vapid zephyr
#

you need to open your luks partition before being able to mount it

#

cryptsetup open /dev/nvme0n1p7 root

#

mount /dev/mapper/root /mnt

solemn sentinel
#

What about swap

vapid zephyr
#

no

solemn sentinel
#

Should I make folders in the mnt folder

#

And just name them boot, home, root

vapid zephyr
#

stop

solemn sentinel
#

Ok

vapid zephyr
#

umount -R /mnt
cryptsetup open /dev/nvme0n1p7 root
mount /dev/mapper/root /mnt
mount /dev/nvme0n1p5 /mnt/boot
arch-chroot /mnt

echo "cryptdevice=UUID=$(lsblk -dno UUID /dev/nvme0n1p7):root root=/dev/mapper/root rw" > /etc/cmdline.d/root.conf

exit
reboot

run these commands as exactly typed, double check a million times

solemn sentinel
#

Ok I've rebooted it

#

Hopefully this works

#

Same error

#

Typed exactly how you had it

#

Maybe its the laptop idk

vapid zephyr
#

cryptsetup open /dev/nvme0n1p7 root
mount /dev/mapper/root /mnt
mount /dev/nvme0n1p5 /mnt/boot
arch-chroot /mnt
cat /etc/cmdline.d/root.conf

#

run these in iso

#

and send output of the last command

solemn sentinel
vapid zephyr
#

mkinitcpio -P

#

run this

#

and then reboot

solemn sentinel
#

Ok

#

I cannot thank you enough

#

Holy shit

#

I appreciate it so much

vapid zephyr
#

... solved

fresh tendonBOT
#

#17640 📣 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://media.discordapp.net/attachments/1377138685538992252/1394893287667667035/image.png?ex=6878771b&is=6877259b&hm=e490049052812fd977384de338fa0f0c0634c50ed75a6f5a00bc7c7a847ff278&=&format=webp&quality=lossless&width=628&height=122
Thank you

solemn sentinel
#

Sorry for taking up so much time

vapid zephyr
#

do this

solemn sentinel
#

[SOLVED]Can't get arch to show up in BIOS after install on new HP Omnibook Ultra Ryzen AI 9 HX 375