Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConditionalMount

[The ConditionalMount property is no longer available for use as of Windows Server 2012. Instead, use the DiskRunChkDsk property.]

This property is not supported.

Windows Server 2003:  

Determines whether a physical disk is mounted only if chkdsk performs successfully. The following table summarizes the attributes of the ConditionalMount property.

AttributeValue
Data typeDWORD
Access Read/write
StatusOptional
Structure CLUSPROP_DWORD
MinimumFALSE (0) always mount the disk
MaximumTRUE (1) conditionally mount the disk
DefaultTRUE

 

Remarks

Setting ConditionalMount to FALSE causes the operating system to attempt to mount the disk regardless of chkdsk failures, if any. With ConditionalMount set to TRUE (the default), the operating system will not attempt to mount a disk if chkdsk reports errors for the disk. Note that if chkdsk does not run, it will not produce errors, and therefore the operating system will attempt to mount the disk regardless of the ConditionalMount setting. The SkipChkdsk property determines if chkdsk runs or not.

The following table summarizes the interaction between SkipChkdsk and ConditionalMount.

SkipChkdsk valueConditionalMount valueChkdsk runs?Disk mounted?
FALSETRUEyesIf chkdsk reports errors, no. Otherwise, yes.
FALSEFALSEyesyes
TRUETRUEnoyes
TRUEFALSEnoyes

 

Forcing a disk to mount despite errors can result in loss of data. Use caution when changing these properties.

Examples

The property value portion of a property list entry for ConditionalMount can be set with the following example code.


DWORD          ConditionalMountData = FALSE;
CLUSPROP_DWORD ConditionalMountValue;

ConditionalMountValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_DWORD;
ConditionalMountValue.cbLength  = sizeof(DWORD);
ConditionalMountValue.dw        = ConditionalMountData;


Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

End of server support

Windows Server 2003 Datacenter, Windows Server 2003 Enterprise

See also

SkipChkdsk

 

 

Show:
© 2015 Microsoft