Show Menu
Cheatography

Arch Rescue Cheat Sheet (DRAFT) by

Useful commands while troubleshooting in live ISO mode

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Make your life easier

Change keyboard layout
loadkeys br-abnt2
Remove bell
sudo rmmod pcspkr

Arch-c­hroot

Show disks
lsblk
Mount root
mount /dev/sdaX /mnt
Mount boot
mount /dev/n­vme­0n1pY /mnt/boot
Chroot
arch-c­hroot /mnt
Umount
umount /mnt

Packages

List packages cache
ls /var/c­ach­e/p­acm­an/pkg
Install package
pacman -U pkgname
 

Systemd bootloader

Rebuilds all initramfs images
mkinitcpio -P
Installs system­d-boot loader
bootctl install

Block errors

Auto-r­epairs disk errors
fsck -a disk
Forces filesystem check
fsck -f