You are not logged in.

#1 2016-09-22 15:26:50

smonsays
Member
Registered: 2016-09-02
Posts: 24

Automount Veracrypt with Crypttab

Hey everyone,

I am trying to automatically mount a data partition which I encrypted using veracrypt. Therefore I oriented myself on the Wiki Article concerning Truecrypt, created a file in /etc with the password called volume.password and put the following line in my /etc/crypttab:

data           /dev/sda7                               /etc/volume.password    tcrypt, noauto

Arch then presents me a password prompt on startup. Can you help me to figure out the correct statement for crypttab?

Thank you!

Simon

EDIT:
If it helps, manually mounting with the command

cryptsetup --veracrypt open --type tcrypt /dev/sda7 veracrypt-volume

works fine

Last edited by smonsays (2016-09-22 15:28:52)

Offline

#2 2016-10-01 10:49:14

smonsays
Member
Registered: 2016-09-02
Posts: 24

Re: Automount Veracrypt with Crypttab

I still couldn't figure it out, anyone there who can help?

Offline

#3 2016-10-31 00:36:23

gh403
Member
Registered: 2012-09-15
Posts: 23

Re: Automount Veracrypt with Crypttab

I had the same problem!  Turns out systemd was lacking such an option, so I have implemented it myself.  Unless I'm mistaken, it will be included in systemd 232.

The new option is tcrypt-veracrypt.  For example:

data           /dev/sda7                               /etc/volume.password    tcrypt,noauto,tcrypt-veracrypt

See the pull request I made for more info.

Offline

#4 2016-10-31 18:57:59

smonsays
Member
Registered: 2016-09-02
Posts: 24

Re: Automount Veracrypt with Crypttab

Thanks for your effort, that is really nice to hear!

Offline

Board footer

Powered by FluxBB