chkntfs


chkntfs

Displays or specifies whether to schedule automatic filesystem checking (using chkdsk ) to be run at startup.

Syntax

 chkntfs   volume   [...] chkntfs /d chkntfs /t[:   time   ] chkntfs /x   volume   [...] chkntfs /c   volume   [...] 

Options

volume [...]

Displays the filesystem of the volume(s) and, if automatic file checking is scheduled, whether the volume has been corrupted. (If so, then run chkdsk /f .) The volume may be identified by a drive letter with colon , a volume mount point, or a volume name .

/d

Restores default behaviorexcept countdown timefor automatic file checking (use this switch alone). In other words, all drives are checked at startup, and those found to be dirty have chkdsk run against them.

/t[:time]

Displays or specifies countdown time for automatic filesystem checking.

/x

Excludes specified volume from being checked (even if volume is marked for running chkdsk ). To exclude multiple volumes , list them in one command. (This option isn't accumulative.)

/c

Checks the specified volume at startup. (This option is accumulative.)

Examples

Display the filesystem on drive C: and its current state:

  chkntfs c:  The type of the file system is NTFS. C: is not dirty. 

Show the countdown time for automatic filesystem checking:

  chkntfs /t  The AUTOCHK initiation count down time is set to 10 seconds. 

Change the countdown time to 60 seconds:

  chkntfs /t:60  

Specify that only C: be checked at startup on a system that also has D: and E: as fixed drives:

  chkntfs /d   chkntfs /x C: D: E:   chkntfs /c C:  

In this example:

  • The first command resets the default setting, which causes all volumes to be checked at startup.

  • The second command excludes all volumes from being checked.

  • The third command schedules C: alone for checking.

Notes

  • You must be a member of the local Administrators group to use the chkntfs command.

  • The default behavior of chkntfs is to check all volumes at startup.

  • Don't set the countdown time to zero, as checking the filesystem can be very time-consuming and the user will be unable to cancel this operation. ( chkdsk can't be stopped once it is running.)

See Also

chkdsk , convert , defrag , diskpart , Disks , format , label , mountvol



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net