Jump to content

diskpart

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by ClueBot NG (talk | contribs) at 16:07, 8 August 2013 (Reverting possible vandalism by 39.42.216.69 to version by KLBot2. False positive? Report it. Thanks, ClueBot NG. (1699358) (Bot)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Template:Infobox Windows component 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]

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.

See also

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]

External links