Letters by Partition Number

USBDLM

 

Drive Letters by Partition Number


 

Logical drives on hard disks have a partition number, the UsbDriveInfo tool shows them as part of the Partition Name:

 

MountPoint        = E:\

Volume Label      = Backup

Volume Size       = 18 GB (NTFS, 4 KB clusters, 3.5 GB free)

Volume Serial     = 78B8-C37E

Disk Size         = 100 GB

Volume Name       = \\?\Volume{770f7510-bce2-11df-8471-806d6172696f}\

Partition Name    = \Device\Harddisk0\Partition2

 

And ready for copy&paste among the criteria:

 

          ---------------- USBDLM Criteria -------------------

MinVolumeSize=17G

MaxVolumeSize=19G

MinDriveSize=99G

MaxDriveSize=101G

DeviceID=USBSTOR\DISK&VEN_GEN&PROD_GEN&REV_001\1234567890AB&0

DeviceID=USB\VID_04B4&PID_6830\1234567890AB

DeviceID=Kingston DataTraveler 111 USB Device

PortName=6-3

PortName=PCI\VEN_8086&DEV_283A&SUBSYS_20AB17AA&REV_03\3&21436425&0&D7-3

VolumeLabel=Backup

VolumeSerial=78B8C37E

DriveType=FIXED

BusType=USB

PartitionNumber=2

 

 

 

Sample for hiding partition number 2 on a USB hard drive with DeviceID USB\VID_04B4&PID_6830\1234567890AB:

 

[DriveLetters]

DeviceID=USB\VID_04B4&PID_6830\1234567890AB

PartitionNumber=2

Letter1=-

 

Do not configure Letter=-- because this would remove the whole device!

 

 

The PartitionNumber is checked on Fixed and Removable drives only. On Removable drives the number is always 1 or 0 because Windows since Windows 2000 does not support multiple partitions on 'removable' drives.