diskpart

diskpart
A component of Microsoft Windows
Details
Included with Windows NT
Replaces fdisk

In computing, diskpart is a command-line hard disk partitioning utility included in versions of the Windows NT operating system line from Windows 2000 onwards, replacing fdisk which was used in MS-DOS based operating systems.[1]

This utility prevents creating multipartition layout for removable media such as flash drives.

How it works

The diskpart command supports the use of scripts to automate its usage. For example, the following text file could be supplied to diskpart to create a new partition:

create partition logical size=2048
assign letter=F

This will create a 2 GB logical partition at the beginning of the free space on the disk and assign it the drive letter F:, provided that space requirements are met.[2]

↑Jump back a section

Recovery Console

On the Recovery Console, which is included in all Windows 2000, Windows XP and Windows Server 2003, there is a diskpart command which is significantly different from the one included in the actual operating system. It only provides functionality for adding and deleting partitions, but not for setting an active partition.[3] The utility is also provided in the Windows Recovery Environment, the successor of the original Recovery Console.

↑Jump back a section

References

  1. ^ http://support.microsoft.com/kb/325590
  2. ^ Pawan K. Bhardwaj, Kimon Andreou, Brian Barber, Dave Kleiman, Mahesh Satyanarayana. How to Cheat at Windows System Administration Using Command Line Scripts: Using Command Line Scripts. Syngress, 2006. ISBN 1-59749-105-5
  3. ^ http://support.microsoft.com/kb/314058
  4. ^ more Diskpart:(vdisk create select attach detach) articles you can find at technet.microsoft.com: [1],[2],[3]
↑Jump back a section

Read in another language

This page is available in 1 language

Last modified on 7 April 2013, at 15:36