Arch installation with LUKS encryption and LVM

This is the English version of the German installation guide on rvbg.eu.
This guide is based upon a german arch wiki entry.

At the end of this guide a fully functional Arch Linux will be installed.

1. Preparation

Ahead of the installation an Arch boot-stick has to be created. The iso-file can
be found on the official website.
The iso can be written on an USB-stick using dd.
After that the USB can be plugged in the system on which Arch should be installed.
Boot the target system and select Boot Arch Linux (x86_64).

If you need to set the keyboard layout to anything other than english you can
temporarily do so by using the loadkeys command.
This has to be followed by your country id (for example a german keyboard layout
would be de,de-latin1 or de-latin1-nodeadkeys.

2. Formatting of the target drive

Using lsblk you can list all the drives and partitions.
Select a drive to install Arch on.
In this step you can see if old partitions need to be deleted.
For reasons of simplicity the following guide will assume the selected drive to
be /dev/sda.

Clear disk completely

This step can take quite a while especially for large drives.

Now all partitions should be removed.

Create new partitions

If you miss click during the progress of the following commands you can press
CTRL+C to close the program.
No changes will be made until the confirmation at the end.
The swap partition will be created later under lvm.

3. Encryption

We need to find out which partitions is the one we want to encrypt.
Using blkid | grep /dev/sda all partitions we created get listed.
The right partition has the label Linux filesystem.
For this guide this partition is assumed to be /dev/sda2.

4. Setup LVM

5. Create filesystems and mounting them temporarily

We have to find out which partition is our boot-partition.
Using blkid | grep /dev/sda once again, we can identify it by looking for the
EFI system partition label.
The guide assumes this partition to be at /dev/sda1.

Now the created filesystems will be mounted for the installation.

6. Prepare base installation (optional)

In this step the country specific mirrorserver for the installation will be configured.
This will improve the download speed.

7. Starting base installation

Now you need a working internet connection.
Plug in your lan cable or use wifi-menu to get a wireless connection.

8. Set Region and Language

en_US.UTF-8 UTF-8

9. Configure and create kernel-image

10. Install and configure UEFI bootloader

11. Finishing base installation

If the system is installed in a virtual environment or a system with deactivated
UEFI, don't forget to enable the EFI option, otherwise the system won't boot.
Now you can follow my larbs installation script
(curl -o larbs.sh https://raw.githubusercontent.com/tiyn/larbs/master/larbs.sh
or go on to other guides.