mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
commit
2da5c2b710
1 changed files with 8 additions and 0 deletions
8
cheat/cheatsheets/cryptsetup
Normal file
8
cheat/cheatsheets/cryptsetup
Normal file
|
@ -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
|
Loading…
Reference in a new issue