1. Create or copy Veracrypt container:
/home/USER/Documents/cont/test_202109
Change USER and path as required
2. Edit crypttab
Code: Select all
sudo nano /etc/crypttab
Code: Select all
volume_vc1 /home/USER/Documents/cont/test_202109 none tcrypt-veracrypt
3. Create mount point
Code: Select all
sudo mkdir /mnt/volume_vc1
Code: Select all
/dev/mapper/volume_vc1 /mnt/volume_vc1 auto nosuid,nodev,nofail 0 0
6. Browse to
/mnt/volume_vc1
7. To check if a container is mounted:
Code: Select all
mount |grep /dev/mapper/
# sample output
/dev/mapper/volume_vc1 on /mnt/volume_vc1 type ext4 (rw,nosuid,nodev,relatime)
Code: Select all
sudo umount /dev/mapper/volume_vc1