Table 10 Common DiskPart commands
Command
Description
add disk
Mirrors the simple volume with focus to the speci
fi
ed disk.
assign
Assigns a drive letter or mount point to the volume with focus.
convert basic
Converts an empty dynamic disk to a basic disk.
convert dynamic
Converts a basic disk into a dynamic disk. Any existing partitions on the
disk become simple volumes.
create volume simple
Creates a simple volume. After creating the volume, the focus automatically
shifts to the new volume.
exit
Exits the DiskPart command interpreter.
help
Displays a list of the available commands.
list disk
Displays a list of disks and information about them, such as their size, amount
of available free space, whether the disk is a basic or dynamic disk, and
whether the disk uses the master boot record (MBR) or GUID partition table.
The disk marked with an asterisk (*) has focus.
list partition
Displays the partitions listed in the partition table of the current disk. On
dynamic disks, these partitions may not correspond to the dynamic volumes
on the disk. This discrepancy occurs because dynamic disks contain entries
in the partition table for the system volume or boot volume (if present on the
disk). They also contain a partition that occupies the remainder of the disk in
order to reserve the space for use by dynamic volumes.
list volume
Displays a list of basic and dynamic volumes on all disks.
rem
Provides a way to add comments to a script.
retain
Prepares an existing dynamic simple volume to be used as a boot or system
volume.
select disk
Selects the speci
fi
ed disk and shifts the focus to it.
Example of using DiskPart
The following example shows how to con
fi
gure a volume on the storage server.
In the cmd window, type:
c:\>diskpart
DISKPART>Rescan
DISKPART>select disk 2
DISKPART>convert dynamic
DISKPART>REM Create a simple volume
DISKPART>create volume simple size=4000
DISKPART> REM Assign drive letter F: to the volume
DISKPART>assign letter=F
DISKPART>list vol
DISKPART>Exit
HP ProLiant DL100 G2 Storage Server administration guide
55
Summary of Contents for ProLiant DL100 G2 DPSS
Page 12: ...12 ...
Page 18: ...18 About this guide ...
Page 26: ...26 The HP storage server solution ...
Page 46: ...46 Storage management overview ...
Page 134: ...134 Troubleshooting servicing and maintenance ...