systemd-cryptsetup
linux
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 info →Examples (4)
Open a LUKS volume and create a decrypted mapping at `/dev/mapper/mapping_name`
systemd-cryptsetup attach mapping_name /dev/sdXYOpen 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_optionsOpen 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_optionsRemove an existing mapping
systemd-cryptsetup detach mapping_namemade by @shridhargupta | data from tldr-pages