Arch-Chroot

When I boot into an Arch Linux live USB to solve some problems, I always do the following:

  • Load the layout for my keyboard:
loadkeys it
  • Mount the root filesystem on /mnt:
mount /dev/sda3 /mnt
  • Mount the boot filesystem on /mnt/boot:
mount /dev/sda1 /mnt/boot
  • Mount the home filesystem on /mnt/home:
mount /dev/sda2 /mnt/home

Now, I ensure that my network connection works:

ping archlinux.org

If not, I read this.

If pacman still works on my system, I am ready to chroot, otherwise I must use pacstrap.

If both my connection to the Internet and pacman work, I chroot into /mnt:

arch-chroot /mnt