The Harddisk# and DR# number both refer to a Drive (not a Partition or Volume)
- this is normally a physical drive (HDD, SSD, USB)
- each Drive may contain multiple partitions each of which may have a drive letter
As stated the Harddisk# item matches the Disk# id shown by Windows Disk Management.
The numbers are allocated in real time as disks are detected or connected.
For internal HDDs, both the Harddisk# and DR# number normally remain fixed (unless you swap motherboard socket connections).
Harddisk# numbers for removable drives (flashdrives and USB drives):
- the next available number is allocated during connection (filling gaps if present)
- if a drive is disconnected the number is removed leaving a gap
- once a drive is disconnected there is no record of previously allocated numbers
The DR# number is also dynamically allocated but follows different rules:
- numbers are allocated sequentially and are not reused while Windows is booted
- each time a removable drive is disconnected and reconnected the DR# number increments
Initially the Harddisk# and DR# number will match:
- but active use of removable drives causes the DR# numbers to rise
- only when Windows restarts does the DR# number allocation get reset
- the DR# number is not reset during User Logoff events only at a Windows Restart
Once disconnected there is no way to tie a DR# number to a physical device. A removable drive may have been allocated many different DR# numbers in the past.
\Device\HardDisk0\...
etc.). You will also see things like the device ID and other manufacturer data.