#[SOLVED]System doesn't mount boot after update

201 messages · Page 1 of 1 (latest)

old cypress
#

Hi, so I've done full system update after a around month of not doing so, and at first it crashed mid thing, but I booted to cli and finished rest no problem. Now when I boot I get error that /boot couldn't be mounted and idrk what to do. I have a backup on raid1 partition but idk how to get to it, or I can do it other way? I'll send pictures soon. Also as far as I see internet doesn't work too

signal glacier
#

send a picture here, do not type it out

old cypress
old cypress
signal glacier
# old cypress

go into the iso, mount your partitions, chroot in, and then regen your kernel images with mkinitcpio -P

old cypress
#

So I need a pendrive with arch,m

signal glacier
#

yes

old cypress
#

Okay, will any of data be lost?

signal glacier
#

no

old cypress
#

Okay great thanks I'll try it soon and let you know

old cypress
old cypress
#

Do I mount / or other drives too

#

Cus I have more than one

signal glacier
#

you mount your root partition and esp partition

#

home is not needed

old cypress
#

Okay

signal glacier
#

mounting will be different depending on what filesystem you're using, if btrfs first mount the toplevel subvolume and then list out the available subvolumes on that mount point

#

additionally if using an encrypted root, first open it with cryptsetup then mount /dev/mapper/*

old cypress
#

I didn't try yet, I was downloading ISO

signal glacier
#

worked? @old cypress

old cypress
old cypress
#

Sorry if i'm doing something wrong

signal glacier
#

And you're doing it wrong

#

That's not how you chroot

#

... chroot

tacit patioBOT
old cypress
old cypress
#

I didn't get to that step yet

signal glacier
#

BTRFS uses subvolumes, which you have to mount

#

.aw BTRFS

tacit patioBOT
old cypress
signal glacier
#

Different filesystems

old cypress
#

So I follow this?

old cypress
signal glacier
signal glacier
#

Arch installed with archinstall uses same subvolumes configuration as EndeavourOS

#

Use lsblk -f to check your configuration

old cypress
signal glacier
#

I already said how to proceed

old cypress
signal glacier
old cypress
#

And im doing literally that

signal glacier
#

It depends on your BTRFS subvol layout

#

Also use latest arch iso

old cypress
#

I have latest iso, downloaded yesterday

signal glacier
#

lsblk -f helps

old cypress
old cypress
#

And similar error for when I try to mount nvme0n1p2 but it also says no such file or directory

signal glacier
#

Be sure what filesystem you're using

old cypress
#

I am sure

old cypress
#

Apparently restoration completed, I exited from chroot, rebooted to arch but still it can't mount /boot on startup

#

Same error as earlier

#

Earlier I mean first screenshot

old cypress
#

Okay @signal glacier so I mounted both as in the guide Hazel send, ran mkinitcpio -P rebooted to OS but it still is dead (image 1 is after mkinitcpio-P, image 2 after boot)

old cypress
old cypress
#

Ngl idk what to do

old cypress
#

I did what I was told to do but still the same error on boot

signal glacier
#

like i said

#

mount both partitions

signal glacier
old cypress
signal glacier
#

show me

#

mount both. chroot in, run mkinitcpio -P, and then lsblk -f, and ls -l /boot

old cypress
#

Ok

signal glacier
#

whats in /efi?

#

is that xboodldr?

#

ls -lR /efi pls

#

kay my suspicions are you're mounting your esp to the wrong place and you don't actually have xbootldr

#

you should exit chroot and mount your esp partition to /mnt/boot instead

#

and then chroot in, regen kernel images

then show me:

cat /etc/fstab
ls -l /boot

old cypress
signal glacier
# old cypress

you only need to mount the root subvolume, whether that being the toplevel one or not

so:

mount -o subvol=@ /dev/nvme0n1p2 /mnt

and then you would mount your esp here

signal glacier
#

you're mounting your esp partition to the wrong place

signal glacier
#

and the message below

old cypress
#

Esp being nvme0n1p1?

signal glacier
#

yes

#

it needs to be remounted to /mnt/boot

#

since kernel images get generated in /boot

old cypress
#

Oh, okay, I followed what Hazel send me

signal glacier
#

atleast in the default mkinitcpio.conf rpesetr

#

preset*

signal glacier
#

esp you should know where to mount if you installed manually

old cypress
signal glacier
#

that's only for pure uki/efistub setups, and/or xbootldr

signal glacier
old cypress
#

I'll unmount it and mount under where you said

signal glacier
#

don't follow 3rd party guides

#

biggest mistake

old cypress
#

I mean it was linked in this conversation so I thought it's fine

signal glacier
#

where exactly?

signal glacier
#

it's completely wrong as well, from a first glance

old cypress
signal glacier
#

missing that subvolume

#

/ is the toplevel subvolume in btreefs

#

@ is where your root would live if you had followed the default layout

old cypress
signal glacier
#

mkinitcpio -P

#

and you'll be good

#

just rerun ls -hR /boot after so i can sanity check it

old cypress
signal glacier
old cypress
#

(also is the image quality good)

signal glacier
#

update your kernel with:

pacman -Syu linux

#

this will trigger initramfs creation

#

which is what mkinitcpio -P does

old cypress
#

All 84 packages?

signal glacier
#

well first

#

have you done the manual intervention?

#

for linux-firmware

#

this

#

if not, cancel out of that upgrade and:

pacman -Rdd linux-firmware && pacman -Syu linux linux-firmware

old cypress
#

I did

signal glacier
#

kay

#

then proceed

#

with the update

#

and if there are any warnings or errors, send a picture here

old cypress
#

Errors occured no packages were updated, and a bunch of X exist in filesystem

#

I'll send pic in a sec

signal glacier
#

pacman -Syu --overwrite='*'

signal glacier
#

--overwrite='*' two single quotes with an asterisk

old cypress
#

Again non valid kernel errors

signal glacier
#

show

signal glacier
old cypress
signal glacier
#

pacman -Q linux

signal glacier
old cypress
#

linux 6.15.6.arch1-1

signal glacier
#

does that work

old cypress
#

-p or -P?

signal glacier
#

lowercase

old cypress
#

No

signal glacier
#

weird that it's pointing to that, does exiting chroot and re entering work? if not then try a reboot

#

remount,rechroot,and re mkinitcpio -P

signal glacier
signal glacier
#

ls -lh /boot

old cypress
signal glacier
#

ignore that for now

#

i want to check the age of that kernel image

old cypress
signal glacier
#

yes

old cypress
signal glacier
#

the kernel image is a month old

#

pacman -Syu linux

old cypress
signal glacier
#

good

#

now reboot into the installation

#

unplug usb

old cypress
#

Can I keep it plugged just change boot order?

signal glacier
#

you can change boot order on cli with efibootmgr

old cypress
#

In bios

signal glacier
#

but just unplug for now

#

and see if it owrks

old cypress
#

Ok

#

When I input my password I get send back to this screen, error was before I did anything

signal glacier
#

... solved

tacit patioBOT
#

#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

old cypress
#

[SOLVED]System doesn't mount boot after update

#

Done?

signal glacier
#

it is

#

i have listed my reasons in a separate channel

#

3rd party guide
which is only meant for uki/efistub setups and/or xbootldr

kernel images always go in /boot so mounting esp to /mnt/efi will cause issues, unless the user has modified /etc/mkinitcpio.d/linux.preset or any of the other preset files to point images to /efi instead of /boot

if xbootldr, the bootloader will live in /efi so it's fine to mount to /mnt/efi

even if it does mention this way (/boot/efi not /efi), it's still wrong as stated in the specification and totally deprecated, also this completely varies on the users setup, a noob is not going to know where their esp partition gets mounted to and will just mount it to /mnt/efi blindly

https://uapi-group.org/specifications/specs/boot_loader_specification/#mount-points