Update dm-crypt.md

master
marten 2 years ago committed by GitHub
parent 7e978e7d73
commit 3b241bf94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,11 +8,12 @@ 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
## Open/Close an encrypted device
To open and map a device run `cryptsetup -y -v luksFormat /dev/sda1 crypt0` where
To open and map a device run `cryptsetup luksOpen /dev/sda1 crypt0` where
`/dev/sda1` is your encrypted device and `crypt0` is where it will be mapped to
with `dev/mapper/crypt0`.
Afterwards it can be closed by running `cryptsetup close /dev/mapper/crypt0`.
## Resize a LUKS encrypted volume

Loading…
Cancel
Save