Redigera

Dela via


online volume

Takes the offline volume to the online state. This command works on volumes that have failed, are failing, or are in failed redundancy state.

Note

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

Important

This command will fails if it's used on a read-only disk.

Syntax

online volume [noerr]

Parameters

Parameter Description
noerr 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.

Examples

To take the volume with focus online, type:

online volume