If you do not specify a switch when you run CHKDSK, any errors that are found are not fixed. If you want to both repair file system errors and scan for and recover bad sectors, use the /r switch (for example, chkdsk /r). If you want to automatically repair file system errors, use the /f switch (for example, chkdsk /f). For example, type the following text to check drive D.Ĭhange to the root directory of the drive by typing the following text and pressing Enter. Type the drive letter of the drive you want to check (followed by a colon), and then press Enter.
Type the following text, and then press Enter. Press the Windows + R keys to open the Run dialog box.