跳至內容
amagicsoft 標誌圖示
  • 首頁
  • 產品
    • Magic Data Recovery
    • Magic Recovery Key
  • 商店
  • 部落格
  • 更多資訊
    • 關於 Amagicsoft
    • 聯絡我們
    • 隱私權政策
    • 條款
    • 許可協議
    • 退款政策
  • 繁體中文
    • English
    • 日本語
    • 한국어
    • Deutsch
    • Français
維基

CHKDSK 指令:完整指南

2025 年 12 月 17 日 Smith, Erin 尚未有評論
如何使用 CHKDSK 指令
CHKDSK (Check Disk) is a built-in Windows tool that helps maintain and repair file systems on hard drives by checking for errors, bad sectors, and fragmented files. It’s an essential utility for keeping your disk healthy and optimizing performance. It provide several CHKDSK Commands for fixing file system errors, 壞扇區, and fragmented files.

目錄

How CHKDSK Works

Check Disk scans your hard drive and checks for file system errors, 壞扇區, and fragmented files. Depending on the parameters you use, it can also attempt repairs on these issues and 復原丟失的資料 from bad sectors.

How to Run Check Disk

To run CHKDSK, follow these steps:

  1. Open Command Prompt as Administrator:新聞 Windows + X 並選擇 指令提示(管理員).
  2. Run the CHKDSK Command: In the Command Prompt window, type the desired CHKDSK command with appropriate parameters, for example:

chkdsk C: /f (replace “C:” with your target drive letter).

  1. Reboot the Computer: If scanning the system drive (C:), CHKDSK will schedule the scan for the next reboot. Press Y to confirm.

Complete List of CHKDSK Commands and Parameters

Here is a detailed list of all CHKDSK commands you can use:

Parameter

說明

<volume>

Specifies the drive letter (followed by a colon), mount point, or volume name.

[<path>]<filename>

Use with file allocation table (FAT) and FAT32 only. Specifies the location and name of a file or set of files that you want chkdsk to check for fragmentation. You can use the wildcard characters ? 和 * to specify multiple files.

/f

Fixes errors on the disk. The disk must be locked. If chkdsk can’t lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.

/v

Displays the name of each file in every directory as the disk is checked.

/r

Locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.

/x

Forces the volume to dismount first, if necessary. All open handles to the drive are invalidated. /x also includes the functionality of /f.

/i

Use with NTFS only. Performs a less vigorous check of index entries, which reduces the amount of time required to run chkdsk.

/c

Use with NTFS only. Doesn’t check cycles within the folder structure, which reduces the amount of time required to run chkdsk.

/l[:<size>]

Use with NTFS only. Changes the log file size to the size you type. If you omit the size parameter, /l displays the current size.

/b

Use with NTFS only. Clears the list of bad clusters on the volume and rescans all allocated and free clusters for errors. /b includes the functionality of /r. Use this parameter after imaging a volume to a new hard disk drive.

/scan

Use with NTFS only. Runs an online scan on the volume.

/forceofflinefix

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).

/perf

Use with NTFS only (must be used with /scan). Uses more system resources to complete a scan as fast as possible. This might have a negative performance impact on other tasks running on the system.

/spotfix

Use with NTFS only. Runs spot fixing on the volume.

/sdcleanup

Use with NTFS only. Garbage collect unneeded security descriptor data (implies /f).

/offlinescanandfix

Runs an offline scan and fix on the volume.

/freeorphanedchains

Use with FAT/FAT32/exFAT only. Frees any orphaned cluster chains instead of recovering their contents.

/markclean

Use with FAT/FAT32/exFAT only. Marks the volume clean if no corruption was detected, even if /f wasn’t specified.

/?

Displays help at the command prompt.

How to Choose the Right Command

Depending on the issue you’re facing with your hard drive, you can choose different combinations of these parameters to optimize the repair process.

  • For basic disk repairs:使用 /f to fix errors on the disk.
  • For bad sector recovery:使用 /r to recover readable data from bad sectors and fix file system errors.
  • To perform a more thorough check:使用 /r along with /x to dismount the drive before scanning.
  • To speed up the scan:使用 /i with NTFS to reduce the check time or /perf to allocate more system resources for faster scanning.
  • For offline repairs:使用 /offlinescanandfix to scan and fix the volume when it’s not actively used.

Benefits of Using CHKDSK Commands

  • Repair file system errors: Check Disk can fix corruption in file systems.
  • Recover data from bad sectors: The /r option recovers readable information from bad sectors.
  • Improved performance: Regular use of Check Disk can keep your hard drive in optimal working condition.

Limitations of CHKDSK

  • Data loss: In some cases, Check Disk can delete files if they are located in bad sectors or corrupt areas of the disk.
  • 耗時: Depending on the size of your drive and the parameters you use, the scan process can be time-consuming.

