diskpart

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

diskpart
Screenshot of diskpart in Windows 7
Screenshot of diskpart in Windows 7
Developer(s)Microsoft, Lee Schroeder
Initial releaseFebruary 17, 2000; 19 years ago (2000-02-17)
Operating systemWindows, ReactOS
Replacesfdisk
TypeCommand
LicenseWindows: Proprietary commercial software
ReactOS: GNU General Public License

In computing, diskpart is a command-line disk partitioning utility included in Windows 2000 and later Microsoft operating systems, replacing its predecessor, fdisk.[1][2] The command is also available in ReactOS.[3]

Overview[edit]

The diskpart utility prevents creating multipartition layout for removable media such as flash drives. It is used for partitioning internal hard drives.[4]

The 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.[5]

The installed disks and their associated volumes and/or partitions can be viewed by these commands:

list disk
list volume
list partition

The ReactOS version was developed by Lee Schroeder and is licensed under the GPL.[6]

Recovery Console[edit]

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.[7]

See also[edit]

References[edit]

Footnotes[edit]

  1. ^ "DiskPart". Windows XP Command-line reference A-Z. Microsoft. Retrieved 3 April 2015.
  2. ^ "How to extend a data volume in Windows Server 2003, in Windows XP, in Windows 2000, and in Windows Server 2008". Support. Microsoft. 11 September 2011.
  3. ^ https://github.com/reactos/reactos/tree/master/base/system/diskpart
  4. ^ "DiskPart Commands". Windows Server 2008 R2 and Windows Server 2008 Command-Line Reference. Microsoft. Retrieved 3 April 2015.
  5. ^ Bhardwaj, Pawan K.; Andreou, Kimon; Barber, Brian; Kleiman, Dave; Satyanarayana, Mahesh (2006). How to cheat at Windows System Administration using command line scripts. Rockland, MA: Syngress. ISBN 1-59749-105-5.
  6. ^ https://github.com/reactos/reactos/blob/master/base/system/diskpart/diskpart.c
  7. ^ "Description of the Windows XP Recovery Console for advanced users". Support. Microsoft. 11 July 2013.

Citations[edit]

Further reading[edit]

External links[edit]