Cryptsetup
Create
sudo cryptsetup luksFormat -c aes-cbc-essiv:sha256 -s 256 /dev/sdb2 sudo cryptsetup luksOpen /dev/sdb2 luks sudo mkfs.ext4 -L ENCRYPTED /dev/mapper/luks sudo mount /dev/mapper/luks /mnt/secure
Mount
sudo cryptsetup luksOpen /dev/sdb2 luks sudo mount /dev/mapper/luks /mnt/secure
Unmount
sudo umount /mnt/secure sudo cryptsetup luksClose luks
Acknowledgments
Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!
Daiphys Technologies LLC - https://www.daiphys.com/