1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

systemd-cryptsetup: add page (#15064)

This commit is contained in:
Lena 2024-12-07 23:34:30 +01:00 committed by GitHub
parent 9d7ceedf69
commit 78a8de758e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,22 @@
# systemd-cryptsetup
> Create or remove decrypted mappings of encrypted volumes. Equivalent of `cryptsetup open` and `cryptsetup close`.
> Arguments to this command are written exactly like a line in `/etc/crypttab`. It's used by systemd to unlock devices on boot.
> See also: `cryptsetup`.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-cryptsetup.html>.
- Open a LUKS volume and create a decrypted mapping at `/dev/mapper/mapping_name`:
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}}`
- Open a LUKS volume with additional options and create a decrypted mapping at `/dev/mapper/mapping_name`:
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} none {{crypttab_options}}`
- Open a LUKS volume with a keyfile and create a decrypted mapping at `/dev/mapper/mapping_name`:
`systemd-cryptsetup attach {{mapping_name}} {{/dev/sdXY}} {{path/to/keyfile}} {{crypttab_options}}`
- Remove an existing mapping:
`systemd-cryptsetup detach {{mapping_name}}`