What does HRESULT 0x8004255C (VDS_E_DRIVE_LETTER_NOT_FREE) mean?

 
Previous Next
VDS_E_DISK_REMOVEABLE_NOT_EMPTY VDS_E_EXTEND_MULTIPLE_DISKS_NOT_SUPPORTED

VDS_E_DRIVE_LETTER_NOT_FREE

VDS_E_DRIVE_LETTER_NOT_FREE means the drive letter selected for an access path is not available. The conflict can belong to another volume, removable device, network mapping or an assignment that is pending removal after restart.

Query the system drive-letter map before assignment

  • Use IVdsService::QueryDriveLetters for the candidate range.
  • Enumerate the target volume access paths to avoid duplicate assumptions.
  • After deleting a letter, verify that it is actually free before reassigning it.

Do not select the next alphabetic letter without checking its state. Automated storage tools should report the conflicting volume or device and allow an explicit alternative. Open handles can make a deleted letter persist until restart, so a successful delete request is not enough to prove immediate availability.

QueryDriveLetters · Drive-letter properties · AddAccessPath


Looking for a different code? Search another status or error code.