# dm-crypt (简体中文)

相关文章

- Disk encryption
- Removing System Encryption

翻译状态： 本文是英文页面 Dm-crypt 的翻译，最后翻译时间：2013-12-30，点击这里可以查看翻译后英文页面的改动。

本页面需要更新翻译，内容可能已经与英文脱节。要贡献翻译，请访问简体中文翻译组。

附注: please use the first argument of the template to provide more detailed indications.

This article focuses on how to set up encryption on Arch Linux using dm-crypt, which is the standard device-mapper encryption functionality provided by the Linux kernel.

## Common scenarios

This section introduces common scenarios to employ dm-crypt to encrypt a system or individual filesystem mount points. The scenarios cross-link to the other subpages where needed. It is meant as starting point to familiarize with different practical encryption procedures.

See Dm-crypt/Encrypting a non-root file system if you need to encrypt a device that is not used for booting a system, like a partition or a loop device.

See Dm-crypt/Encrypting an entire system if you want to encrypt an entire system, in particular a root partition. Several scenarios are covered, including the use of dm-crypt with the LUKS extension, plain mode encryption and encryption and LVM.

## Drive preparation

This step will deal with operations like securely erasing the drive and partitioning it.

See Dm-crypt/Drive preparation.

## Device encryption

This section covers how to manually utilize dm-crypt to encrypt a system through the cryptsetup command, also dealing with the usage of LUKS and keyfiles[broken link: invalid section].

See Dm-crypt/Device encryption.

## System configuration

This page illustrates how to configure mkinitcpio, the boot loader and the crypttab file when encrypting a system.

See Dm-crypt/System configuration.

## Swap device encryption

A swap partition may be added to an encrypted system, if required. The swap partition must be encrypted as well to protect any data swapped out by the system. This part details methods without and with suspend-to-disk support.

See Dm-crypt/Swap encryption.

## Specialties

This part deals with special operations like securing the unencrypted boot partition, using GPG or OpenSSL encrypted keyfiles, a method to boot and unlock via the network, or setting up discard/TRIM for a SSD.

See Dm-crypt/Specialties.

## See also

- cryptsetup FAQ - The main and foremost help resource, directly from the developers.
- FreeOTFE - Supports unlocking LUKS encrypted volumes in Microsoft Windows.

Categories:

- Security (简体中文)
- File systems (简体中文)

Hidden category:

- Pages with broken section links