Menu

#475 Dismounting with administrator privileges leaves drive in inconsistent state

1.0
open
nobody
None
2021-12-07
2021-12-07
No

I'm using the latest version 1.25.4 on Windows.
I mount my drive (file based) using the GUI.
My backup program is running with administrator priviliges. It unmounts the drive using the following command: "C:\Program Files\VeraCrypt\VeraCrypt.exe" /d d /q /f /s
After that, the drive will not disappear, but it will not be accessible anymore. It will also still be shown in the GUI, and then trying to dismount it there won't work. Same without the /f switch.

I tried executing the unmount command in a windows command shell. If the shell is run unprivileged, everything works as expected. When I execute cmd.exe with "Run as Administrator", the dismount command produces the same inconstistent state.

Workaround: cmd.exe /c "set __COMPAT_LAYER=RunAsInvoker && VeraCrypt.exe /d d /q /f /s"

Discussion


Log in to post a comment.

Auth0 Logo