Menu

container and folder help

saj
2020-09-19
2020-09-22
  • saj

    saj - 2020-09-19

    Installed veracrypt onto linux mint version 20, 64 bit.

    Need some help and advice, if i create a container i have to choose size at creation and cannot make larger.

    I need to encrypt one folder on laptop using veracrypt and ensure this auto mounts on start up is this possible on linux as i know some options for windows versions only.

     

    Last edit: saj 2020-09-20
  • saj

    saj - 2020-09-21

    No one ?

     
  • minesheep

    minesheep - 2020-09-22

    "Need some help and advice, if i create a container i have to choose size at creation and cannot make larger." Yes thats true on linux you can not increase the size of container after creation

    "I need to encrypt one folder on laptop using veracrypt and ensure this auto mounts on start up is this possible on linux as i know some options for windows versions only."

    In short do not do that/you cannot do that.

    That should be possible, but not for linux beginner. Crypttab file in /etc/crypttab is the answer I think. You need to do some unique modifications to your linux system and I am not able to tell you what exactly (I dont know) (if you are linux pro you know how to get that info). How would you like this vc volume to automount? with password dialog at every time to start you linux OS? linux own encryption LUKS may be better choise in case of you want to do that kind of custom modding.

     
  • minesheep

    minesheep - 2020-09-22

    I got some "Do at your own risk" instructions.
    https://www.freedesktop.org/software/systemd/man/crypttab.html

    Read example 1!

    truecrypt /dev/sda2 /etc/container_password tcrypt
    since dm-crypt can open veracrypt devices this should be modifiable to veracrypt format
    mapping name here /dev/sdxy /etc/container_password tcrypt-veracrypt
    Making crypttab require password instead of reading it from file /etc/container_password
    mapping name here /dev/sdxy - tcrypt-veracrypt
    For example
    Encfolder /dev/sda10 - tcrypt-veracrypt
    Decrypts partition /dev/sda10 to special file /dev/mapper/Encfolder
    Instead of /dev/sda10 you use file for example /home/yourname/vcfolder
    Encfolder /home/username/vcfolder - tcrypt-veracrypt
    And with password enter timeout (60s)
    Encfolder /home/username/vcfolder - tcrypt-veracrypt,timeout=60

    Then you must run or automate the run of command
    sudo mount /dev/mapper/Encfolder /home/username/encrypted\ folder
    given that you have folder named encrypted folder in your home directory that encrypted container named vcfolder mounts to that folder

     

Log in to post a comment.

MongoDB Logo MongoDB