Table of contents
TOC
Collapse the table of content
Expand the table of content

select partition

Corey Plett|Last Updated: 11/16/2016

Applies To: Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

selects the specified partition and shifts the focus to it. This command can also be used to display the partition that currently has the focus in the selected disk.

Syntax

select partition=<n>  

Parameters

ParameterDescription
partition=The number of the partition to receive the focus. You can view the numbers for all partitions on the disk currently selected by using the list partition command in DiskPart.

remarks

  • Before you can select a partition you must first select a disk using the select disk command.

  • if no partition number is specified, this command displays the partition that currently has the focus in the selected disk.

  • if a volume is selected with a corresponding partition, the partition will be automatically selected.

  • if a partition is selected with a corresponding volume, the volume will be automatically selected.

Examples

To shift the focus to partition 3, type:

select partitition=3  

To display the partition that currently has the focus in the selected disk, type:

select partition  

additional references

Command-Line Syntax Key

© 2017 Microsoft