400
Networking Fundamentals
The
list
command can be used with the disk, volume, and partition object.
When using the DiskPart command interpreter, disks, partitions, and volumes
are referred to as objects. Look at the following screen capture. It shows the
list
disk,
list
partition, and
list volume
commands. The
list disk
command lists the
disk(s) installed starting with disk 0. The
list volume
command lists the volumes
contained in the system. The
list partition
command lists the partitions located on
a selected disk. Notice how the DVD-ROM drive is identifi ed after issuing the
list
volume
command. Also, notice how the removable drive is identifi ed even though
it is no longer present.
Before issuing the
list partition
command, you must select the disk you
wish to view. For example, to view the partition information for a single hard
disk drive, you would issue the
select disk
command. Then you would issue the
list partition
command. Otherwise, you will generate an error message stating,
“There is no disk selected to list partitions.”
Selecting the disk is also known as setting focus. When you set focus, you
focus the
list partition
command on a selected disk. You must also set the focus
on the partition you wish to list. If you do not, the default partition you are
presently running the DiskPart command interpreter from is automatically
selected.
For more information on the DiskPart command interpreter, read the
following Microsoft Support article: 300415—A Description of the DiskPart
Command Line Utility.
Previous Page Next Page