Browse Source

Add cryptsetup.md.

Jacek Wielemborek 8 years ago
parent
commit
85eae95f2f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      pages/linux/cryptsetup.md

+ 11 - 0
pages/linux/cryptsetup.md

@@ -0,0 +1,11 @@
+# cryptsetup
+
+> Manage plain dm-crypt and LUKS encrypted volumes.
+
+- Format a drive (or a file) to make it a LUKS volume:
+
+`cryptsetup luksFormat {{path_to_luks_volume_to_be}}`
+
+- Open a volume so that you can access it decrypted on the fly at /dev/mapper/{{a}}:
+
+`cryptsetup luksOpen {{path_to_luks_volume_to_be}} {{a}}`