From 517bf9599b573dd1b90ec56b7f9996221e2df69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 4 Apr 2017 09:05:49 +0200 Subject: [PATCH] add cryptsetup cheatsheat --- cheat/cheatsheets/cryptsetup | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cheat/cheatsheets/cryptsetup diff --git a/cheat/cheatsheets/cryptsetup b/cheat/cheatsheets/cryptsetup new file mode 100644 index 0000000..1f773a9 --- /dev/null +++ b/cheat/cheatsheets/cryptsetup @@ -0,0 +1,8 @@ +# open encrypted partition /dev/sdb1 (reachable at /dev/mapper/backup) +cryptsetup open --type luks /dev/sdb1 backup + +# open encrypted partition /dev/sdb1 using a keyfile (reachable at /dev/mapper/hdd) +cryptsetup open --type luks --key-file hdd.key /dev/sdb1 hdd + +# close luks container at /dev/mapper/hdd +cryptsetup close hdd