Cryptsetup Quick Guide

Creation of a LUKS volume

cryptsetup luksFormat ${DEVICE_PATH}

Mounting of a LUKS volume

cryptsetup luksOpen ${DEVICE_ID} ${MOUNT_POINT_NAME} --key-file ${OPTIONAL_KEY_FILE}

Unmounting of a LUKS volume

cryptsetup luksClose ${VOLUME_NAME}