Skip to content

Instantly share code, notes, and snippets.

@thomasheller
Last active February 7, 2024 08:15
Show Gist options
  • Save thomasheller/2408717b2b3dae04e54833a52d0c78b5 to your computer and use it in GitHub Desktop.
Save thomasheller/2408717b2b3dae04e54833a52d0c78b5 to your computer and use it in GitHub Desktop.
Arch Linux - vmlinuz-linux not found
# 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