Software:diskpart
Developer(s) | Microsoft, Lee Schroeder |
---|---|
Initial release | February 17, 2000 |
Operating system | Windows, ReactOS |
Platform | Cross-platform |
Predecessor | fdisk |
Type | Command |
License | Windows: Proprietary commercial software ReactOS: GPLv2 |
Website | learn |
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
utility is used for partitioning internal hard drives, but can also format removable media such as flash drives.[4]
It has long been possible, theoretically, to partition removable drives – such as flash drives or memory cards – from within Windows NT 4.0 / 2000 / XP; e.g., during system installation. In reality, however, it was not possible to create, for instance, a recovery console, for such a device. A message would appear: 'Cannot format removable disk'. Microsoft noticed this error, and responded by disabling the functionalities of creating and viewing partitions on the device from within Windows, beginning with Vista up to[clarification needed] Windows 10.[citation needed]
With diskpart
, scripts are supported to facilitate such functions. For example, the code below would create a new partition:
create partition logical size=2048 assign letter=F
Specifically, the above will create a 2 GB logical partition, provided that adequate space is available, and assign it the drive letter 'F:'.[5]
The installed disks and their associated volumes and/or partitions can be viewed using these commands:
list disk list volume list partition
The sel
command will select them.
The command clean
will perform a "quick" disk wipe,
and clean all
zeroes out 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
- Logical Disk Manager
- Disk Utility
- parted, cfdisk
- List of disk partitioning software
- Windows Imaging Format
- Loop devices
- PartitionMagic
References
Footnotes
- ↑ "DiskPart". Windows XP Command-line reference A-Z. Microsoft. https://technet.microsoft.com/en-us/library/bb490893.aspx.
- ↑ "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. http://support.microsoft.com/kb/325590.
- ↑ "Reactos/Reactos". https://github.com/reactos/reactos/tree/master/base/system/diskpart.
- ↑ "DiskPart Commands". Windows Server 2008 R2 and Windows Server 2008 Command-Line Reference. Microsoft. https://technet.microsoft.com/en-us/library/cc770877%28WS.10%29.aspx.
- ↑ 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. https://archive.org/details/isbn_9781597491051.
- ↑ "Reactos/Reactos". 3 January 2022. https://github.com/reactos/reactos/blob/master/base/system/diskpart/diskpart.c.
- ↑ "Description of the Windows XP Recovery Console for advanced users". Support. Microsoft. 11 July 2013. http://support.microsoft.com/kb/314058.
- ↑ "Partition Diskpart - Create, Extend or Delete a Disk Partition" (in en-US). https://readus247.com/partition-diskpart/.
Citations
- "Appendix: Tools and APIs for Virtual Hard Disks". Microsoft. 15 October 2010. Tools used to maintain VHD images. https://technet.microsoft.com/en-us/library/dd979532%28WS.10%29.aspx#BKMK_1.
- Tulloch, Mitch; Northrup, Tony; Honeycutt, Jerry; Wilson, Ed. "Create and Use a Virtual Hard Disk on Windows 7". Microsoft. https://technet.microsoft.com/en-us/magazine/ee872416.aspx.
- "Walkthrough: Deploy a Virtual Hard Disk for Native Boot". Windows Automated Installation Kit for Windows 7. Microsoft. https://technet.microsoft.com/en-us/library/dd744338%28WS.10%29.aspx.
- "Add a Native-Boot Virtual Hard Disk to the Boot Menu". Windows Automated Installation Kit for Windows 7. Microsoft. https://technet.microsoft.com/en-us/library/dd799299%28WS.10%29.aspx.
- Brink, Shawn (26 Jan 2009). "Virtual Hard Drive VHD File - Create and Start with at Boot". Windows 7 Forums. http://www.sevenforums.com/tutorials/2953-virtual-hard-drive-vhd-file-create-start-boot.html.
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
- "DiskPart commands". Microsoft. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart.
- "DiskPart.exe and managing Virtual Hard Disks (VHDs) in Windows 7". Microsoft. 8 October 2009. http://blogs.msdn.com/b/7/archive/2009/10/08/diskpart-exe-and-managing-virtual-hard-disks-vhds-in-windows-7.aspx.
Original source: https://en.wikipedia.org/wiki/Diskpart.
Read more |