viewing chkdsk results

A

alok singh

hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok
 
A

Alok

thanks Dave
alok

Dave Patrick said:
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

alok singh said:
hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok
 
L

Lynlee

Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to check all partitions at once.. Currently I have to go to each partitions properties and tell it to check the partition, then it tells me I cant and asks if I want to do it on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely there has got to be a better way.. Afterall, in Win98 you could tell it to check all!

Much Thanks.. Sorry for butting in on this thread but it was loosly related.. ;)

Peace.. -<-* Lynlee
-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

alok singh said:
hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok


.
 
L

Lynlee

Yikes No CR/lf.. So I fixed it in this one too.

Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to
check all partitions at once.. Currently I have to go to each partitions properties and tell it to check the
partition, then it tells me I cant and asks if I want to do it on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely there has got to be a better way.. Afterall, in Win98 you could tell it to check all!

Much Thanks.. Sorry for butting in on this thread but it
was loosly related.. ;)

Peace.. -<-* Lynlee
-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

alok singh said:
hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok


.
 
D

Dave Patrick

Your best bet would be to run it (on each volume) from the recovery console.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

:
Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to check all partitions
at once.. Currently I have to go to each partitions properties and tell it
to check the partition, then it tells me I cant and asks if I want to do it
on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely
there has got to be a better way.. Afterall, in Win98 you could tell it to
check all!

Much Thanks.. Sorry for butting in on this thread but it was loosly
related.. ;)

Peace.. -<-* Lynlee
 
D

Dan Seur

Lynlee - chkdsk is a command. To see its syntax, go to a command prompt
and type: chkdsk /?

Chkdsk.exe with no parameters except drivename (c: for example) should
always run, and will generate a short report showing either trouble
found or no trouble found.

Chkdsk.exe with /f /r will attempt to repair a partition but only if it
can lock the partition for exclusive use. If it cannot, it will offer to
run at next boot, before the OS is fully loaded. It sounds like you are
dealing with the fix/repair option against 11 partitions that chkdsk
cannot lock.

I have found a simple BAT program very useful. It runs chkdsk serially
from the command prompt against (it so happens) 11 partitions on this
machine, but only reports its findings for each, then pauses so I can
note whether a particular partition needs a fix/repair. It doesn't take
long to run. It is named CHKDNFIX.BAT, and is this:

chkdsk c:
pause
chkdsk d:
pause
..
..
..
chkdsk m:
echo FINISHED ALL DRIVES
pause
Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to check all partitions at once.. Currently I have to go to each partitions properties and tell it to check the partition, then it tells me I cant and asks if I want to do it on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely there has got to be a better way.. Afterall, in Win98 you could tell it to check all!

Much Thanks.. Sorry for butting in on this thread but it was loosly related.. ;)

Peace.. -<-* Lynlee

-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

alok singh said:
hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok

.
 
L

Lynlee

Hello Dave..

Thank you so very much for responding..

I was wanting to run chkdsk or autochk on the NEXT boot only,
prior to windows booting... This is in prep for my weekly defrag
and (or partition management (move/resize/create etc)). I can
run a batch file from the Windows CLI OK but it will not lock
(dismount) the partitions to /f. If I could run it while booting
that would be much more convenient for my needs. I just don't
know how to call the batch file.. Via Boot.ini?? In Real DOS I
would just run it from autoexec.bat.

Does the dirty bit get set if there are cross linked files or
lost clusters?? I don't think so.. I think the only way to find
those types of errors is to run chkdsk/autodsk. I would like to
run it with the /f switch on every partition, prior to
significant disk manipulation.

I was wondering if I could insert the appropriate lines in the
Registrys 'RunOnce' section for each partition to be 'chkdsk.exe
c: /f' (or bootdsk?). Once run the lines would be removed..
right? When I wanted to do it again, reinstall the same .reg
segment? This way I could set it up in the Scheduler I think and
not forget.

Why does such a simple task have to be so difficult.. Just wanna
run chkdsk/bootdsk /f at boot time when I need too. It will not
find errors unless the dirty bit is set (from a bad shutdown),
then it will run, but in the meantime you may have a lot of lost
clusters & cross linked files, that continue to cause disk errors
until the dirty bit is set.

