Computer shutdown during upgrade - now missing kernel
Hi. I was just finishing an update and my power went out. Now I tried booting into the system and it says it's missing the kernel. It's been ages since I had any problem in arch that forced me to mess with anything on the kernel level. I found a few posts about this problem but each one has it's own set of commands that lead to the solution.
I gotta say I'm pretty lost. I do have a live USB arch. The first thing I tried doing was use arch-chroot but it's not found, which is weird because I'm almost completely sure it should be in the live usb. So I tried installing it with pacman and found that pacman itself wasn't found inside the live usb boot as well, so...
I'm rusty. Can anyone lend a hand?
Posted Mar 26, 2022, 7:15 PM UTC
This is all that it should take:
1)Boot with the live iso
2)Connect to the internet
3)Mount your root partition
4)Use arch-chroot into the mounted root partition (/mnt if you mounted there)
5)Install the kernel
But you mentioned that arch-chroot couldn't be found, are you sure there was not a typo or something?
Unless your USB stick went bad i don't have an explanation for that, you don't need to install anything.
I'm positive it's not a typo. I'm not sure how to pass the arch-chroot part. I'm afraid I'm gonna have to flash a new USB like the answer below mentioned, but it's also been ages since I don't do that, I was hoping that to be a last resort.
EDIT: Here's what I get when I try booting into the live USB http://ibb.co/T8HPNWj
Well, let's say that your root is on /dev/sda1 (check with lsblk).
Then it would be(after connecting to the internet):
As the other poster said running mkinitcpio -P might be enough, but i think that command runs anyway when installing a kernel so if you just pacman -S linux (if that's the kernel you are using) it should be fine.
lsblk is also not found. I edited the answer above to show the output I get when I boot into the live USB
Yeah that's the emergency shell.. not sure why it would happen when booting with the USB though, that's why all those commands are not working.
I don't know if there's something you can do from here or if you just need to burn the ISO again.
Almost certain that's an issue with the image, dd it again and it should work
[deleted]