Did you find this document helpful?
Yes
No  

There are two main tools included with Microsoft DOS 6.2x that that allow you to check for and repair bad sectors or lost allocation units. These are: Check Disk (CHKDSK) and ScanDisk (SCANDISK). In versions of MS-DOS prior to 6.x, the only tool available for correcting file allocation and sector issues was the CHKDSK program.

Note: CHKDSK by itself checks the status of your hard disk and reports errors but does not correct any issues. In order to correct possible allocation or cross-linked file issues, you need to run CHKDSK with the /f switch. To run the Check Disk program, at the command prompt type: CHKDSK /F. Then press the ENTER key.

Note: With the introduction of DOS 6.x, Microsoft added a new tool to aid in the repair of these issues. If you are using DOS 6.x, use ScanDisk instead of CHKDSK. To run the ScanDisk program, at the Command prompt type: SCANDISK. Press ENTER.

If there are any lost allocations or bad sectors, you have the option to fix them.

If it is determined that the hard disk needs formatting, it is always best to run one of these utilities before doing so. If you are experiencing random lock-ups or other unusual issues, it is possible one of these utilities may resolve the issue. It is also a good idea to run one of these utilities about once a week to ensure the best hard disk maintenance possible.

Another hard disk maintenance utility, called DEFRAG, defragments your hard disk. As you use files on your hard disk, the computer does not always write the information back to the original spot. This results in file fragments being located across the hard disk instead of right next to each other. As fragmentation increases, the probability of lost clusters or cross-linked files occurring increases. The DEFRAG program brings all the pieces back in logical order by putting all the file pieces back together.

Note: It is recommended to run DEFRAG at least once a week for normal usage. You may want to do this more often if you are continuously adding, updating, or deleting files from you computer. To run DEFRAG, at the Command prompt type: DEFRAG. Press ENTER.

Each of these programs have various switches that modify the way the program works. An easy way to learn more about these programs is to use the online help supplied with MS-DOS. To use help, type: HELP. Then press enter from the MS-DOS directory. To receive help on a specific command you can add The command name after the word Help. For example type: HELP SCANDISK. Press ENTER. This displays the help screen for the ScanDisk utility.

You can also receive a brief summary and available switches by typing the command followed by a /?. For example, type: CHKDSK /?. This displays the following:

C:\chkdsk: Checks a disk and displays a status report CHKDSK [drive:][[path]filename] [/F] [/V].

[drive:][path]: Specifies the drive and directory to check.

filename: Specifies the file(s) to check for fragmentation.

The /F switch fixes errors on the disk.

The /V switch displays the full path and name of every file on the disk.

Type CHKDSK without parameters to check the current disk. Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect and fix a much wider range of disk issues. For more information, from the Command prompt, type: HELP SCANDISK. If you are using MS-DOS 6.x, the help summary recommends that you use ScanDisk instead of CHKDSK as it is better at detecting and fixing potential issues. The computer displays the same recommendation when you run CHKDSK on when running under MS-DOS 6.x.

Glossary of Terms
Bad Sectors: A bad sector is a part of a hard or floppy disk storage medium that does not hold data. Formatting generally detects and marks these areas as unusable.
Lost Allocations (clusters): An allocation unit is a group of sectors. A Lost Allocation is an allocation that has lost its place on the File Allocation Table (FAT).
FAT: File Allocation Table. Area on the hard disk that maps the sector location of each directory entry. Used by the operating system to locate your files.
Cross-Linked Files: Cross-linked files are a result of the operating system overwriting a portion of one file with another file. Potential causes of cross-linked files are turning off or restarting your computer without exiting Windows or by not regularly defragmenting your hard disk.

The Faxable document number for this page is: 0127. More information on how to use the Faxable service is available through the Gateway Web site.


Fixing bad sectors and lost allocation units



   
Copyright © 1997, 1998, 1999, 2000 Gateway, Inc. All rights reserved.
Please see our Legal Information, Privacy Statement, Terms and Conditions of Sale and Limited Warranty. Send feedback to Webmaster Central. Linking and Logo Information.