Luks encryption:
Unlike file-systems inside a partition of a storage device, encryption is a virtual container that can not be mounted on it’s own.
- To “Create” such a container you can use the whole storage device or a partition inside a storage device, or even a regular file.
- You can afterwards “Open” and “Close” such a container, which will become visible as an entry under
/dev/mapperand will be regarded as a raw storage device by the Operating System (kernel).
Because it is regarded as a raw storage device by the Operating System (kernel), you need to create a filesystem inside it to be able to mount that /dev/mapper/somename device…
Luks encryption functionality is accessed via the cryptsetup command.
See man cryptsetup for it’s usage and many pages on the internet that explain in details how that functionality is best used.
Feel free to comment with your opinions and eventual corrections.
![]()