Skip to content

Dismounting a drive from command line does not release the drive letter #1426

@DavidOfMA

Description

@DavidOfMA

Expected behavior

Dismounting the drive from the command line should work the same as from the UI and release the drive letter. This is how it worked in previous versions of Veracrypt and how it still works if I dismount from the UI.

Observed behavior

When I dismount a drive using the command line (for example, "C:\Program Files\veracrypt\veracrypt.exe" /dismount J: /q), the drive letter is not released. Explorer sees it as a Local Disk, even after the drive is removed with Safely Remove.

Steps to reproduce

  1. Mount an external disk drive in Veracrypt and assign it a drive letter J:
  2. "C:\Program Files\veracrypt\veracrypt.exe" /dismount J:
  3. The drive is dismounted but still appears as a Local Disk J: and cannot be re-assigned to J: in Veracrypt
  4. Remove the drive with Safely Remove
  5. The drive is still listed in Explorer as Local Disk J: but is invalid.

Screenshots

Your Environment

Windows 11 Pro, HP Laptop 17, 64GB RAM, WD external drives (various drives tried, behavior is the same in all of them)

Please tell us more about your environment

VeraCrypt version:
Veracrypt 1.26.15, 64-bit

Operating system and version:
Windows 11 Pro, 23H3, Build 22631.4169

System type:
64-bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions