Cancel disk Scan

Source: Internet
Author: User
① Click Start → run. In the run dialog box, enter regedit to open the Registry Editor and select the hkey_local_machine \ system \ currentcontrolset \ control \ session manager subkey, then, find the "bootexecute" key value in the right window, clear the value, and press "f5" to refresh the registry.

② After logging on to WinXP as an administrator, enter "chkntfs/x [drive letter]" in the Command Prompt window. For example, if you want to block a scan drive C, enter "chkntfs/x C: "(excluding quotation marks)

③ Input msconfig
Remove the marker before the defragmentation program in the startup Item.
[Note] the system shuts down the boot disk and scans chkntfs and chkdsk.

Microsoft has developed the Chkntfs.exe utility, which can be found in Microsoft Windows NT 4.0 Service Pack 2 and later Windows. This utility is designed to disable automatic chkdsk running on a specific volume when Windows restarts after an abnormal shutdown. If you use chkdsk/f to schedule chkdsk to run on the active volume during the next system restart, you can also use chkntfs to cancel chkdsk scheduling.

Chkntfs drive: [...]
Chkntfs/d
Chkntfs/x drive: [...]
Chkntfs/c drive: [...]

Drive: Specifies the drive letter.
/D restores the computer to the default state, checks all drives at startup, and runs the chkdsk command on problematic drives. This will cancel the effect of the/X option.
/X exclude the drive checked by default at startup. The drive that was excluded from the last command is invalid.
/C if an abnormal bit has been set, chkdsk is scheduled to run at the next restart.

Example:

Chkntfs/x c: This command prevents chkdsk from running on drive C:

Chkntfs/x d: e: This command prevents chkdsk from running on drive D: And E:

The chkntfs/x command is not accumulative and will overwrite any previously created drive exclusion items. In the preceding example, the chkntfs command only prohibits chkdsk from checking drive D and drive E, and does not check whether the drive C has abnormal bits.

Chkntfs/x c: The chkntfs command Chkdsk/f is scheduled to run automatically during the next restart, that is, the c disk is not scanned. Chkdsk/f can never run on a volume that is excluded from the abnormal bit check performed by chkntfs. It means to scan disks other than drive C (chkdsk).

By default, each partition is scanned for 10 seconds. You can press any key to skip the scan and continue to start. However, it would be annoying to wait for 10 seconds for each partition to start scanning. In fact, if we want to set a partition to automatically scan the disk at startup, we can use the chkntfs command. The command format is as follows:

The/t [[:] timefield] parameter can change the countdown time for scanning to the specified time value (in seconds) by inputting ). If no time is specified, the/t parameter displays the current countdown time. For example, you can use the chkntfs/t: 0 command to set the interval to 0 seconds, that is, to scan the disk immediately at startup.

Tip:

Note the following when using chkntfs: first, if you want to run chkntfs in Windows 2000/XP, you must log on as an administrator. Second, the/x parameter cannot be used cumulatively, as mentioned above. If you type this option multiple times, you can replace the previously entered item with the most recent one. Therefore, if you want to ignore multiple partitions, you can use "chkntfs/x e f g h". Third, you should not be intimidated by the ntfs words in the command, it is also common for the FAT format.

Select Start> Run. In the run dialog box, type chksdk/t: 0 to set the disk scan wait time to 0;

There is another command chkntfs In the XP system. By default, the XP system will wait for 10 seconds before scanning each partition. At this time, you can press any key to skip the scan and continue to start. However, it would be annoying to wait for 10 seconds for each partition to start scanning. In fact, if we want to set a partition to automatically scan the disk at startup, we can use the chkntfs command. The command format is as follows:

If you want to ignore scanning a partition when the computer starts, such as a drive c, you can enter the "chkntfs/x c:" command. If you want to disable disk c and disk D scanning, use chkntfs/x c: d: and so on. If you want to resume a scan of drive c, you can use the "chksdk/d c:" command to restore all default chkntfs settings, in addition to the countdown to the automatic file check.

[Note] the Chkntfs utility works by modifying the BootExcecute value in the system registry. The BootExecute value can be found in the following registry key:

HKEY_LOCAL_MACHINE \ SYSTEM \ CURRENTCONTROLSET \ CONTROL \ Session Manager

Default Value:

BootExecute: REG_MULTI_SZ: autocheck autochk *

Chkntfs/x added the/k parameter before the asterisk. The/k parameter does not allow you to check whether an abnormal location exists on the volume.

For example

Chkntfs/x D:

Modify this registry entry to automatically check autochk/k: d *

By setting an abnormal location on the drive, Chkdsk/f is scheduled to run on its own during the next restart. Chkdsk/x does not check this abnormal bit. Chkdsk/f can never run on volumes that are excluded from the range of abnormal bit checks executed by chkntfs.

To run chkdsk/f on a drive that has been excluded from the chkntfs utility, you must run the chkntfs/d option to return the system to a normal state, alternatively, edit the BootExecute value in the Registry and delete the applicable drive letter from the/k parameter.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.