cryptsetup open

Create a decrypted mapping of an encrypted volume. Note: with TRIM enabled, minimal data leakage in form of freed block information, perhaps sufficient to determine the filesystem in use may occur. However, you still most likely want to enable it, because the data inside is still safe and SSDs without TRIM will wear out faster. More information: https://manned.org/cryptsetup-open.

cryptsetup open {{/dev/sdXY}} {{mapping_name}}

cryptsetup open --key-file {{path/to/file}} {{/dev/sdXY}} {{mapping_name}}

cryptsetup open --allow-discards {{/dev/sdXY}} {{mapping_name}}

cryptsetup open --allow-discards --persistent {{/dev/sdXY}} {{mapping_name}}

cryptsetup open --readonly {{/dev/sdXY}} {{mapping_name}}