diskpart
A component of Microsoft Windows | |
---|---|
Details | |
Included with | Windows NT |
Replaces | fdisk |
diskpart is a command-line disk partitioning utility included in Windows 2000 and later, replacing its predecessor, fdisk.[1]
This utility prevents creating multipartition layout for removable media such as flash drives. It is also used for partitioning internal hard drives.
How it works
diskpart 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]
The installed disks and their associated volumes and/or partitions can be viewed by these commands:
list disk list volume list partition
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]
See also
- Logical Disk Manager
- Disk Utility
- parted, cfdisk
- List of disk partitioning software
- Windows Imaging Format
- Loop devices
References
Footnotes
- ↑ "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.
- ↑ 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.
- ↑ "Description of the Windows XP Recovery Console for advanced users". Support. Microsoft. 11 July 2013.
Citations
- "DiskPart". Windows XP Command-line reference A-Z. Microsoft. Retrieved 3 April 2015.
- "DiskPart Commands". Windows Server 2008 R2 and Windows Server 2008 Command-Line Reference. Microsoft. Retrieved 3 April 2015.
- "Appendix: Tools and APIs for Virtual Hard Disks". Getting Started with Virtual Hard Disks. Microsoft. 15 October 2010. Tools used to maintain VHD images.
- "DiskPart Command-Line Options". Deployment Tools Technical Reference. Microsoft. Retrieved 3 April 2015.
- "DiskPart.exe and managing Virtual Hard Disks (VHDs) in Windows 7". GES on Windows 7. Microsoft. 8 October 2009.
- Tulloch, Mitch; Northrup, Tony; Honeycutt, Jerry; Wilson, Ed. "Create and Use a Virtual Hard Disk on Windows 7". TechNet Magazine. Microsoft.
- "Walkthrough: Deploy a Virtual Hard Disk for Native Boot". Windows Automated Installation Kit for Windows 7. Microsoft. Retrieved 3 April 2015.
- "Add a Native-Boot Virtual Hard Disk to the Boot Menu". Windows Automated Installation Kit for Windows 7. Microsoft. Retrieved 3 April 2015.
- Brink, Shawn (26 Jan 2009). "Virtual Hard Drive VHD File - Create and Start with at Boot". Windows 7 Forums. Retrieved 3 April 2015.
|