diskpart

From Wikipedia, the free encyclopedia
diskpart
Windows 10 Diskpart.png
Screenshot of diskpart in Windows 10
Developer(s)Microsoft, Lee Schroeder
Initial releaseFebruary 17, 2000; 21 years ago (2000-02-17)
Operating systemWindows, ReactOS
PlatformCross-platform
Predecessorfdisk
TypeCommand
LicenseWindows: Proprietary commercial software
ReactOS: GPLv2
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart
The Windows 7 diskpart command
The ReactOS diskpart command

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

The diskpart is a utility used for partitioning internal hard drives but can also format removable media such as flash drives.[4]

Although theoretically it is possible to create in Windows NT 4.0 / 2000 / XP on removable drives such as flash drives or memory cards for example during system installation. However, the ability to format, for example, the Recovery Console, is completely blocked to format such a disk. A message will appear: 'Cannot format removable disk'. Microsoft noticed this error. And it completely blocked the ability to view and create partitions from Windows Vista to Windows 10.[citation needed]

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

To select it, the sel command is used. The clean command is used to either perform a "quick" disk wiping while adding the all argument zeroes the entire partition/disk. The ReactOS version was developed by Lee Schroeder and is licensed under the GPLv2.[6]

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

See also[]

References[]

Footnotes[]

  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. ^ "Reactos/Reactos".
  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. ^ "Reactos/Reactos".
  7. ^ "Description of the Windows XP Recovery Console for advanced users". Support. Microsoft. 11 July 2013.
  8. ^ "Partition Diskpart - Create, Extend or Delete a Disk Partition". Retrieved 2021-02-28.

Citations[]

Further reading[]

  • Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.
  • John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. John Wiley & Sons. ISBN 978-0470165799.

External links[]

Retrieved from ""