Chkdsk коды ошибок

Public content repository for Windows Server 2016 content. - windowsserverdocs/chkdsk.md at main · MicrosoftDocs/windowsserverdocs
title description ms.topic ms.assetid author ms.author ms.date

chkdsk

Reference article for the chkdsk command, which checks the file system and file system metadata of a volume for logical and physical errors.

reference

62912a3c-d2cc-4ef6-9679-43709a286035

jasongerend

alalve

11/22/2022

Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, chkdsk displays only the status of the volume and does not fix any errors. If used with the /f, /r, /x, or /b parameters, it fixes errors on the volume.

[!IMPORTANT]
Membership in the local Administrators group, or equivalent, is the minimum required to run chkdsk. To open a command prompt window as an administrator, right-click Command prompt in the Start menu, and then click Run as administrator.

[!IMPORTANT]
Interrupting chkdsk is not recommended. However, canceling or interrupting chkdsk should not leave the volume any more corrupt than it was before chkdsk was run. Running chkdsk again checks and should repair any remaining corruption on the volume.

[!NOTE]
Chkdsk can be used only for local disks. The command cannot be used with a local drive letter that has been redirected over the network.

Syntax

chkdsk [<volume>[[<path>]<filename>]] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:<size>]] [/b]

Parameters

Parameter Description
<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 ? and * wildcard characters to specify multiple files.
/f Fixes errors on the disk. The disk must be locked. If chkdsk cannot 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. Does not 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 may 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 was not specified.
/? Displays help at the command prompt.

Remarks

  • The /i or /c switch reduces the amount of time required to run chkdsk by skipping certain volume checks.

  • If you want chkdsk to correct disk errors, you can’t have open files on the drive. If files are open, the following error message appears:

    Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)
    
  • If you choose to check the drive the next time you restart the computer, chkdsk checks the drive and corrects errors automatically when you restart the computer. If the drive partition is a boot partition, chkdsk automatically restarts the computer after it checks the drive.

  • You can also use the chkntfs /c command to schedule the volume to be checked the next time the computer is restarted. Use the fsutil dirty set command to set the volume’s dirty bit (indicating corruption), so that Windows runs chkdsk when the computer is restarted.

  • You should use chkdsk occasionally on FAT and NTFS file systems to check for disk errors. Chkdsk examines disk space and disk use and provides a status report specific to each file system. The status report shows errors found in the file system. If you run chkdsk without the /f parameter on an active partition, it might report spurious errors because it cannot lock the drive.

  • Chkdsk corrects logical disk errors only if you specify the /f parameter. Chkdsk must be able to lock the drive to correct errors.

    Because repairs on FAT file systems usually change a disk’s file allocation table and sometimes cause a loss of data, chkdsk might display a confirmation message similar to the following:

    10 lost allocation units found in 3 chains.
    Convert lost chains to files?
    
    • If you press Y, Windows saves each lost chain in the root directory as a file with a name in the format File<nnnn>.chk. When chkdsk finishes, you can check these files to see if they contain any data you need.

    • If you press N, Windows fixes the disk, but it does not save the contents of the lost allocation units.

  • If you don’t use the /f parameter, chkdsk displays a message that the file needs to be fixed, but it does not fix any errors.

  • If you use chkdsk /f* on a very large disk or a disk with a very large number of files (for example, millions of files), chkdsk /f might take a long time to complete.

  • Use the /r parameter to find physical disk errors in the file system and attempt to recover data from any affected disk sectors.

  • If you specify the /f parameter, chkdsk displays an error message if there are open files on the disk. If you do not specify the /f parameter and open files exist, chkdsk might report lost allocation units on the disk. This could happen if open files have not yet been recorded in the file allocation table. If chkdsk reports the loss of a large number of allocation units, consider repairing the disk.

  • Because the Shadow Copies for Shared Folders source volume cannot be locked while Shadow Copies for Shared Folders is enabled, running chkdsk against the source volume might report false errors or cause chkdsk to unexpectedly quit. You can, however, check shadow copies for errors by running chkdsk in Read-only mode (without parameters) to check the Shadow Copies for Shared Folders storage volume.

  • The chkdsk command, with different parameters, is available from the Recovery Console.

  • On servers that are infrequently restarted, you may want to use the chkntfs or the fsutil dirty query commands to determine whether the volume’s dirty bit is already set before running chkdsk.

Understanding exit codes

The following table lists the exit codes that chkdsk reports after it has finished.

Exit code Description
0 No errors were found.
1 Errors were found and fixed.
2 Performed disk cleanup (such as garbage collection) or did not perform cleanup because /f was not specified.
3 Could not check the disk, errors could not be fixed, or errors were not fixed because /f was not specified.

Examples

To check the disk in drive D and have Windows fix errors, type:

If it encounters errors, chkdsk pauses and displays messages. Chkdsk finishes by displaying a report that lists the status of the disk. You cannot open any files on the specified drive until chkdsk finishes.

To check all files on a FAT disk in the current directory for noncontiguous blocks, type:

Chkdsk displays a status report, and then lists the files that match the file specifications that have noncontiguous blocks.

Viewing chkdsk logs

There are two methods that can be used to retrieve chkdsk log file(s) in Windows. View the methods described below:

Event Viewer

To view logs with Event Viewer, navigate to the following:

  1. Start > Control Panel > Administrative Tools > Event Viewer.

    Alternatively, press Win + R keys to bring up the run dialog box, type eventvwr.msc, and select OK.

  2. Expand Windows Logs > right-click on Application > select Filter Current Log.

  3. Within the Filter Current Log window, navigate to Event sources drop-down menu, select Chkdsk and Wininit.

  4. Click OK to finish filtering for these two sources.

PowerShell

There are two source types when retrieving logs in PowerShell, chkdsk and wininit. Run one of the two commands in PowerShell to view the most current chkdsk log:

get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "chkdsk"} | fl timecreated, message
get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "wininit"} | fl timecreated, message

To export the log to a specific location, the following can be added to the end of the command | out-file "$env:userprofilelocationfilename.txt". Example:

get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "chkdsk"} | fl timecreated, message | out-file "C:UsersAdministratorDesktopChkdsk_Log.txt"
get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "wininit"} | fl timecreated, message | out-file "C:UsersAdministratorDesktopWininit_Log.txt"

Related links

  • Command-Line Syntax Key
  • 14.08.2020
  • 11 751
  • 2
  • 01.11.2020
  • 8
  • 7
  • 1

CHKDSK - описание команды и примеры использования

  • Содержание статьи
    • Описание
    • Синтаксис
    • Параметры
    • Примечания
    • Таблица кодов с ошибками CHKDSK
    • Примеры использования
    • Справочная информация
    • Комментарии к статье ( 2 шт )
    • Добавить комментарий

Описание

CHKDSK — Выводит на экран отчета о состоянии диска в форме, зависящей от используемой файловой системы. Команда chkdsk также составляет список ошибок на диске и исправляет их. Выполненная без параметров команда chkdsk выводит информацию о состоянии текущего диска, но не исправляет ошибки. Команду могут выполнять только члены группы администраторов компьютера, поэтому, если вы получаете ошибку с таким вот содержимым:

