recover arch linux after pacman -Syu crash [linux]
Jul 15, 2018
- Download lastest Arch ISO;
- Create USB flash installation media;
- Connect your computer to your router with a cable;
- Boot from USB flash installation media;
- Make sure you have Internet access;
- Mount your root partition:
mount /dev/sda2 /mnt
- Mount the proc, sys and dev filesystems as well:
mount -t proc proc /mnt/proc; mount --rbind /sys /mnt/sys; mount --rbind /dev /mnt/dev
- Perform base installation:
pacstrap /mnt base base-devel
- Chroot to your root partition:
arch-chroot /mnt
- Mount your boot partition:
mount /dev/sda1 /boot
- If needed follow this guide: Restore local pacman db
- Re-install all native packages from pacman db:
pacman -Qnq | pacman -Su --force -
- Re-install all AUR packages from pacman db:
for i in $( pacman -Qmq ); do aurget -Sy --noedit --noconfirm "$i"; done
- Follow this guide: Restore local pacman db