write "chkdsk" output at boot time to logfile on other partition?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pstein
Posts: 125
Joined: 09 Nov 2011 01:42

write "chkdsk" output at boot time to logfile on other partition?

#1 Post by pstein » 26 Jan 2016 12:15

On my 64bit Win 7 system I have two partitions:

C: (with the "core" Win7 system)
D: (with almost all other stuff)

When I start the following command:

chkdsk D: /F /V /R /X >C:\chkdskout.log

everything works fine.

However when I enter the opposite command

chkdsk C: /F /V /R /X >D:\chkdskout.log

then at first the system is shutdown+restarted+chkdsk performed
BUT the logfile is NOT written.

I guess it is because the partially booted Win7 system at chkdsk time has no access to the partition D:

Is there a workaround for this?

The chkdsk output can be viewed at the screen. I want to have it in logfile as well.

Peter

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: write "chkdsk" output at boot time to logfile on other partition?

#2 Post by foxidrive » 27 Jan 2016 06:12

pstein wrote:Is there a workaround for this?

The chkdsk output can be viewed at the screen. I want to have it in logfile as well.

The Chkdsk is not being executed by your command - Windows is scheduling for the next boot using it's own way of writing the command.

But the chkdsk output is in the event viewer logs and can be copy/pasted or merely viewed.

Post Reply