You are not logged in.

#1 2024-12-08 23:26:33

Brolupyr777
Member
Registered: 2024-12-08
Posts: 16

[SOLVED] Kernel Panic After Failed Pacman Upgrade

After running "sudo pacman -Syu" my installation crashed and on the next reboot I have encountered a kernel panic.


https://ibb.co/Pxj4Wvd

Last edited by Brolupyr777 (2024-12-10 02:09:34)

Offline

#2 2024-12-08 23:37:38

cryptearth
Member
Registered: 2024-02-03
Posts: 2,093

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

it tells you right in the error message - your root uuid is wrong

Offline

#3 2024-12-08 23:41:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,724

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

That error is the kernel trying to mount root directly because no initramfs is being used. Boot an install disk, mount everything, chroot in, and reinstall your kernel. Really, reinstall all packages that were part of the failed update.

Offline

#4 2024-12-09 01:16:58

Brolupyr777
Member
Registered: 2024-12-08
Posts: 16

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

Problem fixed!

Commands used:

mount /dev/sdXn /mnt

mount /dev/sdYp /mnt/boot


arch-chroot /mnt

pacman -Syu linux
pacman -Syu base

mkinitcpio -P

grub-mkconfig -o /boot/grub/grub.cfg

exit
umount -R /mnt

reboot

Last edited by Brolupyr777 (2024-12-09 02:21:39)

Offline

#5 2024-12-09 07:09:31

cryptearth
Member
Registered: 2024-02-03
Posts: 2,093

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

swapping the pacman lines - or rather combine them - avoids the manual mkinitcpio after them
otherwise: glad you were able to fix your system and thanks for reporting back with something that is helpful for others

Offline

#6 2024-12-09 07:46:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

Problem fixed!

\o/
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

#7 2025-02-14 17:57:30

dncwhy
Member
Registered: 2025-02-14
Posts: 3

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

Had similar issue, commands mentioned helped me restore ability to boot, yet it remained unusable, so I had to forcefully reinstall all packages:

pacman -Qqen > pkglist.txt
pacman --overwrite=* -S $(< pkglist.txt)

Even though it is not recommended, it was the only thing that helped.

Offline

#8 2025-02-14 20:20:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: [SOLVED] Kernel Panic After Failed Pacman Upgrade

Not only nort recommended, hardly necessary.
You wanted to have sanitized the database w/ a --dbonly pass first so you would not run into file collisions in a second pass for the actual re-installation.

Offline

Board footer

Powered by FluxBB