notes | journal | about | archive | sourcehut | github

Arch Linux install with Encrypted / and Suspend to Disk

  • Format Drive
  • Encrypt root partition
  • Write and mount filesystems
  • Install system
  • Chroot in and configure system time, language, etc
  • Set up Kernel and Bootloader
  • Set up Swap to enable suspend to disk
  • Install Bootloader:
  • User and root setup
  • Enable Automatic Login on Boot:
  • Power Management
  • Security
  • Audio
  • Miscellaneous configuration
  • These are notes from installing Arch Linux on my most recent laptop.

    Format Drive

    Encrypt root partition

    Write and mount filesystems

    Install system

    Chroot in and configure system time, language, etc

    Set up Kernel and Bootloader

    HOOKS=(base udev autodetect modconf block encrypt filesystems resume keyboard fsck)
    

    Set up Swap to enable suspend to disk

    Install Bootloader:

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

    User and root setup

    Enable Automatic Login on Boot:

    systemctl edit getty@tty1:

    [Service]
    ExecStart=
    ExecStart=-/usr/bin/agetty --autologin <username> --noclear %I $TERM
    

    Power Management

    Security

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

    Audio

    Miscellaneous configuration