I have a Veracrypt encrypted volume on a USB drive (as a file on it, not the entire drive). What I am ideally looking for is when I plug in the USB drive, Veracrypt should attempt to mount the volume and ask me for the password. Is there a way to do this either via some setting or by using CLI commands?
I'm on Ubuntu 18.04.4 LTS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a Veracrypt encrypted volume on a USB drive (as a file on it, not the entire drive). What I am ideally looking for is when I plug in the USB drive, Veracrypt should attempt to mount the volume and ask me for the password. Is there a way to do this either via some setting or by using CLI commands?
I'm on Ubuntu 18.04.4 LTS.
Should this post be in the "Technical Topics" forum?
AFAIK, in Linux there is no option to mount favorite volumes when its host device gets connected (as there is in Windows).
A simple shell script, located on your desktop, would enable you to mount the volume after you plug the USB drive in. Something like:
Save the script as eg mountvol.sh, and make it executable.
Post back if you need me to provide more details!
Thanks a lot. I have set this to trigger when the USB drive is mounted. That solves my use case.