Last active
February 7, 2024 08:15
-
-
Save thomasheller/2408717b2b3dae04e54833a52d0c78b5 to your computer and use it in GitHub Desktop.
Arch Linux - vmlinuz-linux not found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If your machine crashes during an OS kernel update, you may not be able to boot anymore. | |
# You can boot from a USB drive (Arch install ISO) and run the following commands to fix it: | |
lsblk # Replace "/dev/sda" in the following commands with your actual hard disk device | |
cryptsetup luksOpen /dev/sda2 linux | |
mount /dev/mapper/Linux-root /mnt | |
mount /dev/mapper/Linux-home /mnt/home | |
mount /dev/sda1 /mnt/boot | |
swapon /dev/mapper/Linux-swap | |
arch-chroot /mnt | |
rm /var/lib/pacman/db.lck | |
pacman -Syu linux | |
mkinitcpio -P | |
exit | |
umount -R /mnt | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment