Partilhar via


Hard Disk Location Path Format

Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2

This topic describes the hard disk location-path format. This format is used to identify each disk in the DiskPart tool by using the location path. The location-path format is based on the physical connection to the computer.

For instructions that describe how to configure Windows® to identify a drive based on the location-path format, see Configure Multiple Hard Drives.

Location-Path Format

The basic syntax for the location path for disks that have a Small Computer System Interface (SCSI), Serial Attached SCSI (SAS), or Redundant Array of Independent Disks (RAID) bus type is as follows:

<PnP location path of the adapter>#<Bus Type>(P<Path ID>T<Target ID>L<LUN ID>)

The basic syntax for the location path for disks that have an Advanced Technology Attachment (ATA) or Serial ATA (SATA) bus type is as follows:

<PnP location path of the adapter>#<Bus Type>(C<Channel ID>T<Target ID>L<LUN ID>)

The following table defines the elements in the location path.

Element Description

<PnP location path of the adapter>

Path of the adapter. Retrieve the path by calling the SetupDiGetDeviceProperty with the DEVPKEY_Device_LocationPaths property.

#<Bus Type>

One of the following types: ATA, SCSI, SAS, or RAID.

P<Path ID>

PathId field of SCSI_ADDRESS. Retrieve the PathID by calling IOCTL_SCSI_GET_ADDRESS.

C<Channel ID>

PathId field of SCSI_ADDRESS. Retrieve the PathID by calling IOCTL_SCSI_GET_ADDRESS.

Note
For disks that use the ATA/SATA bus type, the Channel ID refers to the same field as PathID. The prefix C is still used.

T<Target ID>

TargetId field of SCSI_ADDRESS. Retrieve the TargetId by calling IOCTL_SCSI_GET_ADDRESS.

L<LUN ID>

Logical Unit Number (LUN) field of SCSI_ADDRESS. Retrieve the LUN by calling IOCTL_SCSI_GET_ADDRESS.

Examples

The following table gives an example of a location path for each bus or disk type:

Bus or disk type Location path

Integrated Development Environment (IDE), ATA, Parallel ATA (PATA), or SATA

PCIROOT(0)#PCI(0100)#ATA(C01T03L00)

SCSI

PCIROOT(0)#PCI(1C00)#PCI(0000)#SCSI(P00T01L01)

SAS

PCIROOT(1)#PCI(0300)#SAS(P00T03L00)

Peripheral Component Interconnect (PCI) RAID

PCIROOT(0)#PCI(0200)#PCI(0003)#PCI(0100)#RAID(P02T00L00)

See Also

Tasks

Configure Multiple Hard Drives

Other Resources

DiskPart Command-Line Syntax