Method of canceling scan and detecting hard disk partition after illegal shutdown and reboot

Source: Internet
Author: User

Disk self-healing features NTFS utilizes a "self-healing" system that automatically detects and fixes logical and physical errors on the hard disk. In the FAT16 and FAT32 times, we need to use the ScanDisk program to mark bad sectors on disk, but when errors are found, the data is often written in bad sectors, and the damage is done.

Computer illegal shutdown, accidental power outages and so on, the next time the boot or restart, Windows will perform hard disk partition detection, scan for bad files, this is well-intentioned. But every time it's so hard to wait, after all, it takes a lot of time, okay, I'll teach you a way to shut down the system unexpectedly shutdown or unexpectedly reboot, no longer scan the hard drive.

Here to use a command, is Chkntfs, the use of the method is also very simple, if you do not scan a partition, such as C disk, then in the Start menu run the execution chkntfs/x C: Can, if there are several disk, generally we have D disk E disk F, is also the case, To be set through the Chkntfs command, after setting, it will no longer be scanned, even after reloading the system. Of course there is a way, through the registry to modify, here I do not recommend, why, because the steps are relatively cumbersome. And once set, and then reload the system or something, but also set again.

But everything has pros and cons, this function is also the case, a few years ago I canceled, and then never appeared in the scanning interface, and then I use the Windows Vista system, I have not seen how vista is scanned. So I think for a moment, always feel that is set up before, but did not think of changing the system, the setting is also kept, until recently the system is always unable to start, I realized that the hard disk scan is in fact can not be discarded. Or keep good, so went to search for a while, found that most of the articles reproduced are wrong.

So I looked carefully at the next chkntfs this command Help, originally those reprinted articles are really wrong, they feel that the command format should be chkntfs/d C: So, but after the execution found that this is wrong, Chkntfs did not do any operation. The correct method is very simple, as long as the implementation of CHKNTFS/C C: You can set the C-disk boot detection to have a problem when the scan, that is, unexpectedly shutdown after the corresponding disk scan. But a computer usually has several letters, I write a section of script here, as long as the Notepad saved to "restore boot scan hard disk partition. Bat" then run it.

For%%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (

CHKNTFS/C%%a:

)

Also, that is the boot scan before the wait time, generally 10 seconds, so if there are more than one disk, then each disk must first log 10 seconds, this is a waste of time, in fact, as long as the chkntfs set up, as long as the implementation of CHKNTFS/T 3 can be set to 3 seconds. It's more convenient!

For the convenience of everyone, I sent out the Chkntfs order for reference

Displays or modifies disk checks at startup.

CHKNTFS volume [...]

chkntfs/d

Chkntfs/t[:time]

chkntfs/x Volume [...]

CHKNTFS/C Volume [...]

volume Specifies the drive letter (followed by a colon), mount point, or volume name.

/d restores the computer to its default state, checks all drives at startup, and asks

The drive on the question executes the chkdsk command.

/t:time changes the AUTOCHK initial decrement count time to the specified time in seconds.

If no time is specified, the current setting is displayed.

/x excludes drives that are not checked at startup. The drive that was last excluded from this command

is not valid.

/C Schedule The drive to be checked at startup and run Chkdsk if there is a problem with the drive.

If you do not specify a command-line switch, Chkntfs displays the status of the bit that is problematic for each drive.

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.