online volume

将脱机卷进入联机状态。 此命令适用于失败、失败或处于失败冗余状态的卷。

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

如果在只读磁盘上使用此命令,此命令将失败。

Syntax

online volume [noerr]

Parameters

Parameter Description
noerr 仅用于脚本编写。 遇到错误时,DiskPart 将继续处理命令,就像错误未发生一样。 如果没有此参数,错误会导致 DiskPart 退出并显示错误代码。

Examples

若要使音量联机,请键入:

online volume