Important
在存储区域网络 (SAN) 配置中,禁用自动装载可防止 Windows 自动装载系统可见的任何新基本卷或为其其分配驱动器号。
Syntax
automount [ { enable | disable | scrub } ] [noerr]
Parameters
Parameter | Description |
---|---|
启用 | 使 Windows 能够自动装载添加到系统的新基本和动态卷并为它们分配驱动器号。 |
停用 | 防止 Windows 自动装载添加到系统中的任何新基本和动态卷。 Note: Disabling automount can cause failover clusters to fail the storage portion of the Validate a Configuration Wizard. |
推移 | 删除不再位于系统中的卷的卷装入点目录和注册表设置。 该操作防止自动装入已经位于系统中的卷,并防止在其重新添加到系统时给定以前的卷装入点。 |
noerr | 仅用于脚本。 出现错误时,DiskPart 继续处理命令,就像未发生错误一样。 如果没有此参数,则错误会导致 DiskPart 退出并显示错误代码。 |
Examples
若要查看自动装载功能是否已启用,请从 diskpart 命令中键入以下命令:
automount
若要启用自动装载功能,请键入:
automount enable
若要禁用自动装载功能,请键入:
automount disable