Para abrir e montar um contêiner criptografado usando o modo simples:
sudo cryptsetup plainOpen Container DecryptedContainter
sudo mount /dev/mapper/DecryptedContainer /mnt
Quando terminar, desmonte e feche o contêiner:
sudo umount /mnt
sudo cryptsetup plainClose DecryptedContainer
Use os nomes apropriados para Container
e DecryptedContainer
e o ponto de montagem correto em vez de /mnt
.
De man cryptsetup
:
The following are valid plain device type actions:
open --type plain <device> <name>
create <name> <device> (OBSOLETE syntax)
Opens (creates a mapping with) <name> backed by device <device>.
<options> can be [--hash, --cipher, --verify-passphrase, --key-
file, --keyfile-offset, --key-size, --offset, --skip, --size,
--readonly, --shared, --allow-discards]
Example: 'cryptsetup open --type plain /dev/sda10 e1' maps the
raw encrypted device /dev/sda10 to the mapped (decrypted) device
/dev/mapper/e1, which can then be mounted, fsck-ed or have a
filesystem created on it.