Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Associate volume labels to physical disks

$
0
0

Hello,

I need to match a label to a partition or volume on a physical disk.

I can do it using diskpart if the label is only 11 characters length, bellow there is a print where we can see only System Rese instead of System Reserved. Is there a way to get the complete labels and still knowing to what disk it's refered to?

DISKPART> select disk 0

Disk 0 is now the selected disk.

DISKPART> detail disk

VMware Virtual disk SCSI Disk Device
Disk ID: E5EAA78A
Type   : SAS
Status : Online
Path   : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1500)#PCI(0000)#SAS(P00T00L00)
Current Read-only State : No
Read-only  : No
Boot Disk  : Yes
Pagefile Disk  : Yes
Hibernation File Disk  : No
Crashdump Disk  : Yes
Clustered Disk  : No

Volume ###  Ltr  Label             Fs       Type          Size       Status     Info
----------  ---  -----------            -----    ----------    -------   ---------   --------
Volume 1             System Rese NTFS   Partition    350 MB  Healthy    System
Volume 2        C                        NTFS   Partition     39 GB   Healthy    Boot

Thanks in advance for any help


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>