В доступе отказано, так как у вас нет достаточных прав или
диск, возможно, занят другим процессом.
Вам необходимо вызвать эту служебную программу в режиме с повышенными правами
и убедиться в том, что диск разблокирован.

То первым делом, надо попытаться запустить данную команду из командной строки, запущенной с правами администратора, более подробно можно прочитать в нашей статье: Как запустить командную строку с правами администратора

Синтаксис

chkdsk [том:][[путь] имя_файла] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:размер]]

Параметры

Параметр Описание
том: Указывает букву диска (с последующим двоеточием), точку подключения или имя тома
[путь] имя_файла Задает местонахождение и имя файла или имена множества файлов, для которых команда chkdsk проверит степень фрагментации. Для задания нескольких файлов можно использовать подстановочные знаки (* и ?)
/f Задает исправление ошибок на диске. Диск должен быть заблокирован. Если диск не заблокирован командой chkdsk, отображается запрос на проверку диска при следующей перезагрузке компьютера
/v Выводит на экран имена проверяемых файлов и каталогов
/r Обнаруживает поврежденные сектора и восстанавливает ту часть данных, которая еще может быть прочитана. Диск должен быть заблокирован
/x Используйте только с файловой системой NTFS. При необходимости инициирует операцию отключения тома в качестве первого действия. Все открытые дескрипторы диска будут неверны. Включает также функциональные возможности параметра /f.
/i Используйте только с файловой системой NTFS. Выполняет менее тщательную проверку записей индекса, что уменьшает время, необходимое для работы команды chkdsk
/c Используйте только с файловой системой NTFS. Пропускает проверку циклов в структуре папок, что уменьшает время, необходимое для работы команды chkdsk
/l[:размер] Используйте только с файловой системой NTFS. Устанавливает указанный размер журнала. Если размер не указан, параметр /l выводит текущий размер
/? Отображение справки в командной строке

Примечания

  • Чтобы выполнить команду chkdsk для жестких дисков, необходимо быть членом группы администраторов.
  • Если требуется исправить ошибки на диске с помощью команды chkdsk, нельзя открывать файлы на этом диске. В противном случае выводится следующее сообщение о ошибке:
    Невозможно выполнить команду Chkdsk, так как указанный том используется другим процессом. Следует ли выполнить проверку этого тома при следующей перезагрузке системы? [Y(да)/N(нет)]
    Если пользователь выберет эту возможность, команда chkdsk проверит диск и автоматически исправит ошибки при перезагрузке компьютера. Если проверяемый раздел диска является загрузочным, команда chkdsk автоматически перезагрузит компьютер после проверки этого диска.
  • Команда chkdsk выполняет проверку дискового пространства и его использования для файловых систем FAT и NTFS. Команда Chkdsk позволяет получить отчет о состоянии со сведениями по каждой файловой системе. Отчет о состоянии диска включает перечень найденных ошибок. Если команда chkdsk запущена без параметра /f в активном разделе, может быть получено сообщение о наличии серьезных ошибок, так как диск нельзя заблокировать. Для поиска ошибок команду chkdsk нужно запускать время от времени на каждом диске.
  • Если указан параметр командной строки /f, программа chkdsk исправляет ошибки на диске. При работе chkdsk должна обеспечиваться возможность блокирования диска для исправления ошибок. Поскольку при исправлении ошибок обычно изменяется таблица размещения файлов и иногда происходит потеря данных, программа chkdsk запрашивает подтверждение в следующем виде:
    Потерянных кластеров: 10; цепочек: 3.
    Преобразовать потерянные цепочки кластеров в файлы [Y(да)/N(нет)]?

    Если ввести Y, Windows сохраняет каждую потерянную цепочку в корневом каталоге как файл с именем формата Filennnn.chk. После завершения выполнения chkdsk можно проверить эти файлы на наличие нужных сведений. Если ввести N, Windows исправляет ошибки на диске без сохранения данных из потерянных блоков.

  • Если параметр командной строки /f не используется, программа chkdsk только выдает сообщение о наличие ошибок в файле, но не исправляет их.
  • Если команда chkdsk /f запущена на диске большого объема (например 70 Гб) или диск содержит большое количество файлов (например несколько миллионов), для завершения работы программы chkdsk может потребоваться очень много времени (возможно несколько дней). В течение всего этого времени компьютер будет недоступен для пользователей, так как chkdsk не возвращает управления до завершения работы.
  • Система Windows выводит отчет программы chkdsk о состоянии диска с файловой системой FAT в следующем формате:
    Серийный номер тома: B1AF-AFBF
    72214528 байт всего на диске
    73728 байт в 3 скрытых файлах
    30720 байт в 12 каталогах
    11493376 байт в 386 пользовательских файлах
    61440 байт в поврежденных секторах
    60555264 байт доступно на диске
    2048 байт в каждом кластере
    Всего кластеров на диске: 35261.
    29568 кластеров на диске
  • Система Windows выводит отчет программы chkdsk о состоянии диска с файловой системой NTFS в следующем формате:
    Тип файловой системы: NTFS.
    
    ПРЕДУПРЕЖДЕНИЕ! Параметр F не указан.
    CHKDSK выполняется в режиме только чтения.
    
    Этап 1. Проверка базовой структуры файловой системы...
      Обработано записей файлов: 378112.
    Проверка файлов завершена.
      Обработано больших файловых записей: 7749.
      Обработано поврежденных файловых записей: 0.
    
    Этап 2. Проверка связей имен файлов...
      Обработано записей повторного анализа: 126.
      Обработано записей индекса: 488430.
    Проверка индексов завершена.
      Проверено неиндексированных файлов: 0.
      Восстановлено неиндексированных файлов в утерянное и найденное: 0.
      Обработано записей повторного анализа: 126.
    
    Этап 3. Проверка дескрипторов безопасности...
    Проверка дескрипторов безопасности завершена.
      Обработано файлов данных: 55160.
    CHKDSK проверяет журнал USN...
      Обработано байт USN: 37157896.
    Завершена проверка журнала USN
    
    Windows проверила файловую систему и не обнаружила проблем.
    Дальнейшие действия не требуются.
    
      40843662 КБ всего на диске.
      17084612 КБ в 166171 файлах.
        125184 КБ в 55161 индексах.
             0 КБ в поврежденных секторах.
        476406 КБ используется системой.
         55312 КБ занято под файл журнала.
      23157460 КБ свободно на диске.
    
          4096 байт в каждой единице распределения.
    Всего единиц распределения на диске:   10210915.
    Доступно единиц распределения на диске:    5789365.
    
    Проверка диска и вывод отчета.
  • Если указан параметр /f, команда chkdsk выводит сообщение об ошибке, если на диске найдены открытые файлы. Если же параметр /f не указан и на диске найдены открытые файлы, chkdsk может выводить сообщения о потерянных блоках на диске. Это произойдет в случае, когда открытые файлы еще не записаны в таблице размещения файлов. Если программа chkdsk сообщает о большом количестве потерянных блоков дискового пространства, должна быть рассмотрена возможность ремонта диска.
  • Используйте параметр командной строки /r для обнаружения физических ошибок диска в файловой системе.
  • Испорченные сектора, о которых сообщает команда chkdsk, были маркированы при первом форматировании диска. Такие сектора не представляют опасности.