Does that make sense?? Am I asking too much of Windows 2K pro??
Of Microsoft??

I sincerely appreciate you taking the time to respond and for
sharing your bat file.. I have one too. Pretty similar, but
instead of 'pause' I have 'delay 5'. Will try 'pause' and see if
that is better.

Peace to you and yours.. -<-* Lynlee
-----Original Message-----
Lynlee - chkdsk is a command. To see its syntax, go to a command prompt
and type: chkdsk /?

Chkdsk.exe with no parameters except drivename (c: for example) should
always run, and will generate a short report showing either trouble
found or no trouble found.

Chkdsk.exe with /f /r will attempt to repair a partition but only if it
can lock the partition for exclusive use. If it cannot, it will offer to
run at next boot, before the OS is fully loaded. It sounds like you are
dealing with the fix/repair option against 11 partitions that chkdsk
cannot lock.

I have found a simple BAT program very useful. It runs chkdsk serially
from the command prompt against (it so happens) 11 partitions on this
machine, but only reports its findings for each, then pauses so I can
note whether a particular partition needs a fix/repair. It doesn't take
long to run. It is named CHKDNFIX.BAT, and is this:

chkdsk c:
pause
chkdsk d:
pause
..
..
..
chkdsk m:
echo FINISHED ALL DRIVES
pause
Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to check all partitions at once.. Currently I have to go to each partitions properties and tell it to check the partition, then it tells me I cant and asks if I want to do it on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely there has got to be a better way.. Afterall, in Win98 you could tell it to check all!

Much Thanks.. Sorry for butting in on this thread but it was loosly related.. ;)

Peace.. -<-* Lynlee

-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

:

hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok


.

.
 
D

Dave Patrick

The "Dirty Bit" is set by the file system itself only if it detects a
problem. The dirty bit can be set because the volume is online and has
outstanding changes, because changes were made to the volume and the
computer shutdown before the changes were committed to disk, or because
corruption was detected on the volume. If the dirty bit is set when the
computer restarts, chkdsk runs to verify the consistency of the volume.

Every time your computer starts Autochk.exe is called by the Kernel to scan
all volumes to check if the volume dirty bit is set. If the dirty bit is
set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f
verifies file system integrity and attempts to fix any problems with the
volume.

When Autochk runs against a volume at boot time it records its output to a
file called Bootex.log in the root of the volume being checked. The Winlogon
service then moves the contents of each Bootex.log file to the Application
Event log. One event log message for each volume checked is recorded.

You can Explorer|"drive"|File|Properties|Tools|Check Now and check the
boxes. Also the article may help you.

CHKNTFS.EXE: What You Can Use It For
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q160963


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

:

Hello Dave..

Thank you so very much for responding..

I was wanting to run chkdsk or autochk on the NEXT boot only,
prior to windows booting... This is in prep for my weekly defrag
and (or partition management (move/resize/create etc)). I can
run a batch file from the Windows CLI OK but it will not lock
(dismount) the partitions to /f. If I could run it while booting
that would be much more convenient for my needs. I just don't
know how to call the batch file.. Via Boot.ini?? In Real DOS I
would just run it from autoexec.bat.

Does the dirty bit get set if there are cross linked files or
lost clusters?? I don't think so.. I think the only way to find
those types of errors is to run chkdsk/autodsk. I would like to
run it with the /f switch on every partition, prior to
significant disk manipulation.

I was wondering if I could insert the appropriate lines in the
Registrys 'RunOnce' section for each partition to be 'chkdsk.exe
c: /f' (or bootdsk?). Once run the lines would be removed..
right? When I wanted to do it again, reinstall the same .reg
segment? This way I could set it up in the Scheduler I think and
not forget.

Why does such a simple task have to be so difficult.. Just wanna
run chkdsk/bootdsk /f at boot time when I need too. It will not
find errors unless the dirty bit is set (from a bad shutdown),
then it will run, but in the meantime you may have a lot of lost
clusters & cross linked files, that continue to cause disk errors
until the dirty bit is set.

Does that make sense?? Am I asking too much of Windows 2K pro??
Of Microsoft??

I sincerely appreciate you taking the time to respond and for
sharing your bat file.. I have one too. Pretty similar, but
instead of 'pause' I have 'delay 5'. Will try 'pause' and see if
that is better.

