Reference Arch Install (Encrypted / and suspend to disk)

Table of Contents

Prep

Choosing a Laptop

Laptop Research.

Boot into Arch Installation Image

Follow the official guide . Make sure you have a second internet-connected device for troubleshooting.

Format Drive

Encrypt root partition

Write and mount filesystems

Install system

Chroot in and configure system time, language, etc

Set up Kernel and Bootloader

Install Bootloader:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet cryptdevice=/dev/nvme0n1p2:crypt"

User and root setup

Final configurations after rebooting

Swap and hibernate

Swap is enabled, but we need to tell Grub how to resume from hibernation:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet cryptdevice=/dev/nvme0n1p2:crypt resume=/dev/mapper/crypt resume_offset=2512896"
filefrag -v /swapfile | awk '{if($1=="0:"){print $4}}'

Don’t forget to regenerate the grub configuration:

Now test hibernation after rebooting

Security

[connection]
wifi.cloned-mac-address=random

[connection]
ethernet.cloned-mac-address=random

Miscellaneous configuration