Windows 10: A question about Diskpart

  1.    24 Jun 2017 #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 ComputerSystem Spec

  2.    24 Jun 2017 #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 ComputerSystem Spec

  3.    24 Jun 2017 #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 ComputerSystem Spec

  4.    25 Jun 2017 #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 ComputersSystem Spec

  5.    25 Jun 2017 #5

    Steve C said: View Post
    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 ComputerSystem Spec


 

Related Threads
Using DiskPart Prior to Setup in Installation and Upgrade
There is a key combination one uses while in windows setup screen to go to the dos prompt. But I can't remember it. Can anyone enlighten me? James
Solved Diskpart problem in Performance & Maintenance
Used reflect to do image backup on another drive and all went well. Both drives have same data,they are exact.If I boot machine with only one drive powered all is good,if I power up the other drive to update a file Diskpart does not see the other...
Used Diskpart to access a spare OS that is same as my main OS, now I can not get the spare OS to boot? When I try and boot it go to Preparing Automatic Repair, can't get past this.Will not boot in save mode or nothing. Can still acess the drive from...
Running Diskpart in Drivers and Hardware
I use this to select a drive to backup data,drive is not always powered up. I only power this up after windows has booted and need to backup something. Every time I use this now when I boot the backup drive it always wants to do a disk check?Never...
Need diskpart commands in Performance & Maintenance
I am going to reinstall but i forgot the typical diskpart commands that i want to do before hand on my SSD , i know clean is one of them but i forgot the others . I just have one SSD for boot and usage . Thank you
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 06:19.
Find Us