Difference between revisions of "Cryptsetup"

From Useful Things
Jump to: navigation, search
(Created page with "== Common arguments == <pre> --verify-passphrase, -y When interactively asking for a passphrase, ask for it twice and complain if both inputs do...")
 
Line 14: Line 14:
  
 
== Create LUKS partition ==
 
== Create LUKS partition ==
 
+
<source lang="bash">
 +
cryptsetup luksFormat -y -v /path/to/device
 +
</source>
  
 
== Mount LUKS partition ==
 
== Mount LUKS partition ==

Revision as of 13:36, 18 August 2014

Common arguments

--verify-passphrase, -y
              When interactively asking for a passphrase, ask for it twice and
              complain  if  both  inputs do not match. Advised when creating a
              regular mapping for the first time, or when running  luksFormat.
              Ignored on input from file or stdin.
--verbose, -v
              Print more information on command execution.

Create LUKS partition

cryptsetup luksFormat -y -v /path/to/device

Mount LUKS partition

First unlock the partition

cryptsetup luksOpen /path/to/device device-name

Then mount it

mount /dev/mapper/device-name /path/to/mountpoint