Loading blogs…
Arch Linux3 min read
Make Arch Linux dependable: Btrfs snapshots with Snapper and snap-pac, safe update habits, an LTS kernel fallback and arch-chroot recovery.
Full-stack engineer, New Delhi
Arch has a reputation for breaking. In practice, most breakage comes from a handful of avoidable habits. With automatic filesystem snapshots and a few rules, Arch can be as dependable as any "stable" distro — and when something does go wrong, you roll back in a minute.
paru and yay can show them before upgrading.pacman -Syu, never -Sy package. (More in my pacman cheat sheet.).pacnew. Merge them with pacdiff from pacman-contrib.sudo pacman -S linux-lts linux-lts-headersWith systemd-boot, add a second entry pointing at vmlinuz-linux-lts and initramfs-linux-lts.img. If a new kernel ever misbehaves with your GPU or Wi-Fi, reboot into LTS and carry on working.
Btrfs can take instant, space-efficient snapshots of your system. Combined with Snapper and snap-pac, every pacman transaction automatically creates a before-and-after snapshot.
This assumes your root filesystem is Btrfs with the common layout (@ for / and @home for /home) — archinstall sets this up if you choose Btrfs.
sudo pacman -S snapper snap-pac
sudo snapper -c root create-config /Keep the number of snapshots sensible in /etc/snapper/configs/root:
TIMELINE_CREATE="yes"
TIMELINE_LIMIT_HOURLY="5"
TIMELINE_LIMIT_DAILY="7"
TIMELINE_LIMIT_WEEKLY="2"
TIMELINE_LIMIT_MONTHLY="1"
TIMELINE_LIMIT_YEARLY="0"
NUMBER_LIMIT="20"sudo systemctl enable --now snapper-timeline.timer snapper-cleanup.timerNow run any update and check:
sudo snapper -c root listYou'll see a pre and post pair around the pacman transaction.
To undo the changes made between two snapshots (for example, a bad update):
sudo snapper -c root undochange 42..43For full "boot into an older snapshot from the menu" support, use GRUB with grub-btrfs, or limine with its snapper integration — both list snapshots at boot, so you can recover even when the system won't start.
Every Arch user should know this rescue routine. Boot the Arch USB, then:
lsblk # find your partitions
mount /dev/nvme0n1p2 /mnt # root (for Btrfs: add -o subvol=@)
mount /dev/nvme0n1p1 /mnt/boot # EFI partition
arch-chroot /mntYou're now "inside" your installed system. Common fixes from here:
pacman -Syu # finish an interrupted upgrade
mkinitcpio -P # rebuild initramfs images
pacman -S linux # reinstall the kernel
bootctl update # refresh systemd-bootThen exit, umount -R /mnt, reboot.
Snapshots live on the same disk. They protect you from bad updates, not from a dead SSD or a stolen laptop. Keep a real backup of /home elsewhere — restic or borg to an external drive or cloud storage, on a systemd timer.
With snapshots, an LTS fallback and a tested rescue routine, you get Arch's freshness without the fear.
Linux Desktop
An honest comparison of Hyprland, Sway and i3 — what tiling window managers are, who each suits, and a starter config to get going.
Arch Linux
Install Arch Linux on a UEFI machine step by step — partitioning, pacstrap, bootloader, networking and your first user — with every command explained.
Linux
Use ed25519 keys, ~/.ssh/config shortcuts, jump hosts and port forwarding like a pro — then harden your server's SSH daemon.