diskpart
diskpart | |
---|---|
Basic data
|
|
developer | Microsoft |
operating system | Windows NT class |
category | Disk or file system utility |
diskpart
is a command line program used for hard disk partitioning . It is supplied in the versions of the Windows NT operating systems from Windows 2000 and replaces the fdisk program of the MS-DOS- based operating systems.
This utility creates partitions for removable media, flash drives, and hard drives.
function
The diskpart
command supports the use of scripts to automate processes. For example, it is possible to create a new partition using the following text file:
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 hard drive. It will be assigned the drive letter F: if the space is available. The call in a console then takes place with:
diskpart /s skriptfile.txt
Recovery console
There is a command on the Recovery Console , which is included in all versions of Windows 2000 , Windows XP, and Windows Server 2003diskpart
, but it is very different from what is included in the actual operating system. It only offers functions for adding and deleting partitions, but not for setting an active partition.
The program is also included in the supplied " Windows Recovery Environment ", the successor to the original Recovery Console.
See also
Web links
- Description of the command line utility "Diskpart". Microsoft Support (machine translation)
- Description of the command line utility "Diskpart". Microsoft Technet (from Windows Vista)
Individual evidence
- ↑ support.microsoft.com
- ^ 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 .
- ↑ support.microsoft.com