diff options
author | neodarz <neodarz@neodarz/net> | 2018-11-24 16:51:02 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz/net> | 2018-11-24 16:51:02 +0100 |
commit | 59f0e9a65639c3aff85ea84aafb5ce8943445334 (patch) | |
tree | 78343c8f6b43edea55549e63fb0c4e15d156a6b1 /cheat/.cheat/cryptsetup | |
parent | cb58019bee2585e6d47bd995baeb93fa00622f8b (diff) | |
download | dotfiles_ascii-59f0e9a65639c3aff85ea84aafb5ce8943445334.tar.xz dotfiles_ascii-59f0e9a65639c3aff85ea84aafb5ce8943445334.zip |
Add some cheat commands
Diffstat (limited to 'cheat/.cheat/cryptsetup')
-rw-r--r-- | cheat/.cheat/cryptsetup | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cheat/.cheat/cryptsetup b/cheat/.cheat/cryptsetup new file mode 100644 index 0000000..a5ccc69 --- /dev/null +++ b/cheat/.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 |