From 4a403dfa8bd4b6bb6dffecd83bf44c34c0256e47 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 5 Mar 2021 15:28:40 +0100 Subject: [PATCH] dm-crypt: added opening devices --- wiki/linux/dm-crypt.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wiki/linux/dm-crypt.md b/wiki/linux/dm-crypt.md index 41c4a28..091f5c1 100644 --- a/wiki/linux/dm-crypt.md +++ b/wiki/linux/dm-crypt.md @@ -7,3 +7,9 @@ To create a encrypted device simply run: `cryptsetup -y -v luksFormat /dev/sda2`. Where `/dev/sda2` is the device you want to create. + +## Open an encrypted device + +To open and map a device run `cryptsetup -y -v luksFormat /dev/sda1 crypt0` where +`/dev/sda1` is your encrypted device and `crypt0` is where it will be mapped to +with `dev/mapper/crypt0`.