select partition

选择指定的分区,并将焦点转移到该分区。 此命令还可用于显示当前在所选磁盘中具有焦点的分区。

Syntax

select partition=<n>

Parameters

Parameter Description
partition=<n> 接收焦点的分区号。 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.

    • 如果未指定分区号,此选项将显示当前在所选磁盘中具有焦点的分区。

    • 如果选择了具有相应分区的卷,则会自动选择该分区。

    • 如果选择了具有相应卷的分区,则会自动选择该卷。

Examples

To shift the focus to partition 3, type:

select partitition=3

若要显示当前在所选磁盘中具有焦点的分区,请键入:

select partition