Online volume

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2

Brings volumes that are currently offline to an online state

This command is not available in any edition of Windows Vista.

This command will fail if it is used on a read-only volume.

online volume [noerr]


Parameter Description


For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code.

  • This command operates on volumes that have failed, are failing, or are in failed redundancy state.

  • A volume must be selected for this command to succeed. Use the select volume command to select a volume and shift the focus to it.

To bring the volume with focus online, type:

online volume

Community Additions