Windows 7、8、および10でChkdskのハードドライブの問題を修正する方法
ハードドライブエラーが発生した場合、または最初はハードドライブに関連付けられていない可能性のある奇妙な動作が発生した場合はいつでも、CheckDiskが命の恩人になる可能性があります。これは、Windowsのすべてのバージョンに付属しているCheckDiskツールを使用するための完全なガイドです。
Chkdskの機能(およびいつ使用するか)
チェックディスクユーティリティ(chkdskとも呼ばれます(実行に使用するコマンドであるため))は、ハードドライブ全体をスキャンして、問題を見つけて修正します。これはそれほどエキサイティングなツールではなく、実行には時間がかかる場合がありますが、長期的には大きな問題やデータの損失を防ぐのに役立ちます。Chkdskは、実行方法に応じて、いくつかの機能を実行します。
- Chkdskの基本的な機能は、ディスクボリューム上のファイルシステムとファイルシステムメタデータの整合性をスキャンし、検出した論理ファイルシステムエラーを修正することです。このようなエラーには、ボリュームのマスターファイルテーブル(MFT)の破損したエントリ、ファイルに関連付けられた不正なセキュリティ記述子、または個々のファイルに関するタイムスタンプやファイルサイズ情報の不整合が含まれる場合があります。
- Chkdskは、オプションでディスクボリューム上のすべてのセクターをスキャンして不良セクターを探すこともできます。不良セクタには、データの書き込みが不適切な場合に発生する可能性のあるソフト不良セクタと、ディスクの物理的損傷が原因で発生する可能性のあるハード不良セクタの2つの形式があります。Chkdskは、ソフト不良セクタを修復し、ハード不良セクタにマークを付けて、再び使用されないようにすることで、これらの問題を修正しようとします。
それはすべて非常に技術的に聞こえるかもしれませんが、心配しないでください。いつ実行する必要があるかを知るために、それがどのように機能するかを理解する必要はありません。
定期メンテナンスの一環として、chkdskをサポートするドライブにSMARTツールを使用するとともに、chkdskを数か月ごとに実行することをお勧めします。また、停電やシステムクラッシュの後など、Windowsが異常にシャットダウンしたときはいつでも実行することを検討する必要があります。Windowsは起動時に自動的にスキャンを実行する場合がありますが、ほとんどの場合、自分でスキャンを実行する必要があります。アプリが読み込まれない、またはクラッシュするという奇妙な問題が発生していて、別の方法で解決できない場合でも、ディスクを確認することを検討してください。
例:ロード直後にOutlookが突然クラッシュし始めるという問題が発生しました。多くのトラブルシューティングを行った後、chkdskスキャンにより、Outlookデータファイルが保存されている不良セクタがあることが判明しました。幸い、私の場合、chkdskはセクターを回復することができ、その後すべてが正常に戻りました。
関連:不良セクタの説明:ハードドライブが不良セクタを取得する理由とその対処方法
chkdskで修復できない問題(特にハード不良セクタ)が発生した場合、データが使用できなくなる可能性があります。可能性は低いですが、発生する可能性があります。そのため、chkdskを実行する前に、適切なバックアップルーチンが用意されていることを常に確認し、PCをバックアップする必要があります。
chkdskツールは、すべてのバージョンのWindowsでほぼ同じように機能します。この記事ではWindows10を使用するため、Windows 7または8を使用している場合は画面が少し異なる場合がありますが、chkdskは同じように動作し、手順が異なる点を指摘します。また、Windowsを起動することさえできない場合に備えて、コマンドプロンプトから実行する方法についても説明します。
Windowsからディスクをチェックする方法
Windowsデスクトップからディスクチェックツールを実行するのは簡単です。ファイルエクスプローラーで、確認するドライブを右クリックし、[プロパティ]を選択します。
プロパティウィンドウで、「ツール」タブに切り替えて、「チェック」ボタンをクリックします。Windows 7では、ボタンの名前は「今すぐ確認」です。
Windows 8および10では、Windowsはドライブにエラーが見つからなかったことを通知する場合があります。「スキャンドライブ」をクリックすると、引き続き手動スキャンを実行できます。これにより、最初に修復を試行せずにスキャンが実行されるため、この時点ではPCは再起動されません。クイックディスクスキャンで問題が見つかった場合、Windowsはそのオプションを表示します。ただし、強制したい場合は、コマンドプロンプトを使用してchkdskを実行する必要があります。これについては、この記事の後半で説明します。
Windowsがドライブをスキャンした後、エラーが見つからなかった場合は、[閉じる]をクリックするだけです。
Windows 7では、[今すぐ確認]ボタンをクリックすると、いくつかの追加オプションを選択できるダイアログが表示されます。つまり、ファイルシステムエラーを自動的に修正して不良セクタをスキャンするかどうかです。最も徹底的なディスクチェックを実行する場合は、先に進んで両方のオプションを選択し、[開始]をクリックします。セクタースキャンをミックスに追加する場合、ディスクのチェックにかなりの時間がかかる可能性があることに注意してください。それはあなたが数時間あなたのコンピュータを必要としないときにあなたがしたいことかもしれません。
ファイルシステムエラーを修正するか、不良セクタをスキャンすることを選択した場合、ディスクの使用中にWindowsはスキャンを実行できません。その場合は、スキャンをキャンセルするか、次にWindowsを再起動したときにディスクチェックを実行するようにスケジュールするかを選択できます。
スケジュールされたディスクチェックをチェックするまたはキャンセルする方法
If you’re not sure whether a disk check is scheduled for your next restart, it’s easy enough to check at the Command Prompt. You’ll need to run Command Prompt with administrative privileges. Press Start and then type “command prompt.” Right-click the result and then choose “Run as administrator.”
At the prompt, type the following command—substituting the drive letter if necessary.
chkntfs c:
If you have scheduled a manual check of the drive, you’ll see a message to that effect.
If Windows has scheduled an automatic check of the drive, you’ll see a message letting you know that the volume is dirty, which just means it’s been flagged with potential errors. This serves as indication that Windows will run a check the next time it starts. If no automatic scan is scheduled, you’ll just see a message letting you know that the volume is not dirty.
If a disk check is scheduled for the next time you start Windows, but have decided you don’t want the check to happen, you can cancel the check by typing the following command:
chkntfs /x c:
You won’t get any kind of feedback that the scan has been cancelled, but it will have been. This command actually excludes the drive from the chkdsk command for the next start. If you do restart to find that a scan has been scheduled, Windows is also kind enough to provide you with about ten seconds to skip the scan if you want to.
How to Use the ChkDsk Command at the Command Prompt
If you’re willing to use the Command Prompt (or you have to because Windows won’t boot properly), you can exert a little more control over the disk checking process. Plus, if you’re using Windows 8 or 10, it’s the only way to force automatic fixing or bad sector scanning into the mix. Open up the Command Prompt with administrative privileges by hitting Windows+X and selecting “Command Prompt (Admin).” You’ll be using the chkdsk
command. The command supports a number of optional switches, but we’re mostly concerned with two of them: /f
and /r
.
If you just use the chkdsk
command by itself, it will scan your drive in read-only mode, reporting errors but not attempting to repair them. For this reason, it can usually run without having to restart your PC.
If you want chkdsk
to attempt to repair logical file system errors during the scan, add the /f
switch. Note that if the drive has files that are in use (and it probably will), you’ll be asked to schedule a scan for the next restart.
chkdsk /f c:
If you want chkdsk
to scan for bad sectors as well, you’ll use the /r
switch. When you use the /r
switch, the /f
switch is implied, meaning that chkdsk
will scan for both logical errors and bad sectors. But while it’s not really necessary, it also won’t hurt anything if you throw both the /r
and /f
switches on the command at the same time.
chkdsk /r c:
Running chkdsk /r
gives you the most thorough scan you can perform on a volume, and if you have some time to spare for the sector check, we highly recommend running it at least periodically.
There are, of course, other parameters you can use with chkdsk
. So, for the sake of completeness—and your geeky enjoyment—here they are:
C:\>chkdsk /? Checks a disk and displays a status report. CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B] volume Specifies the drive letter (followed by a colon), mount point, or volume name. filename FAT/FAT32 only: Specifies the files to check for fragmentation. /F Fixes errors on the disk. /V On FAT/FAT32: Displays the full path and name of every file on the disk. On NTFS: Displays cleanup messages if any. /R Locates bad sectors and recovers readable information (implies /F). /L:size NTFS only: Changes the log file size to the specified number of kilobytes. If size is not specified, displays current size. /X Forces the volume to dismount first if necessary. All opened handles to the volume would then be invalid (implies /F). /I NTFS only: Performs a less vigorous check of index entries. /C NTFS only: Skips checking of cycles within the folder structure. /B NTFS only: Re-evaluates bad clusters on the volume (implies /R) The /I or /C switch reduces the amount of time required to run Chkdsk by skipping certain checks of the volume.
Hopefully, Chkdsk will fix whatever hard drive problems you may have, and you can go back to using your computer normally.