總結

CHKDSK commands are valuable tools for maintaining and repairing your hard drive. They can check and fix file system errors, recover data from bad sectors, and help optimize the overall performance of your system. However, if your data is already lost or Check Disk is unable to access a corrupted partition, you will need a specialized data recovery tool.

如果 CHKDSK cannot repair your drive or if data is lost, Magic Data Recovery is your reliable solution. It can recover files even if your partition is corrupted, and Check Disk failed to fix the issues. Download Magic Data Recovery now to safely restore your data and regain access to your files.

下載 Magic Data Recovery

支援 Windows 7/8/10/11 和 Windows Server

FAQs About CHKDSK Commands

1. Which is better, CHKDSK r or f?

The /r option is more comprehensive because it checks for bad sectors and attempts to recover data. The /f option only fixes file system errors. Use /r for a more thorough repair.

2. How to run a CHKDSK repair?

To repair your disk, use the command chkdsk C: /f (or replace "C:" with the drive letter of your target volume). You can also use /r for bad sector recovery.

3. How do I repair corrupted files with CHKDSK?

To repair corrupted files, run chkdsk C: /r, which checks for bad sectors and attempts to recover data.

4. How to recover CHKDSK deleted files?

If CHKDSK deletes files, consider using a data recovery tool like Magic Data Recovery to recover your lost files from the corrupted or damaged drive.

5. Should I run SFC or DISM?

SFC (System File Checker) is best for repairing Windows system files. DISM (Deployment Imaging Service and Management Tool) is more suited for resolving image corruption issues.

6. How to repair a slow hard disk?

Run chkdsk C: /r to fix slow hard drives caused by bad sectors. Additionally, defragmenting your drive or using system optimization tools can help.
  • WiKi
Smith, Erin

Erin Smith 是 Amagicsoft 公認最專業的作家之一。過去 10 年來,她不斷磨練自己的寫作技巧,幫助數百萬讀者解決技術問題。.

文章導覽

上一頁
下一頁

搜尋

類別

  • Bitlocker 復原
  • 刪除的檔案復原
  • 格式化檔案復原
  • 硬碟復原
  • 授權金鑰復原
  • 遺失檔案復原
  • 記憶卡復原
  • 新聞
  • 密碼復原
  • 照片復原
  • SSD 復原
  • USB 磁碟機復原
  • 使用者指南
  • 視訊復原
  • 維基

最近發表的文章

  • 檢索硬碟機中已刪除的檔案
    如何擷取硬碟機中已刪除的檔案
  • 如何使用 CHKDSK 指令
    CHKDSK 指令:完整指南
  • 如何執行 chkdsk
    CHKDSK:修復磁碟錯誤的終極指南

標籤

如何 Magic Data Recovery Magic Recovery Key WiKi

相關文章

如何執行 chkdsk
維基

CHKDSK:修復磁碟錯誤的終極指南

2025 年 12 月 17 日 Smith, Erin 尚未有評論

在這份全面的指南中,我們將深入探討 CHKDSK - 它是什麼、chkdsk 做了什麼,以及如何執行 chkdsk 的精確步驟。我們將探討其優點、限制及潛在風險。最重要的是,我們將針對執行 CHKDSK 可能導致無法存取磁碟分割或資料遺失的情況,提供可靠的安全網, [...]

什麼是 ExFAT 檔案系統
維基

什麼是 exFAT 檔案系統

2025 年 12 月 16 日 Vasilii 尚未有評論

exFAT (Extended File Allocation Table) 是微軟為克服 FAT32 的限制 (尤其是 4 GB 的最大檔案大小限制) 而開發的現代檔案系統。exFAT 已針對大型檔案、跨平台 [...] 進行最佳化。

什麼是 NTFS 檔案系統
維基

什麼是 NTFS 檔案系統

2025 年 12 月 16 日 Vasilii 尚未有評論

NTFS(新技術檔案系統)是微軟開發的專屬記錄檔案系統,用作現代 Windows 作業系統(包括 Windows 10 和 Windows 11)的預設檔案系統。其設計目的在於克服 FAT32 等早期檔案系統的限制,為 [...] 提供更佳的可靠性、安全性、可擴充性和效能。

amagicsoft 標誌圖示

我們的願景是成為全球知名的軟體品牌和服務供應商,為使用者提供頂級的產品和服務。

產品
  • Magic Data Recovery
  • Magic Recovery Key
政策
  • 條款
  • 隱私權政策
  • 退款政策
  • 許可協議
公司簡介
  • 關於 Amagicsoft
  • 聯絡我們
  • 商店
追蹤我們

版權所有 © 2025 Amagicsoft。版權所有。

  • 條款
  • 隱私權政策