Obtaining details for disk drives with diskpart under Windows

If you wish to obtain details on internal and external disk drives connected to a Microsoft Windows 2000 or later system, including Windows 2000, XP, 7, 8, 8.1, Small Business Server (SBS) 2003, and Windows Server 2012 Essentials systems, you can use the diskpart command. To use it, open a command prompt window, which you can get on a Windows 8 or Server 2012 sysem by hitting Ctrl-Esc and then typing command and then clicking on the icon for "command prompt" or a Windows PowerShell window, which you can get by hitting Ctrl-Esc and then selecting Windows PowerShell. When the window opens, type diskpart. You may see a prompt asking "Do you want to allow the following program to make changes to this computer?" Beneath it you will see the following:
Program name:DiskPart
Verified publisher: Microsoft Windows

Click on "Yes", which will result in a diskpart window opening. On systems where you are not logged into an administrator account when you attempt to run the diskpart utility, you may be prompted to provide login credentials for an account in the administrators group.

To view details on the drives connected to the system, you first have to select a disk drive in diskpart with select disk n where n is the disk drive number; the first drive is drive zero. You can then issue the command detail disk to see details on the disk drive.

Udemy


Empire: Total War - Gold Edition

Microsoft DiskPart version 6.2.9200

Copyright (C) 1999-2012 Microsoft Corporation.
On computer: BATMAN

DISKPART> select disk 0

Disk 0 is now the selected disk.

DISKPART> detail disk

ST31000528AS
Disk ID: F7B05235
Type   : SATA
Status : Online
Path   : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
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         RECOVERY     NTFS   Partition     19 GB  Healthy    System
  Volume 2     D   OS           NTFS   Partition    179 GB  Healthy
  Volume 3     C                NTFS   Partition    732 GB  Healthy    Boot

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> detail disk

ST6000DX000-1H217Z
Disk ID: {6451099E-C41A-4460-9406-328321F6F74A}
Type   : SATA
Status : Online
Path   : 1
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     G   Data         NTFS   Partition   5588 GB  Healthy

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> detail disk

WD My Book 1230 USB Device
Disk ID: DB4BF07B
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 5     E   My Book      NTFS   Partition   3725 GB  Healthy

DISKPART>

In the example above, disks 0 and 1 are internal drives while disk 2 is an external USB drive.

To view details on just one parition on a drive, after selecting the drive select the parition with select partition n, where n is the partition number, then issue the command detail partition. Partition numbers start with the number one.

Aiseesoft Video Converter Ultimate 120x600
DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> detail partition

Partition 1
Type  : 07
Hidden: No
Active: No
Offset in Bytes: 1048576

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
* Volume 5     E   My Book      NTFS   Partition   3725 GB  Healthy

DISKPART> select disk 0

Disk 0 is now the selected disk.

DISKPART> select partition 3

Partition 3 is now the selected partition.

DISKPART> detail partition

Partition 3
Type  : 07
Hidden: No
Active: No
Offset in Bytes: 21283995648

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
* Volume 2     D   OS           NTFS   Partition    179 GB  Healthy

DISKPART>

Note: a partition number isn't the same as the volume number. E.g., partition 3 above is volume 2, which corresonds to drive letter D on the system. To see details for a volume, with the disk drive it resides on selected, issue the comand select volume n, where n is the volume number; the volume numbers start with the number 1. Then issue the command detail volume.

DISKPART> select volume 2

Volume 2 is the selected volume.

DISKPART> detail volume

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
* Disk 0    Online          931 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        :  179 GB
Volume Free Space      :  146 GB

DISKPART>

 

TechRabbit ad 300x250 newegg.com

Justdeals Daily Electronics Deals1x1 px

Valid HTML 4.01 Transitional

Created: Saturday January 24, 2015