Last active
April 18, 2024 19:25
-
-
Save miguelmota/966ee13c1250df3b8ab0370fb01daf22 to your computer and use it in GitHub Desktop.
arch linux arch-chroot fix /boot initramfs (ie failed update/upgrade)
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
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