diskpart

from Wikipedia, the free encyclopedia
diskpart
Basic data

developer Microsoft
operating system Windows NT class
category Disk or file system utility

diskpartis 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

Diskpart in version 6.1.7601 on Windows 7

The diskpartcommand 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

Individual evidence

  1. support.microsoft.com
  2. ^ 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 .
  3. support.microsoft.com