Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active April 18, 2024 19:25
Show Gist options
  • Save miguelmota/966ee13c1250df3b8ab0370fb01daf22 to your computer and use it in GitHub Desktop.
Save miguelmota/966ee13c1250df3b8ab0370fb01daf22 to your computer and use it in GitHub Desktop.
arch linux arch-chroot fix /boot initramfs (ie failed update/upgrade)
1. install usb stick with arch linux
2. boot from usb
3. run `fdisk -l` to find partition with linux installation (ie /dev/sda3 Linux Filesystem)
4. mount partition: `mount /dev/sda3 /mnt`
5. arch chroot into it: `arch-chroot /mnt`
6. rebuild initramfs: `mkinitcpio -p linux` (if that doesn't work yes try `pacman -S linux` only)
7. shutdown, unplug usb, reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment