How to Encrypt a Hard Drive (Windows, Mac, Linux)

By George Bailey   Published: 12/04/26   7 min read

Steps checked against Microsoft, Apple and Red Hat documentation on December 4, 2026. Menu names can change between versions.

What hard drive encryption does

Hard drive encryption scrambles everything stored on a drive so it can only be read with the right password, key or login. If your laptop is lost or stolen, or a drive is thrown out, the data stays unreadable. Windows uses BitLocker, Macs use FileVault, and Linux commonly uses LUKS (Microsoft Learn).

Encryption protects a drive that is switched off or locked. It does not stop malware or a scammer while you are signed in. It also does not replace backups: if you lose the password or recovery key, the data is gone for good, so the recovery key section below matters most.

Quick comparison

SystemBuilt-in toolWhere to turn it onNotes
Windows 10 / 11 HomeDevice EncryptionSettings > Privacy & security > Device encryptionNeeds a supported device. On by default when you sign in with a Microsoft account on supported hardware.
Windows 10 / 11 Pro, Enterprise, EducationBitLocker Drive EncryptionStart, type BitLocker, select Manage BitLocker, then Turn on BitLockerLets you encrypt specific drives manually.
macOSFileVaultApple menu > System Settings > Privacy & Security > FileVaultMacs with Apple silicon or a T2 chip encrypt data automatically.
LinuxLUKS (dm-crypt)Usually chosen when installing; later via cryptsetupEncrypting an existing disk can destroy data. Back up first.

BitLocker and Device Encryption on Windows

Microsoft describes two options. Device Encryption is designed for simplicity and is usually enabled automatically; BitLocker Drive Encryption is for advanced scenarios and lets you manually encrypt drives (Microsoft: BitLocker overview).

Windows Home (Device Encryption). When you set up a device with a Microsoft account, or a work or school account, Device Encryption is turned on and a recovery key is attached to that account. With a local account it is not turned on automatically. To check or enable it, sign in as an administrator, open Settings, select Privacy & security, then Device encryption, and turn the toggle on. If the setting is missing, it is unavailable on your device or you are signed in as a standard user (Microsoft: Device Encryption in Windows).

Windows Pro, Enterprise or Education (BitLocker). Sign in as an administrator, type BitLocker in Start and select Manage BitLocker. Next to the drive, select Turn on BitLocker, choose an unlock option, and back up the recovery key. Encryption starts, takes time, and you can keep using the device while it runs. BitLocker Drive Encryption is not available on Windows Home (Microsoft: BitLocker Drive Encryption).

Microsoft says BitLocker provides maximum protection when used with a Trusted Platform Module (TPM), a common hardware component on Windows devices, and can also require a PIN or a removable key at startup (Microsoft Learn).

FileVault on a Mac

Apple says that if you have a Mac with Apple silicon or an Apple T2 Security Chip, your data is encrypted automatically, and turning on FileVault adds an extra layer by requiring your login password to decrypt it. On a Mac without those chips, you need to turn FileVault on yourself (Apple Support: FileVault).

  1. Choose Apple menu > System Settings.
  2. Click Privacy & Security in the sidebar, then click FileVault (you may need to scroll).
  3. Turn on FileVault and enter your password if asked.
  4. Choose how to unlock your disk if you forget your login password: your iCloud account, or a recovery key.

LUKS and built-in encryption on Linux

LUKS (Linux Unified Key Setup) is a widely used disk-encryption format on Linux. Red Hat explains that LUKS encrypts entire block devices, which suits laptop drives and removable media, and that by default the encrypt option is unchecked during installation, so the best time to turn it on is when you install (Red Hat: Encrypting block devices using LUKS).

Warning for existing disks. Formatting a device with cryptsetup luksFormat irrevocably overwrites what is on it, and cannot be run on a mounted or in-use device (cryptsetup-luksFormat manual). Red Hat’s guide to encrypting existing data warns that you might lose data due to hardware, kernel or human failure, and tells you to have a reliable backup first. If you are not comfortable with the command line, back up your files and reinstall with encryption selected instead.

Red Hat also notes a limit: LUKS protects data only when the system is off. Once the system is on and the disk is unlocked, files are available to anyone who has access to them.

Recovery keys: how to store them safely

Encrypting vs a password on the account

A Windows or Mac login password only stops people who sign in through the normal screen. Someone with physical access could take the drive out and read it elsewhere. Disk encryption closes that gap. Use both, plus a strong, unique password; see our password best practices.

When an external-drive guide is the better fit

This guide covers the drive inside your computer. If you want to protect a USB stick or portable drive that you carry around, see our guide on how to encrypt an external hard drive. For background on the algorithms, see common encryption methods.

Frequently asked questions

How do I encrypt a hard drive on Windows or a Mac?

On Windows Home, turn on Device encryption under Settings > Privacy & security. On Windows Pro or higher, use Manage BitLocker and select Turn on BitLocker. On a Mac, go to System Settings > Privacy & Security > FileVault and turn it on. Sources: Microsoft and Apple.

Is BitLocker available on Windows Home?

BitLocker Drive Encryption is only available on Windows Pro, Enterprise and Education. Windows Home can use Device Encryption on supported devices. Source: Microsoft.

Do Macs encrypt the drive automatically?

Apple says Macs with Apple silicon or an Apple T2 Security Chip encrypt data automatically; FileVault adds an extra layer by requiring your login password. Other Macs need FileVault turned on. Source: Apple.

What happens if I lose my recovery key?

You may be locked out permanently. Microsoft says you will not be able to access a BitLocker drive without the key if it asks for it, and Apple says that if you forget your password and recovery key, your files and settings are lost forever. Sources: Microsoft and Apple.

Can I encrypt a Linux drive that already has data on it?

It is possible but risky. Red Hat warns you might lose data during the process and says to have a reliable backup first. Formatting with cryptsetup luksFormat overwrites the device. The safest route is to select encryption when installing. Sources: Red Hat and cryptsetup manual.

Does hard drive encryption protect me from malware?

No. It protects data when the device is off or locked, for example if it is stolen. Once you are signed in and the drive is unlocked, malware or an attacker with access to your session can read files. Use updates, security software and careful habits too.

Sources

George Bailey

George Bailey is the byline of the CyberExperts editorial desk, the team behind the CyberExperts Daily Brief. The desk covers vulnerabilities, breaches and security news from vendor advisories, CISA alerts and other primary sources, and links those sources in every story. Questions or corrections: [email protected].