If you use chkdsk /f* on a very large disk or a disk with a very large number of files (for example, millions of files), chkdsk /f might take a long time to complete. If you don't use the /f parameter, chkdsk displays a message that the file needs to be fixed, but it does not fix any errors. If you press N, Windows fixes the disk, but it does not save the contents of the lost allocation units. When chkdsk finishes, you can check these files to see if they contain any data you need. If you press Y, Windows saves each lost chain in the root directory as a file with a name in the format File. Chkdsk must be able to lock the drive to correct errors.īecause repairs on FAT file systems usually change a disk's file allocation table and sometimes cause a loss of data, chkdsk might display a confirmation message similar to the following: 10 lost allocation units found in 3 chains. If you run chkdsk without the /f parameter on an active partition, it might report spurious errors because it cannot lock the drive.Ĭhkdsk corrects logical disk errors only if you specify the /f parameter. The status report shows errors found in the file system. Chkdsk examines disk space and disk use and provides a status report specific to each file system. You should use chkdsk occasionally on FAT and NTFS file systems to check for disk errors. Use the fsutil dirty set command to set the volume's dirty bit (indicating corruption), so that Windows runs chkdsk when the computer is restarted. You can also use the chkntfs /c command to schedule the volume to be checked the next time the computer is restarted. If the drive partition is a boot partition, chkdsk automatically restarts the computer after it checks the drive. If you choose to check the drive the next time you restart the computer, chkdsk checks the drive and corrects errors automatically when you restart the computer. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N) If files are open, the following error message appears: Chkdsk cannot run because the volume is in use by another process. If you want chkdsk to correct disk errors, you can't have open files on the drive. The /i or /c switch reduces the amount of time required to run chkdsk by skipping certain volume checks. Marks the volume clean if no corruption was detected, even if /f was not specified. Frees any orphaned cluster chains instead of recovering their contents. Runs an offline scan and fix on the volume. Garbage collect unneeded security descriptor data (implies /f). This may have a negative performance impact on other tasks running on the system. Uses more system resources to complete a scan as fast as possible. Use with NTFS only (must be used with /scan). Bypass all online repair all defects found are queued for offline repair (for example, chkdsk /spotfix). Use this parameter after imaging a volume to a new hard disk drive. Clears the list of bad clusters on the volume and rescans all allocated and free clusters for errors. If you omit the size parameter, /l displays the current size. Changes the log file size to the size you type. Does not check cycles within the folder structure, which reduces the amount of time required to run chkdsk. Performs a less vigorous check of index entries, which reduces the amount of time required to run chkdsk. x also includes the functionality of /f. All open handles to the drive are invalidated. r includes the functionality of /f, with the additional analysis of physical disk errors.įorces the volume to dismount first, if necessary. Locates bad sectors and recovers readable information. If chkdsk cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.ĭisplays the name of each file in every directory as the disk is checked. You can use the ? and * wildcard characters to specify multiple files.įixes errors on the disk. Specifies the location and name of a file or set of files that you want chkdsk to check for fragmentation. Use with file allocation table (FAT) and FAT32 only. Specifies the drive letter (followed by a colon), mount point, or volume name. The command cannot be used with a local drive letter that has been redirected over the network.
0 Comments
Leave a Reply. |