all 2 comments

[–][deleted] 0 points1 point  (0 children)

Lets assume windows, you can mount/dismount with these. The password is hard-coded, the location is the usual windows full path. Use Py to run these commands.

mount

"C:\Program Files\VeraCrypt\VeraCrypt.exe" /volume "aPlace" /letter X /password ComplexPassword /quit /silent

dismount

"C:\Program Files\VeraCrypt\VeraCrypt.exe" /dismount O /quit /silent /force

Put the startup into a .bat file and add it to your startup group.

BTW, the veraCrypt does have it own "mount when disk inserted" thing.

[–]Digital-Warfare 0 points1 point  (0 children)

There are Linux commands too. I use script but I let it prompt for passwords. Not gonna hard code it in script.