Created
November 20, 2016 14:34
-
-
Save PetrGlad/6087799560b95a50fff1abd08cb1cd3b to your computer and use it in GitHub Desktop.
LUKS mount howto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <requires root> | |
apt install cryptsetup | |
blkid | grep 'crypto_LUKS' | |
# encrypted device --> LUKS device mapper --> mapped device --> mount | |
# to mount | |
cryptsetup luksOpen /dev/sda1 my-decrypted-storage | |
mount -t auto /dev/mapper/my-decrypted-storage /media/storage | |
# to unomunt | |
umount /media/storage | |
cryptsetup luksClose my-decrypted-storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To mount encrypted directory inside not encrypted filesystem use ecryptfs-* utilities.