1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-04 07:47:45 +02:00

dm-crypt: added opening devices

This commit is contained in:
TiynGER 2021-03-05 15:28:40 +01:00
parent fbcd4b622d
commit 4a403dfa8b

View File

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