Disk encryption

Also known as: full-disk encryption · FDE

On this page 7

Disk encryption is the protection of data at rest by encrypting an entire storage volume or drive, so that every sector written to the disk is unreadable without the correct key. As part of OS security, it is the built-in defense against physical access: when a laptop is lost, stolen or discarded, the drive contents remain ciphertext to anyone who lacks the key. When it covers the whole system drive, it is called full-disk encryption (FDE).

Desktop operating systems ship native disk encryption: BitLocker and Device Encryption on Windows, FileVault on macOS, and LUKS with dm-crypt on Linux. Self-encrypting drives can also perform the encryption in their own controller hardware.

How disk encryption protects data at rest

Disk encryption works transparently below the file system. A driver in the storage stack encrypts each block as it is written and decrypts it as it is read, so applications and users see ordinary files while only ciphertext ever reaches the physical medium.

The design uses a two-level key hierarchy. A random volume master key encrypts the data, and that key is itself stored encrypted, or wrapped, by one or more key protectors such as a password, a TPM-sealed secret or a recovery key. Changing a password therefore re-wraps only the master key and does not require re-encrypting the whole disk.

The cipher mode matters because sectors must be encrypted independently and in place. Modern systems typically use AES in XTS mode with 128-bit or 256-bit keys, which produces a different result for identical data in different sectors. XTS provides confidentiality but not authentication, so it does not detect deliberate tampering with individual sectors.

The main components and their roles are summarized in the following table.

ComponentRoleTypical implementation
Volume master keyEncrypts every data sectorRandom 128-bit or 256-bit AES key
Key protectorWraps the master keyTPM, PIN, passphrase, recovery key
Cipher modeEncrypts sectors independentlyAES-XTS
Key derivationTurns a passphrase into a keyPBKDF2 or Argon2 with many iterations
Header or metadataStores wrapped keys and parametersLUKS header, BitLocker metadata
Building blocks of a disk encryption system

Unlocking methods and the role of the TPM

The convenience and strength of disk encryption depend mostly on how the key is released at startup. On many PCs the Trusted Platform Module seals the key to measurements of the firmware and boot chain, and releases it only when those measurements are unchanged.

MethodUser effortProtection levelMain weakness
TPM onlyNone at bootModerateDevice boots to sign-in screen for anyone
TPM plus PINShort PIN at bootHighPIN can be observed
PassphraseLong passphrase at bootHigh if strongWeak passphrases can be guessed offline
Hardware tokenInsert or touch a keyHighToken can be lost
Recovery keyLong numeric or text keyFallback onlyInsecure storage of the key
Common ways to unlock an encrypted system drive

TPM-only unlocking is invisible to the user, yet it leaves the decrypted system reachable up to the login screen. For laptops that carry sensitive data, a pre-boot PIN or passphrase adds a factor that an attacker holding the device does not have.

Disk encryption compared with other encryption scopes

Disk encryption protects a powered-off device; it does not protect files from malware or users while the system is running and unlocked. Other encryption scopes fill different gaps, and they are often combined.

ScopeWhat is protectedProtects whenExample
Full-disk encryptionEntire system driveDevice is off or locked at bootBitLocker, FileVault, LUKS
Volume encryptionOne partition or external driveVolume is not mountedEncrypted USB drive
File-level encryptionSelected files or foldersPer user, even on a running systemEFS, encrypted containers
Self-encrypting driveWhole drive in hardwareDrive is powered offOpal-compliant SSD
Encryption scopes on a desktop computer

Hardware encryption in self-encrypting drives offloads work from the CPU, but firmware flaws have historically undermined some implementations, so many administrators prefer software encryption that they can audit and control.

Performance and practical deployment

On current processors with AES hardware instructions, the overhead of software disk encryption is usually small and rarely noticeable in everyday work. It can become measurable with very fast NVMe drives under heavy sustained input and output, where encryption adds CPU load.

The decisive deployment step is recovery key management. Without the key, encrypted data is effectively lost if the password is forgotten, the TPM is cleared or a firmware update changes boot measurements. Organizations escrow keys in a directory or management service, and individuals should store them separately from the device.

  • Enable encryption before storing sensitive data, so no plaintext remnants remain on the disk.
  • Encrypt external and secondary drives too, since they are lost more often than laptops.
  • Suspend protection only briefly for firmware updates and resume it immediately.

Limits and common misconceptions

Disk encryption is powerful but narrow. It addresses theft and disposal of hardware, not every threat to data, and misunderstanding its boundaries leads to false confidence.

ThreatDoes disk encryption helpBetter countermeasure
Stolen powered-off laptopYesEncryption with pre-boot authentication
Malware on a running systemNoUpdates, endpoint protection, least privilege
Device stolen while in sleep modePartiallyHibernate or shut down when traveling
Cold boot or DMA attackPartiallyKernel DMA protection, pre-boot PIN
Discarded or resold driveYesCrypto erase by destroying the key
Threats and whether disk encryption helps

A frequent mistake is assuming that a sleeping laptop is protected; in sleep mode the key stays in memory. Another is relying on encryption without a tested recovery path, which turns a forgotten PIN into permanent data loss.

The simple explanation

Disk encryption turns everything stored on a computer’s drive into scrambled text that only the right key can unscramble. While you use the computer, it unscrambles data on the fly, so you notice nothing.

If someone steals the laptop and pulls out the drive, they see only noise. Think of it as a safe that holds the entire hard drive: very effective when it is closed, but it does not help once you have opened it and left the room. Keeping the recovery key somewhere safe is essential, because without it even you cannot get back in.

How it is used in practice

A regional accounting firm issues thirty laptops to staff who visit clients. The IT administrator enables full-disk encryption with AES-XTS 256-bit keys, requires a TPM plus a six-digit PIN at startup, and stores every recovery key in the company’s device management service.

Months later, an employee’s bag is stolen from a car with a laptop inside. Because the device was shut down and the PIN was never shared, the thief cannot read client records, and the firm documents that the data remained encrypted. When another employee forgets the PIN after a vacation, the help desk reads out the stored recovery key, and work resumes within minutes without any data loss.