Girl with kid

Offer for existing members: Upgrade for Free*

Cybercrime has evolved. Our protection has too. *For the remainder of your subscription. Terms apply.

適用於 Windows

Run Microsoft CHKDSK from the command line

We do not offer support for getting the CHKDSK utility to run, nor does it support the problems that may occur as a result of running the CHKDSK utility. Any support issues related to the CHKDSK utility should be directed to Microsoft. For additional information, visit Microsoft's support page.

Run CHKDSK to check for disk errors

  1. Press the Windows + R keys to open the Run dialog box.

  2. Type the following text, and then press Enter.

    cmd
  3. Type the drive letter of the drive you want to check (followed by a colon), and then press Enter. For example, type the following text to check drive D.

    d:
  4. Change to the root directory of the drive by typing the following text and pressing Enter.

    cd\
  5. Type the following text, and then press Enter.

    chkdsk /<switch>

    where <switch> is one of the following:

    • If you want to automatically repair file system errors, use the /f switch (for example, chkdsk /f).

    • 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 do not specify a switch when you run CHKDSK, any errors that are found are not fixed.

  6. If you are prompted to schedule CHKDSK to run the next time the computer restarts (because CHKDSK may be unable to gain exclusive access to the drive under Windows), type the following text, and then press Enter.

    y
  7. At the command prompt, type the following text, and then press Enter.

    exit
  8. If you had to schedule the CHKDSK operation, then restart your computer.

    While Windows loads, CHKDSK should automatically run and check the drive that you specified earlier.

We recommends that you run CHKDSK a second time if any errors or bad sectors are found on the disk. Continue running CHKDSK until all errors and bad sectors have been fixed.

文件識別碼 (ID): v76078023
上次修改時間: 02/21/2025

此文章對您是否有幫助?

Need more help?

下載
管理我的帳戶
購買及續購
連絡我們
支援詐騙
Norton 救援工具
是否覺得感染病毒?
Windows 發生啟動問題