NetBSD disk encryption without the pain of a custom boot setup

Disk encryption on NetBSD – achieving secrecy

NetBSD disk encryption without the pain of a custom boot setup

A practical guide to encrypting sensitive directories on NetBSD while keeping the standard installer and boot process. Instead of a fully encrypted root, you install to a small unencrypted root and reserve a large partition for cgd. The guide covers creating the encrypted device with argon2id and Adiantum or AES, verifying the password via an inner disklabel or GPT, and mounting the result at /encfs.

It is very difficult to build a tamper-proof system, and you need to worry about tamper-proofing your hardware, depending on what kind of actor is a realistic threat.
  1. dist-epoch

    > The device is stolen or lost and its contents must remain secret.

    Seems this page uses a weak notion of "secret contents", since it doesn't encrypt the system packages, only user data and some configuration files.

    Maybe I don't want anybody to know I have installed Tor on my system, in some countries this is illegal.

  2. emills

    I really appreciate the citation needed link

More from this day

2026-11-15