-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux System Recovery
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to system recovery on Linux, covering Arch Linux, CachyOS, and other distributions including chroot, boot repair, recovery procedures, and data recovery.
Boot from ISO:
- Boot from Linux ISO (Arch/CachyOS)
- Mount partitions
- Chroot into system
Mount system:
# Mount root
mount /dev/sda2 /mnt
# Mount EFI (if UEFI)
mount /dev/sda1 /mnt/boot/efi
# Mount other partitions
mount /dev/sda3 /mnt/homeEnter chroot:
# Arch/CachyOS
arch-chroot /mnt
# Or manual chroot
chroot /mnt /bin/bashCachyOS note: CachyOS provides cachy-chroot tool. See CachyOS Cachy Chroot Guide for details.
GRUB:
# Chroot first
arch-chroot /mnt
# Reinstall GRUB
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
# Regenerate config
grub-mkconfig -o /boot/grub/grub.cfgsystemd-boot:
# Chroot
arch-chroot /mnt
# Reinstall
bootctl install
# Update entries
bootctl updateRebuild:
# Chroot
arch-chroot /mnt
# Rebuild
mkinitcpio -PFix packages:
# Chroot
arch-chroot /mnt
# Fix packages
pacman -Syu
# Reinstall broken
pacman -S package-nameRestore:
# Mount backup
mount /dev/backup-device /mnt/backup
# Restore files
rsync -av /mnt/backup/home/ /mnt/home/Install TestDisk:
# Install TestDisk
sudo pacman -S testdisk
# Launch
sudo testdiskInstall PhotoRec:
# Install PhotoRec
sudo pacman -S testdisk
# Launch
sudo photorecCheck mounts:
# Check mounts
mount | grep /mnt
# Mount required filesystems
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sysThis guide covered system recovery for Arch Linux, CachyOS, and other distributions, including chroot, boot repair, and data recovery.
- Backup and Restore - Backup setup
- Bootloader Configuration - Bootloader setup
- CachyOS Cachy Chroot Guide - CachyOS chroot tool
- ArchWiki System Recovery: https://wiki.archlinux.org/title/Installation_guide#Chroot
This guide covers Arch Linux, CachyOS, and other Linux distributions. CachyOS-specific tools are highlighted where applicable.