Таблица кодов с ошибками CHKDSK

Код завершения Описание
0 Не найдено ни одной ошибки.
1 Ошибки найдены и исправлены.
2 Была выполнена очистка диска, например удалены ненужные файлы, или очистка не была выполнена из-за отсутствия ключа /f.
3 Диск не может быть проверен, ошибки не могут быть исправлены или ошибки не были исправлены, так как не был задан ключ /f.

Примеры использования

Если требуется проверить диск D и исправить все обнаруженные ошибки в Windows, введите следующую команду:

chkdsk d: /f

Если обнаружена ошибка, выполнение программы сhkdsk приостанавливается и выводятся соответствующие сообщения. По окончании выполнения команды chkdsk на экран выводится отчет, содержащий сведения о текущем состоянии диска. До завершения работы chkdsk нельзя открывать какие-либо файлы на указанном диске.
Чтобы проверить фрагментацию всех файлов в текущем каталоге на диске с файловой системой FAT, введите следующую команду:

chkdsk *.*

Chkdsk выведет отчет о состоянии диска, а затем список фрагментированных файлов, удовлетворяющих шаблону команды.

Справочная информация

Windows имеет множество утилит командной строки для удобства пользователя. Команда chkdsk (произносится как «проверить диск») — один из таких замечательных примеров. Эта команда позволяет сканировать и проверять логическую целостность третичного хранилища вашей системы. Он предназначен для проверки файловой системы на наличие ошибок, а также для их исправления.Вы также можете использовать несколько параметров для выполнения действий инструмента (Проверить диск) в различных перестановках и комбинациях. В целом, chkdsk это полезный инструмент на вашем компьютере с Windows 11. И в этом руководстве мы покажем, как вы можете запустить инструмент на своем ПК и максимально использовать его возможности.

Основная функция команды chkdsk — проверить целостность файловой системы на жестком диске и внести необходимые исправления. Команда также может исправить поврежденные сектора на жестком диске.

Плохие сектора далее делятся на «Мягкие поврежденные сектора» и «Жесткие поврежденные сектора». «Мягкие плохие сектора» — это логически поврежденные сектора, и chkdskкоманда может легко их исправить. С другой стороны, «жесткие поврежденные сектора» возникают из-за физического повреждения диска. Хотя chkdsk не может их восстановить, он определенно может пометить сектора, чтобы избежать записи данных и предотвратить непредвиденные проблемы.

Вот список проблем, которые, как сообщается, может решить команда chkdsk:

  • Невозможно прочитать данные с жесткого диска
  • Компьютер выдает ошибки загрузки
  • Медленная или сниженная производительность при доступе к файлам на компьютере
  • Компьютер резко выключается во время выполнения задачи

Запустите CHKDSK с помощью проводника

Если вы не очень разбираетесь в технологиях, Windows дает вам возможность запустить команду chkdsk из проводника без ввода каких-либо команд в командной строке.

Для этого дважды щелкните значок «Этот компьютер» на рабочем столе. Кроме того, вы также можете нажать сочетание клавиш Windows+ E на клавиатуре, чтобы открыть его.

Теперь щелкните правой кнопкой мыши диск, который вы хотите проверить, и выберите пункт «Свойства» в контекстном меню.

Перейдите на вкладку «Инструменты» в окне «Свойства Windows», а затем нажмите кнопку «Проверить» в разделе «Проверка ошибок».

Если на диске нет ошибок, вы можете получить сообщение об этом от системы. Если вы все еще хотите продолжить сканирование, нажмите «Сканировать диск» в командной строке. Если нет, нажмите «Отмена».

Сканирование может занять некоторое время. Подождите терпеливо, пока процесс работает в фоновом режиме.

Если вы хотите получить больше контроля над командой chkdsk, вы можете вызвать ее с помощью командной строки.


Запустите CHKDSK с помощью командной строки

Хотя этот метод не предлагает удобства графического интерфейса, он определенно предлагает полный контроль и большую гибкость в использовании команд с помощью параметров.

Сначала откройте Терминал Windows от имени администратора на своем ПК. Найдите «Терминал» в меню «Пуск», затем щелкните правой кнопкой мыши приложение «Терминал Windows» в результатах и ​​выберите параметр «Запуск от имени администратора» в контекстном меню.

Затем вы увидите окно UAC (Контроль учетных записей). Если вы не вошли в систему с учетной записью администратора, введите необходимые учетные данные для входа администратора. В противном случае нажмите кнопку «Да», чтобы открыть окно терминала Windows с повышенными правами.

Затем щелкните значок карата (стрелка вниз) в окне терминала. Затем выберите параметр «Командная строка» в дополнительном меню. Вы также можете нажать Ctrl+ Shift+ 2, чтобы получить к нему доступ.

Теперь введите или скопируйте/вставьте следующую команду в окно командной строки и нажмите Enter.

chkdsk /f

Вы можете получить приглашение запланировать chkdskпроцедуру при следующей загрузке вашего компьютера, поскольку диск не может использоваться, пока инструмент выполняет свою работу. Чтобы запланировать нажмите Yна клавиатуре. Если нет, нажмите N.

Наконец, выключите компьютер из меню «Пуск» и снова включите его. Инструмент chkdsk автоматически начнет сканирование тома хранилища до загрузки ПК.


Параметры команды CHKDSK

chkdsk это очень универсальная команда и, следовательно, поддерживает множество параметров. Вот все те параметры и их функции, которые поддерживает команда chkdsk.

Параметры Функции
/f Сканирует и исправляет ошибки на диске. Если том используется, вы получите сообщение, чтобы запланировать проверку при следующей загрузке компьютера.
/v Проверяет диск и отображает имя каждого файла в каждом каталоге вашей системы.
/r Находит все физические поврежденные сектора на дисках и восстанавливает читаемую информацию. Также включает функциональные возможности параметра ‘/f’.
/x При необходимости принудительно отключает том, а затем сканирует и исправляет диск. Включает функциональность параметра ‘/f’.
/i Пропускает определенные проверки тома для записей индекса, чтобы сократить время, необходимое для запуска CHKDSK. Может использоваться только с файловой системой NTFS.
/c Только для использования с файловой системой NTFS. Пропускает циклы проверки в папке для структурирования, чтобы сократить время CHKDSK.
/I[:<размер>] Изменяет размер файла журнала на желаемый размер. При использовании без параметра size команда отображает текущий размер. Может использоваться только с файловой системой NTFS.
/b Этот параметр очищает текущий список обнаруженных поврежденных секторов на томе и повторно сканирует выделенные, а также свободные кластеры на наличие ошибок. Также выполняет функции параметра ‘/r’. В основном используется после размещения кластеров на новом жестком диске. Кроме того, может использоваться только с файловой системой NTFS.
/scan Запускает онлайн-сканирование тома. Может использоваться только с файловой системой NTFS.
/forceofflinefix (Должен использоваться с параметром /scan) Обход всех онлайн-исправлений, все обнаруженные дефекты ставятся в очередь для автономного исправления.
/perf (Должен использоваться с параметром /scan) Повышает приоритет сканирования и увеличивает использование системных ресурсов для более быстрого выполнения сканирования. Может негативно повлиять на другие запущенные задачи. Может использоваться только с файловой системой NTFS.
/spotfix Этот параметр запускает точечную фиксацию на томе. Может использоваться только с файловой системой NTFS.
/sdcleanup Мусор собирает ненужные данные дескриптора безопасности (подразумевается параметр ‘/f’). Используется только с файловой системой NTFS.
/offlinescanandfix Запускает автономное сканирование и исправляет том.
/freeorphanedchains Потерянные цепочки кластеров освобождаются вместо восстановления их содержимого. Используется только с файловыми системами FAT/FAT32/exFAT.
/markclean Помечает том как чистый, если не было обнаружено повреждений, даже если параметр ‘/f’ не был указан. Работает только с файловыми системами FAT/FAT32/exFAT.
/? Отображает справку и список всех поддерживаемых параметров для CHKDSK.

