Friday, January 15, 2010

How To Fix The Errors By Running Check Disk From Command Line AndWindows Explorer

If you want to check the Integrity of Disks, you should periodically use the Check Disk Tool. This command scrutinizes disks and corrects many types of common errors on FAT16, FAT32 and NTFS drives. It compares the volume bitmap with the disk sectors assigned to file in the file system. At the same time, this Check Disk is not able to repair the corrupted data within the files that appear to be structurally intact.

How To Run Check Disk from the Command Line

Running Check Disk is so easy from an elevated Command Prompt or within other tools. Moreover, you can text the integrity of drive C at the elevated point by typing the command “chkdsk C:”





If you enter this command, Check Disk will perform an analysis of the disk and returns a status message if any problem occurs. Unless, you specify any further options, Check Disk will not repair problems. Therefore, you can use the following command. If you enter this command, Check Disk will perform an analysis of the disk and will repair the problems. If the particular drive is in use, Check Disk will prompt if you want to schedule the disk to be checked at the next restart. If you want to perform this step, click Yes to schedule this check.



The complete syntax for Check Disk is as follows:
CHKDSK [volume[[path]filename]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]

The options and switches for Check Disk are used as follows:
volume Sets the volume to work with
path/filename Specifies files to check for fragmentation (FAT16 and FAT32 only)
/F is used to fix errors on the disk
/V is used display the full path and name of every file on the disk (FAT16 and FAT32); displays cleanup messages if any (NTFS)
/R is used locate bad sectors and recovers readable information (implies /F)
/X is used force the volume to dismount first if necessary (implies /F)
/I is used perform a minimum check of index entries (NTFS only)
/C is used skip checking of cycles within the folder structure (NTFS only)
/L:size is used set the log file size (NTFS only)
/B is used Re-evaluate bad clusters on the volume (NTFS only; implies /R)

Running Check Disk Interactively Using Windows Explorer
Follow the following steps to perform Check Disk using Windows Explorer
1.    Click on Start Menu and then choose Computer.
2.    Under Hard Disk Drive, right click on a drive and then choose Properties.
3.    After that, click on Check Now on the Tools Tab. This will display the Check Disk dialog box.
4.    If you want to check for the errors without repairing them, just click on Start Without selecting either of the check boxes in the Check Disk dialog box.
5.    Whereas, if you want to check for the errors and attempt to resolve them, select either or both of the following options then click on Start.

•    Automatically Fix File System Errors Specifies whether Windows 7 repairs file system errors it finds.
•    Scan For And Attempt Recovery Of Bad Sectors Specifies whether Windows 7 checks for bad sectors and attempts to recover readable information from them.
6.    If your disk is in use, Check Disk will display a prompt to ask if you want to schedule the disk to be checked the next time you restart the system.
7.    You can click Yes to schedule this check.
8.    Once the process is finished, click on OK.
9.    That’s it.

By