From e0c0d4b38cde20e2300e86b69414dd9851b47456 Mon Sep 17 00:00:00 2001 From: neodarz Date: Thu, 5 Sep 2019 07:05:07 +0200 Subject: ooo --- dotfiles/cheat/cryptsetup | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dotfiles/cheat/cryptsetup (limited to 'dotfiles/cheat/cryptsetup') diff --git a/dotfiles/cheat/cryptsetup b/dotfiles/cheat/cryptsetup new file mode 100644 index 0000000..a5ccc69 --- /dev/null +++ b/dotfiles/cheat/cryptsetup @@ -0,0 +1,11 @@ +# 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 + +# create encrypted disk +cryptsetup luksFormat --type luks2 /dev/sdd -- cgit v1.2.1