1
0
mirror of https://github.com/cheat/cheat.git synced 2025-07-13 01:01:58 +02:00

Merge pull request from Mic92/patch-12

add cryptsetup cheatsheat
This commit is contained in:
Chris Allen Lane
2017-09-04 19:41:03 -04:00
committed by GitHub

@ -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