Menu

auto-unmount in linux on shutdown

mww
2016-07-27
2017-06-05
  • mww

    mww - 2016-07-27

    is there an auto- unmount/dismount in veracrypt or should i always unmount veracrypt volumes manually before shutting down to prevent a broken filesystem/container?

    I found the answer for Windows in the veracrypt FAQ, but not for Linux / Ubuntu.

     
  • Bob

    Bob - 2017-03-13

    *bump
    Looking for this feature too. Doesn't appear to be available for linux.
    I have tried researching to jerry rig my own dismount version to run a simple script that just does "veracrypt -f -d" on reboot, shutdown, logoff, lockscreen, suspend.

    But I think you have to add such a script in /etc/init.d : and symlink it in /etc/rc0 :/etc/rc06 folders and tweak some dbus scripts for lxde lockscreen, I'm a lubuntu n00b so am finding learning the correct bash script syntax time consuming. I'v tried some attempts but have not been successfull.

    Have just binded the "veracrypt -d -f" command to a key shortcut in the meantime instead.

    I think this feature is pretty important for security and clean housekeeping in linux, as the Veracrypt volume still remains mounted on logoff, even retains the key stored in suspend/hibernate also doesn't allow the home drive to dismount cleanly in shutdown for some reason and possible file corruption if just shutdown and not dismounted.

    I've seen other apps like Openvpn load in their init scripts for tidy housekeeping on these folders. Would be good practice if veracrypt did some dismount init scripts too to trigger for events shutdown, reboot, suspend, logoff, lockscreen.

    May need to follow up with dev on this

     

    Last edit: Bob 2017-03-13
  • Tim Hitchins

    Tim Hitchins - 2017-06-05

    bump?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.