Make it so we can use Volume ID to mount a drive/partition

Issue #4 resolved
Alexandre Devilliers created an issue

This was introduced in 1.19 (I think, April 2016). With /v argument, the ID:XXXX...XXXX (SHA-256 of header which is the volume ID) VeraCrypt command line will scan connected device and mount the corresponding one.

I tried forcing the ID:xxx value to mount it but it crashed with 1.0.1.0.

************** Exception Text **************
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
   at KeePassVeraCryptMount.PwEntryExtension.ToVeraCryptArguments(PwEntry entry)
   at KeePassVeraCryptMount.KeePassVeraCryptMountExt.OnVeraCryptMenuItemClicked(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I hope this can be added. Here is the thread in VeraCrypt code base with more explanations if needed: https://veracrypt.codeplex.com/workitem/112

Comments (5)

  1. Log in to comment