Disk encryption on NetBSD – achieving secrecy
Web page · https://netbsd.org/~nia/disk-encrypt
First seen by Oriel on .
AI summary
This guide explains how to protect NetBSD user and system data with cgd while keeping a small unencrypted root filesystem and the standard installation and boot process.
- It focuses on stolen or lost devices, not tamper-proof systems, and identifies /home, /var, /usr, /usr/pkg, /usr/local, and parts of /etc as potentially sensitive.
- The installation reserves a roughly 4 GB unencrypted root partition and a larger cgd partition, which is unlocked with a password-derived key using argon2id.
- Encrypted storage can use disklabels or GPT disk wedges, with disklabel or GPT verification detecting incorrect passwords before invalid data is read or written.
- The guide mounts encrypted data early, then replaces /home, /var, and /usr with symbolic links into the encrypted filesystem.
- This arrangement complicates rescue operations and prevents offline installer-based upgrades; online upgrades such as sysupgrade are required, and the guide may contain human errors.
#netbsd #disk encryption #cgd #filesystems
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 96, latest observation ; +91 over observed period since
- Lobsters: 14, latest observation ; +13 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 18, latest observation ; +18 over observed period since
- Lobsters: 3, latest observation ; +3 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50504277 | https://netbsd.org/~nia/disk-encrypt/ Read discussion |
| Lobsters | 6ovrdg | https://netbsd.org/~nia/disk-encrypt/ Read discussion |