DiskPart is one of the most powerful Windows commands. It allows you to accurately manage the partitions, resizing them, their assignment and their formatting. It can be incorporated into a script, and most importantly, may itself execute scripts. It is essential to restructure the USB key and is a formidable weapon to automate deployment of Windows on parking machines.
Before you can use DiskPart commands on a disk, partition, or volume, you must first list and then select the object to give it focus. When an object has focus, any DiskPart commands that you type act on that object.
You can list the available objects and determine an object's number or drive letter by using the list disk, list volume, and list partition commands. The list disk and list volume commands display all disks and volumes on the computer. However, the list partition command displays only partitions on the disk that have focus. When you use the list commands, an asterisk (*) appears next to the object with focus. You select an object by its number or drive letter, such as disk 0, partition 1, volume 3, or volume C.
Warning
The DISKPART command is for an informed public that already have a minimum knowledge about partitioning and formatting disks and the use of command-mode "command prompt".
Misuse of this command can cause the loss of your data on your disks. We do not recommend beginners to use DISKPART. Most DiskPart functions are available as user-friendly Windows interface by clicking the right button on "My Computer" (or "Computer" on Vista) and selecting "Manage from the context menu" before selecting the module "Disk Management".
DISKPART is present in XP, Vista and Windows 7. However, the XP version is more limited because it does not offer advanced features for resizing partitions, for example.
To start DISKPART, do the following:
- On Windows XP
Go to Start> All Programs> Accessories
Click Command Prompt.
- For Windows Vista/Windows 7
Go to Start> All Programs> Accessories
Right click on the Command Prompt icon
Select Run as administrator from the context menu.
Bookmarks