Hard disk UUID
Does hard disks have UUID/GUID on windows platform? I looked at the
Win32_DiskDrive class and "details" in diskpart utility output. But couldn't find any properties that would be show the UUID. I can see that Win32_DiskDrive::Signature is same as DiskPart::Device ID but they are unsigned int 32. Win32_DiskDrive::DeviceID
also doesn't look like GUID.
Now when I look at the VHD image format specification, it mentions that the footer (of a VHD) contains a field called "Unique ID" which is a 128-bit UUID.
So my questions are whether there is UUID for each physical disk on windows? If so, how to get it.
If there is no UUID, what is the VHD spec is talking about? Thanks.
?: How would I post a question to multiple forums within same forum category?
January 26th, 2012 11:18am
Hi,
Run mountvol command and you will be able to get the volume GUID in the output.
Following is one example:
\\?\Volume{47ba2efc-2db1-11e0-88f8-806e6f6e6963}\
C:\
\\?\Volume{47ba2efd-2db1-11e0-88f8-806e6f6e6963}\
D:\
Best Regards,
Vincent Hu
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2012 9:05pm
I'm talking about the disk UUID. I think that is whas VHD image format specification refers to. This is what VHD spec says.
Unique ID
Every hard disk has a unique ID stored in the hard disk. This is used to identify the hard disk. This is a 128-bit universally unique identifier (UUID). This field is used to associate a parent hard disk image with its differencing hard disk image(s).
Mountvol gives guid for the formated partion and VHD can have more than one of those.
MD
January 27th, 2012 10:50am
Hi,
Now when I look at the VHD image format specification, it mentions that the footer (of a VHD) contains a field called "Unique ID" which is a 128-bit
UUID.
>>Where did you get the format specification?
Best Regards,
Vincent Hu
Free Windows Admin Tool Kit Click here and download it now
February 1st, 2012 2:01am
Download:
VHD Specs - Microsoft Download Center - Download ...
Above link let you download "Virtual Hard Disk Format Spec_10_18_06.doc" which describes the VHD specs.
February 21st, 2012 2:14pm
I think this is how microsoft contructs Disk GUID out of MBR Disks UniqueID (Disk Identifier) [got info when dealing with wbadmin and Diskpart]
UniqueID of our Disk as reported by DISKPART -
DISKPART> detail disk
VMware, VMware Virtual S SCSI Disk Device
Disk ID: 4E969FEA
Now, wbadmin reports GUID for our same Disk as:
Disk name: VMware, VMware Virtual S SCSI Disk Device
Disk number: 2
Disk identifier: {4e969fea-0000-0000-0000-000000000000}
Total space: 40.00 GB
Used space : 177.41 MB
Volumes: F:[Data-Disk-01]
and i suppose - this {4e969fea-0000-0000-0000-000000000000} - is 128 Bits in strength.
So they simply appends Zero to the GUID leftover bits.
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2012 6:15am