dm-crypt (简体中文) - ArchWiki

Jump to content

# dm-crypt (简体中文)

From ArchWiki

相关文章

- Disk encryption
- Removing System Encryption

翻译状态：本文是 Dm-crypt 的翻译。上次翻译日期：2019-11-22。如果英文版本有所更改，则您可以帮助同步翻译。

本文或本节需要翻译。要贡献翻译，请访问简体中文翻译团队。

附注： 请使用模板的第一个参数进行更详细的指示。（在 Talk:Dm-crypt (简体中文)# 中讨论）

dm-crypt is the Linux kernel's device mapper crypto target. From Wikipedia:dm-crypt, it is:

  a transparent disk encryption subsystem in [the] Linux kernel... [It is] implemented as a device mapper target and may be stacked on top of other device mapper transformations. It can thus encrypt whole disks (including removable media), partitions, software RAID volumes, logical volumes, as well as files. It appears as a block device, which can be used to back file systems, swap or as an LVM physical volume.

## 常见场景

这一部分介绍应用 dm-crypt 来加密整个系统或是某个文件系统挂载点的经典场景。这一部分是作为了解不同实际的加密程序的起点。

查看 dm-crypt/Encrypting a non-root file system (简体中文)，这个页面教你怎么加密一个不是用来启动系统的设备，比如一个 分区 或者一个 loop 设备.

查看 /Encrypting an entire system，这个页面教你怎么加密整个系统，特别是加密根分区（root分区）。这里面又有其他细分场景，包括用 LUKS 插件、plain加密模式以及配合LVM使用。

## Drive preparation

/Drive preparation deals with operations like securely erasing the drive and dm-crypt specific points for partitioning it.

## Device encryption

/Device encryption covers how to manually utilize dm-crypt to encrypt a system through the cryptsetup command. It covers examples of the Encryption options with dm-crypt, deals with the creation of keyfiles, LUKS specific commands for key management as well as for Backup and restore.

## System configuration

/System configuration illustrates how to configure mkinitcpio, the boot loader and the crypttab file when encrypting a system.

## Swap device encryption

/Swap encryption covers how to add a swap partition 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.

## Specialties

/Specialties 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, another for setting up discard/TRIM for a SSD, and sections dealing with the encrypt hook and multiple disks.

## See also

- dm-crypt - The project homepage
- cryptsetup - The LUKS homepage and FAQ - the main and foremost help resource.
- cryptsetup repository and release archive.

Categories:

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

Hidden category:

- Pages or sections flagged with Template:Translateme (简体中文)