I‘ve got a USB flash drive as an encrypted non-system drive with an outer and a hidden volume.
Mounting the outer volume by means of the VeraCrypt GUI doesn‘t cause any problems,
neither when only mounting the outer volume
nor when mounting the outer volume with the Mount Option „Protect hidden volume against damage caused by writing to outer volume“.
I also tried to mount the outer volume (on Windows) by means of a script with command line commands. The script reads:
VeraCrypt /volume \Device\Harddisk2\Partition1 /l y /q
pause
rem doing something
VeraCrypt /d y /f /q
On invoking the first VeraCrypt command (1st line) I‘m presented with the small „Enter Password for [...]“ dialog. After trying to mount the outer volume with the Mount Option „Protect hidden volume against damage caused by writing to outer volume“ the following message is displayed.
WARNING: VeraCrypt Background Task is disabled. After you exit VeraCrypt, you will not be notified if damage to hidden volume is prevented.
Note: You may shut down the Background Task anytime by right-clicking the VeraCrypt tray icon and selecting 'Exit'.
Enable VeraCrypt Background Task?
Yes No
If I choose No and then confirm the „Enter Password for [...]“ dialog, everything works correct but of course I lack hidden volume protection.
If I choose Yes and then confirm the „Enter Password for [...]“ dialog, the cursor in the Windows Console jumps to the next line but nothing happens anymore. The VeryCrypt application and/or the script seem hung up.
The VeraCrypt GUI does not pop up. But the VeryCrypt icon has now appeared in the Windows system tray and after clicking on it the VeraCrypt GUI pops up showing that the outer volume obviously has been mounted and even with the above mentioned mount option. Also the file manager shows the mounted volume and its contents correctly.
What‘s going on? How can the script work well as I want to?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I‘ve got a USB flash drive as an encrypted non-system drive with an outer and a hidden volume.
Mounting the outer volume by means of the VeraCrypt GUI doesn‘t cause any problems,
I also tried to mount the outer volume (on Windows) by means of a script with command line commands. The script reads:
VeraCrypt /volume \Device\Harddisk2\Partition1 /l y /q
pause
rem doing something
VeraCrypt /d y /f /q
On invoking the first VeraCrypt command (1st line) I‘m presented with the small „Enter Password for [...]“ dialog. After trying to mount the outer volume with the Mount Option „Protect hidden volume against damage caused by writing to outer volume“ the following message is displayed.
WARNING: VeraCrypt Background Task is disabled. After you exit VeraCrypt, you will not be notified if damage to hidden volume is prevented.
Note: You may shut down the Background Task anytime by right-clicking the VeraCrypt tray icon and selecting 'Exit'.
Enable VeraCrypt Background Task?
Yes No
If I choose No and then confirm the „Enter Password for [...]“ dialog, everything works correct but of course I lack hidden volume protection.
If I choose Yes and then confirm the „Enter Password for [...]“ dialog, the cursor in the Windows Console jumps to the next line but nothing happens anymore. The VeryCrypt application and/or the script seem hung up.
The VeraCrypt GUI does not pop up. But the VeryCrypt icon has now appeared in the Windows system tray and after clicking on it the VeraCrypt GUI pops up showing that the outer volume obviously has been mounted and even with the above mentioned mount option. Also the file manager shows the mounted volume and its contents correctly.
What‘s going on? How can the script work well as I want to?