You are not logged in.

#1 2022-06-04 06:06:50

heyslava
Member
Registered: 2022-06-04
Posts: 31

failed to start load kernel modules. Kernels are different [SOLVED]

Hello, everyone.

Recently, I updated my system with pacman -Syyu and after reboot I couldn't load my kernel

Error is failed to start load kernel modules. pacman -Qi linux returns 5.18.arch1-1 but uname -r returns 5.17.9-arch1-1 . Search on this forums shows me that It's quite a common issue but I still can't resolve it
cat /etc/fstab returns nothing so I am sure that it is a problem. I have tried mount /dev/sda1 /boot but I have got an error -  unknown filesystem type 'vfat'.

I have met this problem for the second time and first time I'd just reinstall my system but I believe that there is a better solution

fdisk -l
Disklabel type: gpt

device           Type
/dev/sda1      EFI System
/dev/sda2      Linux filesystem

Thank you!

Last edited by heyslava (2022-06-04 07:46:44)

Offline

#2 2022-06-04 06:18:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: failed to start load kernel modules. Kernels are different [SOLVED]

Your /boot wasn't mounted for the upgrade. Chroot in and rerun the upgrade with /boot mounted. Note, that is -Syu, not the pointless in this case yy. Read the man page for details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-06-04 06:52:25

heyslava
Member
Registered: 2022-06-04
Posts: 31

Re: failed to start load kernel modules. Kernels are different [SOLVED]

Thank you for the quick response

jasonwryan wrote:

Chroot in and rerun the upgrade with /boot mounted.

I chrooted in
mount /dev/sda1 /boot
mount /dev/sda2 /

then I run pacman -Syu but I have got errors

error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)

Errors occurred, no packages were upgraded.

Last edited by heyslava (2022-06-04 06:54:49)

Offline

#4 2022-06-04 06:55:15

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: failed to start load kernel modules. Kernels are different [SOLVED]

Offline

#5 2022-06-04 07:45:24

heyslava
Member
Registered: 2022-06-04
Posts: 31

Re: failed to start load kernel modules. Kernels are different [SOLVED]

# cd /location/of/new/root
# mount -t proc /proc proc/
# mount -t sysfs /sys sys/
# mount --rbind /dev dev/

I have tried it but it does not work. It it likely that I do not understand what to do

but

I booted from my usb stick
then
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
pacman -Syu

and it helped

Offline

#6 2022-06-04 14:19:10

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: failed to start load kernel modules. Kernels are different [SOLVED]

This cannot have worked unless
a) you somehow properly chrooted into the system
b) you passed --sysroot /mnt to pacman

Either way, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB