Difference between revisions of "Dm-crypt"

From ArchWiki
Jump to: navigation, search
m (Drive Preparation: typo)
(Overview: rewrite)
Line 23: Line 23:
  
 
== Overview ==
 
== Overview ==
{{Warning|Encrypting a disk or partition will erase everything currently on that disk or partition:
+
{{Warning|Encrypting a disk or partition will erase everything currently on that disk or partition, make appropriate data backups prior to starting.
* Please make appropriate data backups prior to starting
+
Also be aware that encrypting a system might not only make the life of laptop thieves more miserable, but also yours if you don't plan ahead on:
Also be aware that encrypting a system might not only make the life of laptop thieves more miserable, but also yours if you don't plan ahead on  
+
* how to make secure backups of the encrypted system/-setup/data and
* how to make secure backups of the encrypted system/-setup/data and  
+
 
* how to access the encrypted system manually for maintenance.
 
* how to access the encrypted system manually for maintenance.
 
Keeping those points in mind while deciding on how to use encryption may help to decide on method and tools as well.}}
 
Keeping those points in mind while deciding on how to use encryption may help to decide on method and tools as well.}}
Line 32: Line 31:
 
The installation of a LUKS-encrypted system is largely the same as installing an unencrypted system. Routine creation of an encrypted system follows these general steps:
 
The installation of a LUKS-encrypted system is largely the same as installing an unencrypted system. Routine creation of an encrypted system follows these general steps:
  
::* Secure erasure of the hard disk drive(s)
+
* [[#Drive preparation|Preparation]] of the drive(s) where the system will be installed
::* Partitioning and setup of encryption ([[LVM]] optional)
+
* Creation of the needed [[#Device encryption|encryption layers]]
::* Routine package selection and installation
+
* [[#System configuration|Configuration]] of the system to handle the encryption  
::* System configuration to handle the encryption  
+
* Installation of the system following the [[Installation Guide]] or the [[Beginners' Guide]]
  
This page covers the first two points in a general way for different configuration options available with LUKS.
+
Note that the Arch installation media comes with all the tools required for system encryption.
 
+
The third and fourth point are covered in the later sections. Since the Arch installation media comes with all the tools required for system encryption, you can follow the [[Installation Guide]] or the [[Beginners' Guide]] after the encrypted partitions are set up. You will have to adjust the system configuration to be able to boot from your LUKS-volumes though, which is also covered in setup examples in the later sections.
+
  
 
==Drive preparation==
 
==Drive preparation==

Revision as of 13:49, 18 November 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: This article is currently under heavy restructuring: for its latest stable revision see Dm-crypt with LUKS (Discuss in Talk:Dm-crypt#)

Merge-arrows-2.pngThis article or section is a candidate for merging with Plain dm-crypt without LUKS.Merge-arrows-2.png

Notes: Assess the possibility of merging the common content between the two articles in order to avoid duplication. (Discuss in Talk:Plain dm-crypt without LUKS#Merge)

This article focuses on how to set up full system encryption on Arch Linux, using dm-crypt with LUKS.

dm-crypt is the standard device-mapper encryption functionality provided by the Linux kernel. It can be used directly by those who like to have full control over all aspects of partition and key management.

LUKS is an additional convenience layer which stores all of the needed setup information for dm-crypt on the disk itself and abstracts partition and key management in an attempt to improve ease of use.

For more details on how dm-crypt+LUKS compares to other disk encryption solution, see Disk Encryption#Comparison table.

Overview

Warning: Encrypting a disk or partition will erase everything currently on that disk or partition, make appropriate data backups prior to starting.

Also be aware that encrypting a system might not only make the life of laptop thieves more miserable, but also yours if you don't plan ahead on:

  • how to make secure backups of the encrypted system/-setup/data and
  • how to access the encrypted system manually for maintenance.
Keeping those points in mind while deciding on how to use encryption may help to decide on method and tools as well.

The installation of a LUKS-encrypted system is largely the same as installing an unencrypted system. Routine creation of an encrypted system follows these general steps:

Note that the Arch installation media comes with all the tools required for system encryption.

Drive preparation

This step will deal with operations like securely erasing the drive and partitioning it. See Dm-crypt with LUKS/Drive preparation.

Device encryption

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Add some introductory text with links to the most important subsections of Dm-crypt with LUKS/Device encryption. (Discuss in Talk:Dm-crypt#)

See Dm-crypt with LUKS/Device encryption.

Swap device encryption

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Add some introductory text with links to the most important subsections of Dm-crypt with LUKS/Swap encryption. (Discuss in Talk:Dm-crypt#)

See Dm-crypt with LUKS/Swap encryption.

System configuration

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Add some introductory text with links to the most important subsections of Dm-crypt with LUKS/System configuration. (Discuss in Talk:Dm-crypt#)

See Dm-crypt with LUKS/System configuration.

Examples

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: Add some introductory text with links to the most important subsections of Dm-crypt with LUKS/Examples. (Discuss in Talk:Dm-crypt#)

See Dm-crypt with LUKS/Examples.

Specialties

This part will deal with special operations like securing the unencrypted boot partition, backing up the cryptheader or using GPG or OpenSSL encrypted keyfiles. See Dm-crypt with LUKS/Specialties.

See also

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