Коды выхода CHKDSK

Команда chkdskвозвращает коды выхода после завершения процесса. Крайне важно знать эти коды выхода, чтобы знать результат всей операции.

Код выхода Описание
0 Ошибок не обнаружено.
1 Ошибки были найдены и исправлены.
2 Выполнена очистка диска (например, сборка мусора) или не выполнена очистка, так как не указан параметр ‘/f’.
3 Не удалось проверить диск, ошибки исправить не удалось. Или ошибки не были исправлены, потому что не был указан параметр ‘/f’.

И это все! В следующий раз, когда вы столкнетесь с приложениями или компьютером, который неожиданно выключится, эта команда chkdskпридет вам на помощь, а вместе с ней и это руководство.

Вывод на экран отчета о состоянии диска в форме, зависящей от используемой файловой системы. Команда chkdsk также составляет список ошибок на диске и исправляет их. Выполненная без параметров команда chkdsk выводит информацию о состоянии текущего диска.

Синтаксис

chkdsk [том:][[путьимя_файла]  [/f]  [ /v]  [/r]  [/x]  [/i]  [/c]  [ /l[:размер]]

Параметры

том:
Указывает букву диска (с последующим двоеточием), точку подключения или имя тома.
[путьимя_файла
Задает местонахождение и имя файла или имена множества файлов, для которых команда chkdsk проверит степень фрагментации. Для задания нескольких файлов можно использовать подстановочные знаки (* и ?).
/f
Задает исправление ошибок на диске. Диск должен быть заблокирован. Если диск не заблокирован командой chkdsk, отображается запрос на проверку диска при следующей перезагрузке компьютера.
/v
Выводит на экран имена проверяемых файлов и каталогов.
/r
Обнаруживает поврежденные сектора и восстанавливает ту часть данных, которая еще может быть прочитана. Диск должен быть заблокирован.
/x
Используйте только с файловой системой NTFS. При необходимости инициирует операцию отключения тома в качестве первого действия. Все открытые дескрипторы диска будут неверны. Параметр /x включает также функциональные возможности параметра /f.
/i
Используйте только с файловой системой NTFS. Выполняет менее тщательную проверку записей индекса, что уменьшает время, необходимое для работы команды chkdsk.
/c
Используйте только с файловой системой NTFS. Пропускает проверку циклов в структуре папок, что уменьшает время, необходимое для работы командыchkdsk.
/l[:размер]
Используйте только с файловой системой NTFS. Устанавливает указанный размер журнала. Если размер не указан, параметр /l выводит текущий размер.
/?
Отображение справки в командной строке.

Заметки

  • Выполнение команды chkdsk

    Чтобы выполнить команду chkdsk для жестких дисков, необходимо быть членом группы администраторов.

  • Проверка заблокированных дисков при перезагрузке

    Если требуется исправить ошибки на диске с помощью команды chkdsk, нельзя открывать файлы на этом диске. В противном случае выводится следующее сообщение о ошибке:

    Невозможно выполнить команду Chkdsk, так как указанный том используется другим процессом. Следует ли выполнить проверку этого тома при следующей перезагрузке системы? [Y(да)/N(нет)]

    Если пользователь выберет эту возможность, команда chkdsk проверит диск и автоматически исправит ошибки при перезагрузке компьютера. Если проверяемый раздел диска является загрузочным, команда chkdskавтоматически перезагрузит компьютер после проверки этого диска.

  • Отчет об ошибках

    Команда chkdsk выполняет проверку дискового пространства и его использования для файловых систем таблица размещения файлов (FAT) и NTFS. Команда Chkdsk позволяет получить отчет о состоянии со сведениями по каждой файловой системе. Отчет о состоянии диска включает перечень найденных ошибок. Если команда chkdsk запущена без параметра /f в активном разделе, может быть получено сообщение о наличии серьезных ошибок, так как диск нельзя заблокировать. Для поиска ошибок командуchkdsk нужно запускать время от времени на каждом диске.

  • Исправление ошибок

    Если указан параметр командной строки /f, программа chkdsk исправляет ошибки на диске. При работе chkdsk должна обеспечиваться возможность блокирования диска для исправления ошибок. Поскольку при исправлении ошибок обычно изменяется таблица размещения файлов и иногда происходит потеря данных, программа chkdsk запрашивает подтверждение в следующем виде:

    Потерянных кластеров: 10; цепочек: 3.

    Преобразовать потерянные цепочки кластеров в файлы [Y(да)/N(нет)]?

    Если ввести Y, Windows сохраняет каждую потерянную цепочку в корневом каталоге как файл с именем формата Filennnn.chk. После завершения выполнения chkdsk можно проверить эти файлы на наличие нужных сведений. Если ввести N, Windows исправляет ошибки на диске без сохранения данных из потерянных блоков.

    Если параметр командной строки /f не используется, программа chkdskтолько выдает сообщение о наличие ошибок в файле, но не исправляет их.

    Если команда chkdsk /f запущена на диске большого объема (например 70 Гб) или диск содержит большое количество файлов (например несколько миллионов), для завершения работы программы chkdsk может потребоваться очень много времени (возможно несколько дней). В течение всего этого времени компьютер будет недоступен для пользователей, так как chkdsk не возвращает управления до завершения работы.

  • Проверка дисков с файловой системой FAT

    Система Windows выводит отчет программы chkdsk о состоянии диска с файловой системой FAT в следующем формате:

    Серийный номер тома: B1AF-AFBF

    72214528 байт всего на диске

    73728 байт в 3 скрытых файлах

    30720 байт в 12 каталогах

    11493376 байт в 386 пользовательских файлах

    61440 байт в поврежденных секторах

    60555264 байт доступно на диске

    2048 байт в каждом кластере

    Всего кластеров на диске: 35261.

    29568 кластеров на диске

  • Проверка дисков с файловой системой NTFS

    Система Windows выводит отчет программы chkdsk о состоянии диска с файловой системой NTFS в следующем формате:

    Тип файловой системы: NTFS.

    Проверка файлов...

    Проверка файлов завершена.

    Проверка индексов...

    Проверка индесков завершена.

    Проверка описателей защиты...

    Проверка описателей защиты завершена.

    12372 Кбайт всего на диске.

    3 Кбайт в 1 пользовательских файлах.

    2 КБ в 1 индексах.

    4217 КБ используется системой.

    8150 Кбайт свободно на диске.

    Размер кластера: 512 байт.

    Всего кластеров на диске: 24745.

    16301 кластеров на диске.

  • Использование chkdsk с открытыми файлами

    Если указан параметр /f, команда chkdsk выводит сообщение об ошибке, если на диске найдены открытые файлы. Если же параметр /f не указан и на диске найдены открытые файлы, chkdsk может выводить сообщения о потерянных блоках на диске. Это произойдет в случае, когда открытые файлы еще не записаны в таблице размещения файлов. Если программа chkdsk сообщает о большом количестве потерянных блоков дискового пространства, должна быть рассмотрена возможность ремонта диска.

  • Обнаружение физических ошибок диска

    Используйте параметр командной строки /r для обнаружения физических ошибок диска в файловой системе. Для получения сведений о восстановлении физически поврежденных файлов с помощью команды recover щелкните ссылку.

  • Отчет о поврежденных секторах диска

    Испорченные сектора, о которых сообщает команда chkdsk, были маркированы при первом форматировании диска. Такие сектора не представляют опасности.

  • Общие сведения о кодах завершения программы

    В следующей таблице перечислены коды завершения, которые могут содержатся в отчете программы chkdsk после окончания ее выполнения.

    Код выхода Описание
    0 Не найдено ни одной ошибки.
    1 Ошибки найдены и исправлены.
    2 Была выполнена очистка диска, например удалены ненужные файлы, или очистка не была выполнена из-за отсутствия ключа /f.
    3 Диск не может быть проверен, ошибки не могут быть исправлены или ошибки не были исправлены, так как не был задан ключ /f.
  • Команда chkdsk с другими параметрами доступна в консоли восстановления.

Примеры

Если требуется проверить диск в дисководе D и исправить все обнаруженные ошибки в Windows, введите следующую команду:

chkdsk d: /f

Если обнаружена ошибка, выполнение программы сhkdsk приостанавливается и выводятся соответствующие сообщения. По окончании выполнения команды chkdskна экран выводится отчет, содержащий сведения о текущем состоянии диска. До завершения работы chkdsk нельзя открывать какие-либо файлы на указанном диске.

Чтобы проверить фрагментацию всех файлов в текущем каталоге на диске с файловой системой FAT, введите следующую команду:

chkdsk *.*

Chkdsk выведет отчет о состоянии диска, а затем список фрагментированных файлов, удовлетворяющих шаблону команды.

CHKDSK is a Windows utility that can check the integrity of your hard disk and can fix various file system errors.

CHKDSK (or chkdsk.exe) is short for “check disk”.

Contents

  • 1 Screenshots
  • 2 How to run CHKDSK in Windows
    • 2.1 CHKDSK in Windows XP
      • 2.1.1 From Command Prompt
      • 2.1.2 From My Computer
      • 2.1.3 From the installation disc
    • 2.2 CHKDSK in Windows Vista
      • 2.2.1 From Command Prompt
      • 2.2.2 From My Computer
      • 2.2.3 From the installation disc
    • 2.3 CHKDSK in Windows 7
      • 2.3.1 From Command Prompt
      • 2.3.2 From My Computer
      • 2.3.3 From the installation disc
    • 2.4 CHKDSK in Windows 8 or 8.1
      • 2.4.1 From Command Prompt
      • 2.4.2 From My Computer
      • 2.4.3 From the installation disc
    • 2.5 CHKDSK in Windows 10
      • 2.5.1 From Command Prompt
      • 2.5.2 From My Computer
      • 2.5.3 From the installation disc
  • 3 Commands and parameters
  • 4 Download chkdsk
  • 5 Troubleshooting
    • 5.1 Cannot continue in read-only mode
    • 5.2 Cannot run because the volume is in the use by another process
    • 5.3 Cannot lock current drive
    • 5.4 stop chkdsk on every boot
    • 5.5 chkdsk won’t finish
    • 5.6 chkdsk won’t run at startup
  • 6 More Information
    • 6.1 Support Links
    • 6.2 Applicable Systems

It’s recommended to use this utility when your computer shows various boot errors. The check disk utility can be run if you need a fix for the following errors:

  • 0x00000024
  • Various blue screen of death errors
  • NTDETECT failed
  • Fatal error reading boot.ini
  • NTOSKRNL.EXE is missing or corrupt
  • 0x0000007B
  • 0xc0000001 on a Windows Vista computer
  • 0xc000014C on a Windows 8 computer
  • and others

The check disk utility can repair problems such as:

  • bad sectors
  • lost clusters
  • cross-linked files
  • directory errors

Screenshots

The check disk tool can be run via Command Prompt or, if you can boot into Windows from My Computer > Properties > Tools depending on the Windows version you installed on your PC.

The command line tool can be ran on a Windows XP computer from within the Windows XP Recovery Console:

chkdsk in Windows XP Recovery Console

The utility from within Windows XP, from My Computer and not Command Prompt:

chkdsk in Windows XP at My Computer

This is how you start a scan with the disk utility if you can boot into Windows Vista:

chkdsk in Windows Vista at My Computer

How to run CHKDSK in Windows

This utility is available for Windows XP, Windows Vista, Windows 7 and Windows 8 or 8.1.

If you can boot into Windows, you can run the check disk utility on each hard drive or partition you have available in My Computer.

If you can’t boot the operating system, you can run the tool from Command Prompt either by booting your computer into the Recovery Mode or by using the original installation disc to run Command Prompt.

CHKDSK in Windows XP

If you can boot into Windows XP, you can run the utility either from the Command Prompt or from My Computer.

From Command Prompt

If you can’t boot into Windows XP to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows XP – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run the utility from the Command Prompt, follow these steps:

  1. Boot your computer
  2. Go to Start
  3. Click Run
  4. Type cmd in the box:
    Windows XP - cmd command at Run
  5. Press Enter
  6. You can now type chkdsk to open the utility in a read-only mode
    Windows XP Command Prompt
  7. Press Enter
  8. To repair errors, follow these instructions:
    • To repair errors without scanning for any bad sectors, type chkdsk volume: /f and press Enter, where volume is the letter of the drive you’d like to run a scan for, e.g. C: or D:
      Example of a command you need to type if your volume is C:

      chkdsk C: /f
    • To repair errors and scan for bad sectors, type chkdsk volume: /r and press Enter, where volume is the letter of the drive you’d like to repair, e.g. C: or D:
      Example of command you need to type if the volume you want to scan is D:

      chkdsk D: /r

From My Computer

If you can’t boot into Windows XP to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows XP – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run CHKDSK from within Windows XP, but without Command Prompt, follow these steps:

  1. Boot your computer
  2. Go to on My Computer (double-click on the icon)
  3. Right-click on the hard disk you’d like to run the utility on
  4. Click Properties
  5. Click Tools
  6. At the Error-checking tab, select Check Now
    Windows XP Error Checking in My Computer
  7. To run the utility in the read-only mode, simply click Start
  8. To repair errors, follow these instructions:
    • To repair errors without scanning for bad sectors, select the Automatically fix file system errors box and click Start
    • To repair errors and scan for bad sectors, select the Scan for and attempt recovery of bad sectors box and click Start
  9. Once finished, the utility will notify you if the scan reported errors (Errors were found and fixed.) or not (No errors were found.)

From the installation disc

If you don’t have the installation disc to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows XP – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can’t boot into Windows XP to run the utility use your original Microsoft Windows XP installation disc to open Recovery Console.

To do so, follow these steps:

  1. Insert the installation CD in the disk tray
  2. Restart your computer to boot from the CD
  3. At the “Press any key” message, press any key to make sure you boot from the CD
  4. At the Windows Options menu, press R to open Recovery Console
  5. Enter the Administrator password
  6. When Command Prompt appears on your screen, type the command you need:
    chkdsk C: /r

    where C: is the letter of the drive where Windows is installed and the /r parameter will try to repair errors and scan for bad sectors.

CHKDSK in Windows Vista

To run this utility on Windows Vista computer, you can choose any of the following methods:

  • From Command Prompt, if you can boot into Windows Vista
  • From My Computer
  • From the Recovery Console of your original installation

disk

From Command Prompt

If you can’t boot into Windows Vista to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows Vista – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can boot into your operating system, run Command Prompt:

  1. Open Windows Vista
  2. Go to Start > All Programs > Accessories > Command Prompt or in the search box type Command Prompt and double-click the Command Prompt item available in the search results list.
    Windows Vista - Run Command Prompt as Administrator
  3. When Command Prompt launches, type the command:
    chkdsk C: /r
  4. If Windows Vista is installed on another drive that’s not labeled as C:, replace C: with the letter of your hard disk:
    chkdsk D: /r
  5. Press Enter

If Command Prompt shows errors, try to run the command again until it shows no errors.

From My Computer

If you can’t boot into Windows Vista to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows Vista – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

You can also run the utility by going to Computer (My Computer):

  1. Click the Start button
  2. Go to Computer
  3. Right-click on the drive you want check
  4. Click Properties
  5. At the Tools tab, under the Error-checking section, click Check Now
    Windows Vista - Error checking in My Computer
  6. If prompted, enter the Administrator password
  7. You can now run the disk check tool:
    • To automatically repair errors, select Automatically fix file system errors
      chkdsk - Check disk options
    • To perform a thorough check, select Scan for and attempt recovery of bad sectors
    • You can also check both Automatically fix file system errors and Scan for and attempt recovery of bad sectors
  8. Click Start

Don’t use the computer until the disk check is done. It may take several minutes depending on the hard disk size.

From the installation disc

If you don’t have the installation disc to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows Vista – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can’t boot into Windows Vista, use the original installation disc to open Command Prompt (the Recovery Console) and run the commands you need:

  1. Insert the install disc and restart your computer
  2. Press any key when the message appear to boot from the disk
  3. Click Repair your computer
    Install Windows Vista screen
  4. Select Command Prompt
  5. Enter the Administrator password, if prompted
  6. When Command Prompt appears, type the command:
    chkdsk c: /r

    where C: is your hard disk drive’s letter (can be different from C: used here).

  7. Press Enter

CHKDSK in Windows 7

The steps to run this utility in Windows 7 are similar to those of Windows Vista.

From Command Prompt

If you can’t boot into Windows 7 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 7 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can boot into Windows 7, run the utility from Command Prompt directly:

  1. Click Start
  2. Type cmd at the Search program and files search box
  3. Right-click on cmd.exe
  4. Click Run as Administrator
    Windows 7 - Run Command Prompt as Administrator
  5. Type in your Administrator password
  6. When cmd.exe opens, type the command:
    chkdsk
  7. Press Enter
  8. You can run the tool with more parameters, like this:
    chkdsk c: /r

    This will check the drive for errors and will automatically try to fix any found errors.

  9. If you receive the “Chkdsk cannot run because the volume is in use by another process.” message, type Y to restart the computer and let the utility to run a scan at the next boot of your PC
  10. After you typed Y, close the Command Prompt
  11. Restart the computer by going to Start > Shutdown > Restart
  12. At the next boot, the check disk utility will automatically run a scan

From My Computer

If you can’t boot into Windows 7 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 7 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

The check disk utility can also be ran from My Computer to check for errors on your hard disk.

To do so, follow these instructions:

  1. Right-click on the Start icon
  2. Click Open Windows Explorer
  3. On the left side of the window, click Computer
  4. At the Hard Disk Drives section, right-click on the volume you want to check for errors
  5. Click Properties
  6. Go to the Tools Tab
  7. At the Error-checking section click Check now
    Windows 7 - Error checking in My Computer
  8. You can now run the check disk utility: select Scan for and attempt recovery of bad sectors to let the utility attempt to repair any hard drive errors found
  9. Click Start

If the volume you want to check is in use, e.g. C:/ where Windows Vista is installed, you may receive the following error message:

Windows can't check the disk while it's in use
 
 Do you want to check for hard disk errors the next time you start your computer?
 
 Schedule disk check | Cancel

If so, follow these steps:

  1. Click Schedule disk check
  2. Exit any open programs
  3. Restart your computer
  4. Your computer will now restart and automatically boot and the utility will perform a scan automatically

If you receive the “Do you want to dismount this volume first?” message, follow the steps below. This message appears if the volume you want to checked is locked, even if it’s not in use (e.g. the C:/ drive):

Windows can't check the disk while it's in use
 
 Do you want to dismount this volume first? Note: All opened handles to this volume will become invalid.
 
 Force a dismount | Cancel

If so, follow these steps:

  1. Click Force a dismount
  2. A scan will automatically start now

From the installation disc

If you don’t have the installation disc to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 7 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

Follow these steps:

  1. Insert the original Windows disc
  2. Restart your PC and boot from the disc
  3. Click Repair your computer
  4. Choose the operating system from the list
  5. Click Next
  6. Choose Command Prompt
  7. When it opens, type the command:
    chkdsk C: /f /r
  8. Press Enter

CHKDSK in Windows 8 or 8.1

Windows 8 or 8.1 users can run this utility by choosing any of the following methods:

  • From Command Prompt
  • From My Computer
  • From installation disc

From Command Prompt

If you can’t boot into Windows 8/8.1 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 8/8.1 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run it from Command Prompt, here are the instructions:

  1. Log into Windows 8/8.1
  2. Press the and C key to open the Charm bar
  3. Select Search
  4. Type-in cmd
  5. Right-click on Command Prompt from the search results list
    Windows 8 - cmd in search list
  6. Click Run as administrator
    Windows 8 - Run as Administrator option
  7. Log in as an Administrator
  8. When Command Prompt launches, type the command:
    chkdsk C: /f /r /x

    The parameters for this command are: /f option will attempt to fix any found errors /r option will locate for bad sectors and recovery any readable information /x option will force the volume you’re about to check to be dismounted before the utility begins a scan If the C: drive is in use, type Y to run a scan at your PC’s next restart. If so, exit Command Prompt and restart the computer.

From My Computer

If you can’t boot into Windows 8/8.1 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 8/8.1 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run the check disk utility from Computer (My Computer), follow these steps:

  1. Boot into Windows 8/8.1
  2. Double-click on Computer (My Computer) to open it
  3. Select the drive you want to run a check on, e.g. C:
  4. Right-click on the drive
  5. Click Properties
  6. Go to the Tools tab
  7. Select Check, at the Error checking section
  8. If you receive the following message, click Scan drive to begin the scan:
    You don't need to scan this drive  We haven't found any errors on this drive. You can still scan the drive for errors if you want.  Scan Drive
  9. You can keep using the drive during the scan. If errors are found, you can decide if you want to fix them. Depending on the results of this scan, the utility will report the results:

    If no errors were found, you’ll see this message:

    Your drive was successfully scanned Windows successfully scanned the drive. No errors were found.

    If errors were found, you’ll see this message instead:

    Restart your computer to repair file system. You can restart right away or schedule the error fixing on next restart.

From the installation disc

If you don’t have the installation disc to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 8/8.1 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can’t boot into Windows 8/8.1 to run Command Prompt, you can use the original Windows 8/8.1 installation disc to run Command Prompt from there.

To do so, follow these instructions:

  1. Insert the installation disc
  2. Restart your computer
  3. Press any key to boot from the disc, at the “Press any key to boot from CD or DVD…” message
  4. Choose your keyboard layout
  5. Select your language, time and a keyboard method
  6. Click Next
  7. Click Repair your computer

  • At the Choose an option screen, click Troubleshoot
  • At the Troubleshoot screen, click Advanced options
  • At the Advanced options screen, click Command Prompt
  • When Command Prompt launches, type the command:
    chkdsk C: /f /x /r
  • Press Enter

CHKDSK in Windows 10

Windows 10 users can run this utility by choosing any of the following methods:

  • From Command Prompt
  • From My Computer
  • From installation disc

From Command Prompt

If you can’t boot into Windows 10 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 10 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run it from Command Prompt, here are the instructions:

  1. Log into Windows 10
  2. Press the key to open the Start Menu
  3. Select Search
  4. Type-in cmd
  5. Right-click on Command Prompt from the search results list
    cmd
  6. Click Run as administrator
  7. Log in as an Administrator
  8. When Command Prompt launches, type the command:
    chkdsk C: /f /r /x

    The parameters for this command are: /f option will attempt to fix any found errors /r option will locate for bad sectors and recovery any readable information /x option will force the volume you’re about to check to be dismounted before the utility begins a scan If the C: drive is in use, type Y to run a scan at your PC’s next restart. If so, exit Command Prompt and restart the computer.

From My Computer

If you can’t boot into Windows 10 to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 10 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

To run the check disk utility from Computer (My Computer), follow these steps:

  1. Boot into Windows 10
  2. Double-click on Computer (My Computer) to open it
  3. Select the drive you want to run a check on, e.g. C:
  4. Right-click on the drive
  5. Click Properties
  6. Go to the Tools tab
  7. Select Check, at the Error checking section
  8. If you receive the following message, click Scan drive to begin the scan:
    You don't need to scan this drive  We haven't found any errors on this drive. You can still scan the drive for errors if you want.  Scan Drive
  9. You can keep using the drive during the scan. If errors are found, you can decide if you want to fix them. Depending on the results of this scan, the utility will report the results:

    If no errors were found, you’ll see this message:

    Your drive was successfully scanned Windows successfully scanned the drive. No errors were found.

    If errors were found, you’ll see this message instead:

    Restart your computer to repair file system. You can restart right away or schedule the error fixing on next restart.

From the installation disc

If you don’t have the installation disc to run chkdsk, download Easy Recovery Essentials – our recovery disk for Windows 10 – and run Automated Repair or Command Prompt directly. You can burn EasyRE on CDs, DVDs or USBs.

If you can’t boot into Windows 10 to run Command Prompt, you can use the original Windows 10 installation disc to run Command Prompt from there.

To do so, follow these instructions:

  1. Insert the installation disc
  2. Restart your computer
  3. Press any key to boot from the disc, at the “Press any key to boot from CD or DVD…” message
  4. Choose your keyboard layout
  5. Select your language, time and a keyboard method
  6. Click Next
  7. Click Repair your computer

    win10_setup

  8. At the Choose an option screen, click Troubleshoot

    win10_restore

Commands and parameters

The check disk utility has several parameters that you can use:

/c – applicable to a NTFS volume only

/f – this option fixes errors on a volume

/i – applicable to a NTFS volume only. This option performs a check of index entries

/r – this option also implies the /f and /p option. This option locates the bad sectors of your hard drive and recovers any readable information

Depending if you run the utility from Command Prompt or Recovery Console, the following parameters are different:

/p – this fixes any errors on a volume. In your standard Command Prompt /p is only read-only

The mandatory requirement of this utility is the volume you’re about to check must not be locked. If a volume you’re about to scan is locked, you’ll receive this message:

Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked
 the next time the system restarts? (Y/N)

If so, type Y and press Enter to perform a scan at the next boot of your system.

Download chkdsk

chkdsk can’t be downloaded as it’s a command available with Windows. You can use the original installation disc to run the utility tool.

You can download Easy Recovery Essentials and open Command Prompt to run specific chkdsk commands:

You can burn Easy Recovery Essentials to CDs, DVDs or USBs and run Command Prompt.

  1. Download Easy Recovery Essentials
  2. Burn the ISO Image. Follow our instructions on how to burn a bootable ISO image. If you’d like to have a recovery USB instead, follow our instructions on how to make a recovery USB.
  3. Boot into the recovery media
  4. Select Launch Command Line

Troubleshooting

Cannot continue in read-only mode

If you receive the “Errors found. CHKDSK cannot continue in read-only mode.” error message after running a check disk command, make sure you run the command with the /r parameter:

chkdsk /f

If the disk check utility must be ran on another volume, update the command with the letter of the drive you want to run a scan for:

chkdsk D: /f

Cannot run because the volume is in the use by another process

If you receive this error message when running the tool:

Chkdsk cannot run because the volume is in the use by another process. Would you like to schedule this volume to be checked the next time the system restarts.

You need to type Y to make sure the utility runs at the next boot. If so, type Y, restart the computer and let the tool to perform the scan.

Cannot lock current drive

If the check disk utility shows the “Cannot lock current drive.” error message, make sure the command you’re performing has the /r option:

chkdsk /r

If this doesn’t work, try disabling System Restore for the entire session you’re trying to run a scan and other protection software, such as: antivirus, firewall, spyware etc.

Another alternative command is:

chkdsk C: /f /r /x

stop chkdsk on every boot

If the utility runs a scan at every boot without stopping, you can try a few solutions.

Before you follow the instructions below, make sure you let the scan to be 100% completed and then restart your computer.

If the check disk runs again, even if the previous scan was 100% complete, continue with the steps below.

Fix #1: Check if there is a scheduled scan. To do so, follow these steps:

  1. Open Command Prompt
  2. Type chkntfs c:, where c: is the letter of the drive you ran a check
  3. Press Enter
  4. If the message is the following, then a check scan is scheduled on the c: drive:
    The type of file system is NTFS. Chkdsk has been scheduled manually to run on next reboot on volume C:.
  5. If there isn’t any scheduled scan, the message will be:
    The type of the file system is NTFS. C: is not dirty.
  6. To cancel a scheduled scan, type:
    chkntfs /x c:

Fix #2: Another option to fix this issue is to open the Registry Editor:

  1. Boot into Windows
  2. Open the Registry Editor
  3. Go to this key:
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager
  4. At the BootExecute key, check the value.If the value is autocheck autochk * /., you need to change it to autocheck autochk *

chkdsk won’t finish

If the utility won’t finish a scan, make sure you run the command with the /r parameter, like this:

chkdsk /r

chkdsk won’t run at startup

If the check disk won’t run a scan at startup after being scheduled to do so, follow any of the following fixes.

Fix #1: Check the BootExecute key in the Registry Editor:

  1. Open Registry Editor
  2. Find this key:
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager key
  3. Check the value for the BootExecute key.If the value is autocheck autochk * /., you need to change it to autocheck autochk *

Fix #2: Run sfc

You can also run the sfc /scannow command and then run chkdsk /r again:

  1. Open Command Prompt
  2. Type the command:
    sfc /scannow
  3. Press Enter
  4. After the sfc process is complete, run the check disk utility.

More Information

Support Links

  • Easy Recovery Essentials for Windows – our repair and recovery disk.

    It’s an easy-to-use and automated diagnostics disk. It’s available for Windows 8, Windows 7 and Windows Vista. It’s also available for Windows XP and Windows Server.

    Read more at Windows Recovery Disks.

  • The NeoSmart Support Forums, member-to-member technical support and troubleshooting.
  • Get a discounted price on replacement setup and installation discs: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11, Windows Server 2022.

Applicable Systems

This Windows-related knowledgebase article applies to the following operating systems:

  • Windows XP (all editions)
  • Windows Vista (all editions)
  • Windows 7 (all editions)
  • Windows 8 (all editions)
  • Windows 8.1 (all editions)
  • Windows 10 (all editions)
  • Windows 11 (all editions)
  • Windows Server 2003 (all editions)
  • Windows Server 2008 (all editions)
  • Windows Server 2012 (all editions)
  • Windows Server 2016 (all editions)
  • Windows Server 2019 (all editions)
  • Windows Server 2022 (all editions)

Propose an edit

364

364 people found this article helpful

Chkdsk command examples, options, switches, and more

Updated on September 11, 2020

Short for «check disk,» the chkdsk command is a Command Prompt command used to check a specified disk and repair or recover data on the drive if necessary.

Chkdsk also marks any damaged or malfunctioning sectors on the hard drive or disk as «bad» and recovers any information still intact.

Lifewire 


Chkdsk Command Availability

The chkdsk command is available from the Command Prompt in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP operating systems.

The chkdsk command is also available via Command Prompt in Advanced Startup Options and System Recovery Options. It also works from within the Recovery Console in Windows 2000 and Windows XP. Chkdsk is a DOS Command too, available in most versions of MS-DOS.

The availability of certain chkdsk command switches and other chkdsk command syntax might differ from operating system to operating system.

Chkdsk Command Syntax

chkdsk [volume:] [/F] [/V] [/R] [/X] [/I] [/C] [/L:size] [/perf] [/scan] [/?]

How to Read Command Syntax

Chkdsk Command Options
Item Explanation
volume: This is the drive letter of the partition for which you want to check for errors.
/F This chkdsk command option will fix any errors found on the disk.
/V Use this chkdsk option on a FAT or FAT32 volume to show the full path and name of every file on the disk. If used on an NTFS volume, it will show cleanup messages (if there are any).
/R This option tells chkdsk to locate bad sectors and recover any readable information from them. This option implies /F when /scan is not specified.
/X This command option implies /F and will force a dismount of the volume if necessary.
/I This option will perform a less vigorous chkdsk command by instructing the command to run faster by skipping over certain regular checks.
/C Same as /I but skips over cycles within the folder structure to reduce the amount of time that the chkdsk command runs.
/L:size Use this chkdsk command option to change the size (in KB) of the log file. The default log file size for chkdsk is 65536 KB; you can check the current log file size by executing /L without the «size» option.
/perf This option allows chkdsk to run faster by using more system resources. It has to be used with /scan.
/scan This chkdsk option runs an online scan on an NTFS volume but does not try to repair it. Here, «online» means that the volume does not need to be dismounted, but can instead remain online/active. This is true for both internal and external hard drives; you can continue using them throughout the course of the scan.
/spotfix This chkdsk option dismounts the volume only briefly in order to fix issues that were sent to the log file.
/? Use the help switch with the chkdsk command to show detailed help about the commands listed above and other options you can use with chkdsk.

Other less commonly used chkdsk command switches exist too, like /B to re-evaluate bad clusters on the volume, /forceofflinefix which runs an online scan (a scan while the volume is active) but then forces the repair to run offline (once the volume has been dismounted), /offlinescanandfix which runs an offline chkdsk scan and then fixes any problems that were found, and others that you can read more about through the /? switch.

The /offlinescanandfix option is the same as /F except that it’s only allowed on NTFS volumes.

If you’re using the chkdsk command from the Recovery Console in older versions of Windows, use /p in place of /F above to instruct chkdsk to perform an extensive check and repair errors on the hard drive.

Chkdsk Command Examples

chkdsk

In the above example, since no drive or additional options were entered, chkdsk simply runs in read-only mode.

If problems were found when running this simple chkdsk command, you’ll want to make sure to use the example from below to correct any issues.

chkdsk c: /r

In this example, the chkdsk command is used to perform an extensive check of the C: drive to correct any errors and to locate any recovery information from bad sectors. This is best used when you’re running chkdsk from outside of Windows, like from a recovery disc where you need to specify which drive to scan.

chkdsk c: /scan /forceofflinefix

This chkdsk command runs an online scan on the C: volume so that you don’t have to dismount the volume to run the test, but instead of fixing any issues while the volume is active, the problems are sent to a queue that will be resolved in an offline repair.

chkdsk c: /r /scan /perf 

In this example, chkdsk will fix problems on the C: drive while you’re using it, and will use as much system resources as allowed so that it will run as quickly as possible.

Chkdsk Related Commands

Chkdsk is often used with many other Command Prompt commands and Recovery Console commands.

The chkdsk command is similar to the scandisk command used to check a hard drive or floppy disk for errors in Windows 98 and MS-DOS.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Понравилась статья? Поделить с друзьями:
  • Chkdsk 26226 ошибка
  • Chivalry 2 ошибка входа the test realm is disabled
  • Checksum failed assetto corsa ошибка
  • Chirp ошибка file access error
  • Checksum error при распаковке архива