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