Can I access to a disk drive using volume ID instead of a drive letter in Windows? It could be very useful for external drives.

  • For the partitions which don't have any drive letter assigned, volume IDs are the only way to access them. You cannot assign drive letter to a new partition if you have already consumed 26 letters of English alphabet through your already existing partitions. So in such a case, they will not be just useful but they will be the ONLY way to access them. – RBT Oct 26 '16 at 6:03

You can use mountvol in the command prompt to get the ID of the volume you want to access.

enter image description here

This IDs can be used to open an explorer window, independent from the drive letter

enter image description here

To create a shortcut to the drive, create a new batch file with this content:

start \\?\Volume{1b3b1146-4076-11e1-84aa-806e6f6e6963}\
  • Yes, it is what I searched for long! Now I just need to call the mountvol command to get all volume ID's. Then using path like "\\?\Volume{}" I can access to drive with needed ID (if it presents). Thank you! – olvin Aug 24 '12 at 8:10
  • 1
    Yes, this method works with Explorer and while copying files with command line. But unfortunatelly TrueCrypt does not accept such path to a keyfile =( – olvin Aug 26 '12 at 20:55
  • Unfortunately it only works if you have NetBIOS and the RPC Locator running, so this won’t work if you have hardened Windows. In addition, you’ll probably need to keep several network-related services and drivers running to use it (Workstation, Computer Browser, Server, TCP/IP NetBIOS Helper, NetBT, DHCP, DNS, etc.) This is dumb since these are local volumes. :-| – Synetech Apr 12 '14 at 22:30
  • 1
    Well.. TrueCrypt does support this for reliably mounting the right drive: @"%ProgramFiles%\TrueCrypt\TrueCrypt.exe" /v \\?\Volume{4033aabd-1234-5678-a1234567890}\ /lr /c n /q – Frank Nocke Oct 11 '15 at 13:12
  • @Synetech: I can't replicate that; the answer as posted works fine for me even with NetBIOS and the RPC Locator, and everything else network-related I could find, disabled. (Perhaps you were mistaking the kernel path for a UNC path? Or it was only a problem on an earlier version of Windows?) – Harry Johnston Jan 11 '16 at 21:14

In PowerShell, use Get-Volume piped through Format-List like this:

get-volume | fl 

will give you everything you need, for instance this SYSTEM RESERVED volume on one of my machines:

ObjectId             : {1}\\ACER-M3900\root/Microsoft/Windows/Storage/Providers_v2\WSP_Volume.ObjectId="{5b16a307-de54-11e7-8aeb-806e6f6e6963}:VO:\\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\"
PassThroughClass     :
PassThroughIds       :
PassThroughNamespace :
PassThroughServer    :
UniqueId             : \\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\
AllocationUnitSize   : 4096
DedupMode            : NotAvailable
DriveLetter          :
DriveType            : Fixed
FileSystem           : NTFS
FileSystemLabel      : SYSTEM RESERVED
FileSystemType       : NTFS
HealthStatus         : Healthy
OperationalStatus    : OK
Path                 : \\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\
Size                 : 105058304
SizeRemaining        : 33992704
PSComputerName       :

I prefer to use absolute drive letters for flash drives. There are adequate assignments for just about anybody unless you have 20 or more flash drives.

In Windows 7 use Windows to format and assign a drive label or if the drive already has a label, use command line "Label (drive letter) to give it a label of your choice.

Then go to control panel, system and security, administrative tools, computer management, disk management to select the drive with the label you created by right clicking on the drive, select change drive letter and paths and assign the volume to a specific drive letter. It will always mount to that drive letter if it is available.

I have labeled drives that contained live data and the labeling did not affect the existing data in any way. It seems to work just like it did on floppies back in the good old days

protected by Community Nov 11 '16 at 23:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.