OGOPSEC // Dispatch
Encrypted Linux Laptop: Full-Disk, Home Encryption, and the Gaps
When someone says they run an encrypted Linux laptop, they could mean one of two quite different things, and the difference decides what a thief can read. Full-disk encryption protects the entire block device. Home-directory encryption protects only the files under /home. Both are legitimate; both leave gaps; and confusing one for the other is how people end up surprised. This post lays out exactly what each covers so you can verify the claim you are relying on — including our own.
Full-disk encryption (LUKS/dm-crypt)
Full-disk encryption (FDE) on Linux almost always means LUKS on top of dm-crypt. The entire partition — root filesystem, swap, temporary files, logs, and your home directory — is a single encrypted volume. It is unlocked once, early in boot, with a passphrase or a key, and everything above that layer sees plaintext only after unlock.
Check whether a volume is LUKS:
sudo cryptsetup isLuks /dev/nvme0n1p3 && echo "LUKS" || echo "not LUKS"
sudo cryptsetup luksDump /dev/nvme0n1p3
What FDE protects: every byte at rest when the machine is powered off. A stolen, shut-down laptop is ciphertext end to end. What it does not protect: a running or suspended machine, where the volume is already unlocked and the key is in RAM. FDE is an at-rest control, not a running-system control.
Home-directory encryption (ecryptfs)
The other common setup encrypts only a user's home directory, typically with ecryptfs. The encrypted files live in a per-user directory and are transparently decrypted into /home/you when you log in, using a key unwrapped by your login passphrase. The rest of the system stays in plaintext on disk.
This has real advantages: it is per-user, it can be added to an existing system without reinstalling, and a multi-user machine can keep each person's files private from the others even while the OS is running. But its scope is narrower than people assume.
The gaps home-only encryption leaves
If only your home directory is encrypted, the following are written to disk in the clear:
- Swap. Anything paged out of RAM — potentially including data from your decrypted session — can land on an unencrypted swap partition or swapfile.
- /tmp and /var/tmp. Many applications write working files, caches, and even sensitive scratch data here.
- System logs under /var/log. These can reveal usernames, hostnames, timestamps, network activity, and error output containing fragments of data.
- The rest of the root filesystem. Installed software, system configuration, and anything stored outside
/home.
None of that is a flaw in ecryptfs — it is doing exactly what it claims, encrypting a home directory. The mistake is believing a home-encrypted laptop is a fully encrypted laptop. It is not.
A comparison you can act on
How to choose
For a single-user laptop that you want genuinely safe if stolen while off, use full-disk encryption. It is the only option that also covers swap, temp, and logs. If you cannot reinstall right now, home-directory encryption is a reasonable interim measure — but turn on an encrypted swap as well, and treat the plaintext system areas as exposed. For the strongest posture, combine them: LUKS underneath for the at-rest guarantee, and per-user home encryption above it if you need isolation between accounts.
Where Dire Wolf fits — stated precisely
Because this is exactly the kind of claim that gets muddled, we will be blunt about our own product. Dire Wolf encrypts your home directory with ecryptfs and binds the unlock to a hardware key; it is not full-disk encryption. Swap, /tmp, and system logs are not in its scope. We pair it with LUKS rather than replacing it, and we say so on the box. That is what "security you can check" means: the honest description is the same as the technical one. Whatever you deploy, verify which of these two encryptions you actually have before you trust your laptop to it.