Forum Discussion

ODmvQIT's avatar
ODmvQIT
Copper Contributor
May 18, 2024

subst disks cause stalling for diskpart and diskmgmt.msc

run diskpart.exe

enter "list vol" to check listing time

Import registry file

reboot

run diskpart.exe

enter "list vol" - there is stalling

 

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"Z:"="\\??\\C:\\Windows"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
"RelativePath"="Z:\\"
"Category"=dword:00000004
"Name"="Z_"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
"MaxCapacity"=dword:0000c7eb
"NukeOnDelete"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
"RelativePath"="Z:\\"
"Category"=dword:00000004
"Name"="Z_"

[HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{6603B7A0-ED77-4927-BB71-D25DE52BB9D7}]
"MaxCapacity"=dword:0000c7eb
"NukeOnDelete"=dword:00000000

 

 

This is for subst disks with a working trash bin.

 

  • Holaway's avatar
    Holaway
    Iron Contributor

    ODmvQIT 

    Try to remove Subst Drives: 

    1. Open Command Prompt as Administrator and type subst to list all current subst drives.
    2. To remove a subst drive, type subst [drive letter]: /d. For example, if your subst drive is Z:, you would type subst Z: /d.
    3. After removing subst drives, check if diskpart and diskmgmt.msc work normally.
  • Eommy's avatar
    Eommy
    Iron Contributor
    Remove subst Drives:

    Before launching Disk Management or Diskpart, remove any subst drives using the command:



    subst [drive_letter]: /d



    For instance, if you created a virtual drive Z:, you would use:



    subst Z: /d



    2. Use Disk Management/ Diskpart:

    After removing the subst drives, try launching Disk Management or Diskpart again.

    3. Restart Required Services:

    Sometimes, restarting the relevant services can help resolve issues:
    Open Task Manager (Ctrl + Shift + Esc).
    In the "Services" tab, look for services related to disks or storage (like Virtual Disk service), right-click, and select Restart.
  • vkeegan's avatar
    vkeegan
    Copper Contributor
    Are you trying to create a virtual disk on Windows 10? Using the subst command to create virtual drives on your system can sometimes cause issues with tools like DiskPart and Disk Management (diskmgmt.msc). This is because subst creates virtual drives that can confuse these tools, which expect to interact with physical or properly mounted logical drives. When DiskPart or Disk Management encounters these subst drives, they may try to query or interact with them in ways that can lead to stalling or unresponsiveness.
  • Kiantor's avatar
    Kiantor
    Copper Contributor
    Drive Letter Conflicts: When you use subst to map a drive letter to a directory or volume, it can cause conflicts with existing drive letters or volumes. This can lead to stalling or delays when trying to list volumes.
    Registry Corruption: If the registry is corrupted or contains incorrect information, it can cause issues with DiskPart and Disk Management. Importing a registry file can sometimes resolve these issues.
  • Poppysanna's avatar
    Poppysanna
    Copper Contributor
    This command maps a folder path to a virtual drive letter. While it's useful for quick access, it can cause confusion for disk management utilities that may not handle these virtual drives well.
  • Noahiin's avatar
    Noahiin
    Copper Contributor
    High CPU or Disk usage can slow down disk operations. Open Task Manager (Ctrl + Shift + Esc) and check if any process is using a lot of resources.

Resources