Peace to you and yours.. -<-* Lynlee
-----Original Message-----
Lynlee - chkdsk is a command. To see its syntax, go to a command prompt
and type: chkdsk /?

Chkdsk.exe with no parameters except drivename (c: for example) should
always run, and will generate a short report showing either trouble
found or no trouble found.

Chkdsk.exe with /f /r will attempt to repair a partition but only if it
can lock the partition for exclusive use. If it cannot, it will offer to
run at next boot, before the OS is fully loaded. It sounds like you are
dealing with the fix/repair option against 11 partitions that chkdsk
cannot lock.

I have found a simple BAT program very useful. It runs chkdsk serially
from the command prompt against (it so happens) 11 partitions on this
machine, but only reports its findings for each, then pauses so I can
note whether a particular partition needs a fix/repair. It doesn't take
long to run. It is named CHKDNFIX.BAT, and is this:

chkdsk c:
pause
chkdsk d:
pause
..
..
..
chkdsk m:
echo FINISHED ALL DRIVES
pause
partitions at once.. Currently I have to go to each partitions properties
and tell it to check the partition, then it tells me I cant and asks if I
want to do it on the next boot.. I say yes.. I have to do this for 11
partitions.. Surely there has got to be a better way.. Afterall, in Win98
you could tell it to check all!
Much Thanks.. Sorry for butting in on this thread but it was loosly related.. ;)

Peace.. -<-* Lynlee

-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

:

hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok


.

.
 
D

Dan Seur

Any time you want to confuse me with Dave (as long as it's Mr. Patrick)
that's a huge compliment for me...but doesn't say much for your
judgment, as Groucho would say :)

AFAIK the dirty bit is set on during a disk op until the op completes
successfully, when it's reset off. I believe W2k itself doesn't set it
for other conditions, like scrambled indices...although of course if for
any reason a disk op cannot complete the bit would be on, so sometimes...

I also don't know whether autochk is invocable directly. It isn't listed
in the command reference (or elsewhere in the Help lib that I can see.)
Perhaps it's just not documented there, or there's a tool in the
resource kit or somewhere that can be used to initiate it somehow.

To get less drivel and more hard info on doing what you want to do - as
well as perhaps some advice about whether it's wise - you need a savvier
advisor than yours truly. They abound in these NGs! Good luck!
 
J

Jisha

To run chkdsk without waiting for reboot, invoke the /x switch to force a
dismount of the drive/partition.
I run chkdsk frequently and on enough partitions to use a batch file...

This sample happens to check a junctioned partition (no drive letter):

chkdsk c:\docume~1\user\mydocu~2\~music~1 /x/f/r/v
pause

The "Pause" keeps the command window from closing automatically, so I can
check results.
(Note that short file / folder names are used... use dir /x to find out what
they are for your junctioned drive)


You could string all your checks (separated by a "Pause" if you like) very
simply...

chkdsk g: /x/f/r/v
pause
chkdsk h: /x/f/r/v
pause
chkdsk.... etc

Call it something like ChkAll.bat...

You can also redirect the chkdsk output to a file... ie:... you want to
check 10 partitions overnight and view the results in the morning (running
chkdsk from a cmd window doesn't show results in the event log)...

chkdsk g: /x/f/r/v > r:\checkG.txt
REM pause
chkdsk h: /x/f/r/v > r:\checkH.txt
REM pause
chkdsk ... etc

.... I show the "pause" REMmed out here because you wouldn't want that for an
unattended run... :]
.... also, in this case, r: is a RamDrive... so I don't need to bother
deleting the txt files

Hope this helps...

Hello Dave Patrick.. :)

I have one for you.. How do I configure W2K chkdsk to check all partitions
at once.. Currently I have to go to each partitions properties and tell it
to check the partition, then it tells me I cant and asks if I want to do it
on the next boot.. I say yes.. I have to do this for 11 partitions.. Surely
there has got to be a better way.. Afterall, in Win98 you could tell it to
check all!

Much Thanks.. Sorry for butting in on this thread but it was loosly
related.. ;)

Peace.. -<-* Lynlee
-----Original Message-----
Check Event Viewer for the results.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

alok singh said:
hi all

i run the chkdsk command and it is run on startup. how
can i see its results in windows, after it is finished.

thanks
alok


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top