O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

diskpart — new in WS2003

Synopsis

Manages disks, partitions, and volumes from the command line.

Syntax

diskpart 
diskpart /s script

Options

None

Enters interactive mode and displays the DISKPART> prompt, waiting for you to enter diskpart commands

/s

Specifies a script containing a series of diskpart commands to execute sequentially

Commands

The following is a summary of diskpart commands that can be used either interactively or in scripts. Note that each command has its own unique syntax, which is summarized briefly.

active

Marks the selected basic partition as active.

add disk=N

Adds the specified disk as a mirror to the selected simple volume.

assign {letter=D | mount=path}

Assigns the specified drive letter or mount point to the selected volume. If assign is used alone, the next available drive letter is used. Does not work with system/boot volumes or volumes where a paging file resides.

automount [enable | disable]

Enables and disables automatic mounting of basic volumes. Automounting is enabled by default and should be disabled only for storage area networks.

break disk=N [nokeep]

Breaks a mirror set into two simple volumes and changes the focus to the specified volume so you can assign it a drive letter. The nokeep option causes the mirrored volume to be converted to free space instead.

clean [all]

Deletes the configuration information from the selected disk by overwriting the MBR. The all option sets every sector to zero to delete all data on the disk.

convert basic

Converts a dynamic disk ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required