How to save chkdsk results to a .txt file?

Is there a way to get the results of chkdsk with the /f switch to a .txt file instead of having to go to the event viewer?

EDIT: I want to get the output of what chkdsk fixed, not just what errors have been shown.

PS: Im using Windows XP.

4 Answers

You can use redirection.

Run chkdsk over a command window(cmd):

  1. Click on Windows Start buttom / type "cmd" and open a new cmd window.

  2. Type the following comand(without the ""):

    "chkdsk > log.txt"

Then all the content shown on cmd output will be written to the log.txt file.

Here is the print screen of the results performed with this command at my system(Portuguese Windows version):

enter image description here

10

I found where Windows XP stores the output of the chkdsk run on boot. It stores the output in C:\Bootex.log

EDIT: On a side note. I'll share this with everyone

To automate chkdsk via batch file, you can use the following commands:

echo y|chkdsk /f
shutdown -r -t 00

then you can retrieve the Bootex.log from C:\ afterwards.

EDIT2: Not sure what the default behavior is but it seems that it is hit and miss with whether or not a bootex.log exists. I saw a post on another website stating that bootex.log is supposed to be erased before login, unless autochk.exe encounters an error or if autochk.exe is canceled before it is finished. But I've seen the log there without either conditions being met.

3

Expanding on crokusek's answer, you can access the chkdsk full log file in Drive:/System Volume Information/Chkdsk/Chkdsk*.log.

To get to the files from Explorer you have to give yourself read permission on System Volume Information and its Chkdsk subdirectory.

  1. First go to Folder & search options (Organize menu in Explorer window), View tab, and uncheck Hide protected operating system files. This will allow you to see the System Volume Information folder in the root directory.
  2. Right click on System Volume Information -> Properties -> Security tab. Click Continue.
  3. On the dialog that opens, click Add.
  4. Write your username and click Check names. The name should transform to hostname\username.
  5. Click OK everywhere. Some errors will pop up about denied access to some folders. Ignore them and click Continue. This will add read, execute and list permission to your user.
  6. Repeat from step 2 for the Chkdsk folder.

At least for Windows 7, the output of chkdsk appears:

1) In Event Viewer but it can be truncated if it is very long.

2) Drive:/System Volume Information/ChkDsk/Chkdsk*.log

These seem to work even if chkdsk is run during boot up sequence.

For #2, I had to use cygwin to get into the directory so maybe someone can post a link on how get it in there another way. Simply opening explorer as Admin does not work.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like