mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
9 lines
326 B
Text
9 lines
326 B
Text
|
# 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
|