Does anyone know the format of a device name for a disk or a partition?

I know in Microsoft Cluster, one example is in the form of
"Disk##Partition##" for a partition of a physical disk resource, if the
partition is not assigned with a drive letter. But I also saw sometimes the
volume number becomes part of a device name (not in microsoft cluster).

My question is, as far as Microsoft cluster is concerned, are there any
other formats (except for "Disk##Partition##" ) of device name used for a
disk partition or a volume when the drive letter is not assigned?

Any advice will be appreciated!

Michelle

Re: Device Name of a disk or partition by Peter

Peter
Fri Feb 11 15:43:20 CST 2005

it's opaque and subject to change at a whim. so you probably don't want to
write any code that relies on it.

If you can say what you're trying to do, someone on this alias might be able
to help you determine how to achieve it.

-p

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Michelle" <Michelle@discussions.microsoft.com> wrote in message
news:5E4C0C6F-F71D-4C63-9AAC-CD189DE2CC53@microsoft.com...
> Does anyone know the format of a device name for a disk or a partition?
>
> I know in Microsoft Cluster, one example is in the form of
> "Disk##Partition##" for a partition of a physical disk resource, if the
> partition is not assigned with a drive letter. But I also saw sometimes
> the
> volume number becomes part of a device name (not in microsoft cluster).
>
> My question is, as far as Microsoft cluster is concerned, are there any
> other formats (except for "Disk##Partition##" ) of device name used for a
> disk partition or a volume when the drive letter is not assigned?
>
> Any advice will be appreciated!
>
> Michelle



Re: Device Name of a disk or partition by Michelle

Michelle
Mon Feb 14 11:07:05 CST 2005

I am trying to find the mount point of a partition based on the device name
obtained from Microsoft Cluster. As far as I know, if a drive letter is not
assigned to the partition, the device name returned by Microsoft Cluster is
formatted as "Disk##Partition##". To get the mount point, at least one way I
can do is:

1. Parse the device name to a format like
"\\?\GLOBALROOT\device\Harddisk##\Partition##\".

2. GetVolumeNameForVolumeMountPoint() - Using the disk and partition number.
I can use this function to get the unique volume name i.e. pass
\\?\GLOBALROOT\device\Harddisk3\Partition1\
and get back something like
\\?\Volume{1938fbd3-7961-11d9-b611-0050dabfbe25}\

3. GetVolumePathNamesForVolumeName() - Using the unique volume name. I can
use this function to get the path name i.e. pass
\\?\Volume{1938fbd3-7961-11d9-b611-0050dabfbe25}\ and get back the mount
point, eg. Z:\mnt\

By this way, my code has to rely on the format of the device name returned
by Microsoft Cluster. I have tried to use the volume serial number to get the
mount point. But the serial number is only unique in one machine. In a
cluster environment, there might be two partitions formatted by different
hosts and have the same serial number.

Are there other ways of getting the partition's mount point based on the
information known to the microsoft cluster? Or, are there any good ideas to
refine the above implementation?

Please help!

Michelle

"Peter Wieland [MSFT]" wrote:

> it's opaque and subject to change at a whim. so you probably don't want to
> write any code that relies on it.
>
> If you can say what you're trying to do, someone on this alias might be able
> to help you determine how to achieve it.
>
> -p
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Michelle" <Michelle@discussions.microsoft.com> wrote in message
> news:5E4C0C6F-F71D-4C63-9AAC-CD189DE2CC53@microsoft.com...
> > Does anyone know the format of a device name for a disk or a partition?
> >
> > I know in Microsoft Cluster, one example is in the form of
> > "Disk##Partition##" for a partition of a physical disk resource, if the
> > partition is not assigned with a drive letter. But I also saw sometimes
> > the
> > volume number becomes part of a device name (not in microsoft cluster).
> >
> > My question is, as far as Microsoft cluster is concerned, are there any
> > other formats (except for "Disk##Partition##" ) of device name used for a
> > disk partition or a volume when the drive letter is not assigned?
> >
> > Any advice will be appreciated!
> >
> > Michelle
>
>
>