A question about Diskpart


  1. Posts : 189
    Windows 10 Pro 64 bit
       #1

    A question about Diskpart


    Hello,

    I found Diskpart very useful but I still don't understand how I can make it show the labels of the disk.

    I mean, when I do "LIST DISK" I obtan the disks inside the PC in a numerical way and their size.

    Also, if they are GPT or not.

    But in the case we have some disk with the SAME SIZE it's easy to confuse and it's also Dangerous.

    How I can have also at least the LABELS of the disks in order to avoid to damage something? In order to select the RIGHT DISK without any issue?
      My Computer


  2. Posts : 5,478
    2004
       #2

    Disks don't have labels - volumes do.

    If you select the volume you can use the detail volume command to see what disk it is on.

    Code:
    PS C:\WINDOWS\system32> diskpart
    
    Microsoft DiskPart version 10.0.15063.0
    
    Copyright (C) Microsoft Corporation.
    On computer: X201
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          232 GB      0 B
      Disk 1    Online           29 GB      0 B
    
    DISKPART> list volume
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  -----
      Volume 0         System Rese  NTFS   Partition    500 MB  Healthy    Syste
      Volume 1     C                NTFS   Partition     64 GB  Healthy    Boot
      Volume 2     D                NTFS   Partition    164 GB  Healthy
      Volume 3     E   Rescue       NTFS   Partition   4495 MB  Healthy
      Volume 4     F   SanDisk32    exFAT  Removable     29 GB  Healthy
    
    DISKPART> select volume F
    
    Volume 4 is the selected volume.
    
    DISKPART> detail volume
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
    * Disk 1    Online           29 GB      0 B
    
    Read-only              : No
    Hidden                 : No
    No Default Drive Letter: No
    Shadow Copy            : No
    Offline                : No
    BitLocker Encrypted    : No
    Installable            : Yes
    
    Volume Capacity        :   29 GB
    Volume Free Space      :   16 GB
    
    DISKPART> select volume E
    
    Volume 3 is the selected volume.
    
    DISKPART> detail volume
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
    * Disk 0    Online          232 GB      0 B
    
    Read-only              : No
    Hidden                 : No
    No Default Drive Letter: No
    Shadow Copy            : No
    Offline                : No
    BitLocker Encrypted    : No
    Installable            : Yes
    
    Volume Capacity        : 4494 MB
    Volume Free Space      : 2912 MB
    
    DISKPART>

    or you can select a disk and use detail disk to show the volumes on it (and the disk ID if that is any help).
    Code:
    DISKPART> select disk 0
    
    Disk 0 is now the selected disk.
    
    DISKPART> detail disk
    
    Samsung SSD 840 EVO 250GB
    Disk ID: 6D282B59
    Type   : SATA
    Status : Online
    Path   : 0
    Target : 0
    LUN ID : 0
    Location Path : PCIROOT(0)#PCI(1F02)#ATA(C00T00L00)
    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 0         System Rese  NTFS   Partition    500 MB  Healthy    System
      Volume 1     C                NTFS   Partition     64 GB  Healthy    Boot
      Volume 2     D                NTFS   Partition    164 GB  Healthy
      Volume 3     E   Rescue       NTFS   Partition   4495 MB  Healthy
    
    DISKPART> select disk 1
    
    Disk 1 is now the selected disk.
    
    DISKPART> detail disk
    
    SDHC Card
    Disk ID: C03D3781
    Type   : USB
    Status : Online
    Path   : 0
    Target : 0
    LUN ID : 0
    Location Path : UNAVAILABLE
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : No
    Pagefile Disk  : No
    Hibernation File Disk  : No
    Crashdump Disk  : No
    Clustered Disk  : No
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 4     F   SanDisk32    exFAT  Removable     29 GB  Healthy
    
    DISKPART>
      My Computer


  3. TV2
    Posts : 2,221
    W10 Pro 22H2
       #3

    Also,
    See the last column (Gpt) under list disk in the screenshot by lx07 above?
    If the disk is a GPT format it will have a * in that column for that disk.
    Neither Disk 0 or Disk 1 in that screenshot are GPT.
      My Computers


  4. Posts : 7,895
    Windows 11 Pro 64 bit
       #4

    I recommend MiniTool Partition Wizard Free which is easier to use than Diskpart. Select the partition you want then Label to change the title.
      My Computers


  5. Posts : 5,478
    2004
       #5

    Steve C said:
    I recommend MiniTool Partition Wizard Free which is easier to use than Diskpart. Select the partition you want then Label to change the title.
    One thing to be aware of is Diskpart (and Disk Management) start numbering disks from disk 0. Partition Wizard starts from disk 1.

    You wouldn't want to do something in Diskpart based on the disk number taken from Partition Wizard.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:31.
Find Us




Windows 10 Forums