Export (0) Print
Expand All

Select partition

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

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.

For examples of how this command can be used, see Examples.

select partition=<n>

 

Parameter Description

partition=<n>

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.

  • 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.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft