Re: Scandisk & Defragmenting



scandisk does not exist on XP or Win2k, chkdsk.exe is used instead.

How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows XP
http://support.microsoft.com/kb/555098

There are two defrag tools in XP.

dfrg.msc is the pretty one that opens from
Start\All Programs\Accessories\System Tools.

defrag.exe is the command line tool that runs from the command prompt.

defrag.exe is the one that you can schedule.

Also type: defrag /? in a command prompt for help.

Description of the New Command Line Defrag.exe Included with Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;283080

How To Schedule Tasks in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;308569

How to Defragment Your Disk Drive Volumes in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;314848

----------

As far as I know, you can only schedule a chkdsk on a reboot. Running
chkdsk without rebooting (chkdsk in read-only mode) is a waste of time.

To schedule chkdsk...

Scandisk has been retired. Use Error Checking (chkdsk.exe) in XP.

1. In My Computer or Windows Explorer, right-click the volume you want to
check, and then click Properties.
2. On the Tools tab, click Check Now.
3. Select both of these:

o Automatically fix file system errors
o Scan for and attempt recovery of bad sectors

You have to reboot for Error-checking to run.

A message will popup.

[[The disk check could not be performed because the disk check utility needs
exclusive access to some Windows files on the disk. These files can be
accessed only by restarting Windows. Do you want to schedule this disk check
to occur the next time you restart the computer?]]

Click YES.

Then reboot.

For a look at the chkdsk log.

Open the Event Viewer...
Start | Run | Type: eventvwr | Click OK |
Look in Application | Listed as Information |
Event ID: 1001
Source: Winlogon
[[Description: This includes file system type; drive letter or GUID, and
volume name or serial number to help determine what volume Chkdsk ran
against. Also included is whether Chkdsk ran because a user scheduled it or
because the dirty bit was set.]]

[[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.]]

[[This file states whether Chkdsk encountered any errors and, if so,
whether they were fixed.]]

Also type: chkdsk /? in a command prompt for help.


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:33DE4F2A-C27C-4ADB-AC55-C7B6A49D2146@xxxxxxxxxxxxx,
lushtanet <lushtanet@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Dear All,

Dose anyone know how to control scandisk and defragmenter on WinXP and
Win2k OS systems centrally. What I'm trying to achieve is a schedule for
these tools to run on scheduled basis as a part of file system
maintenance.

Any ideas? I have see a few 3rd party software which deal with these
issues, but I wane know if there is a cheaper solution for this.

Thank you.

.



Relevant Pages

  • Re: Computer Recovery - Cant Fix Windows XP Home
    ... Did you stop Disk Defragmenter before shutting down? ... Problem - Computer starts up then it gives this error message and these ... but Windows did not successfully ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Scandisk & Defragmenting
    ... How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows XP ... defrag.exe is the one that you can schedule. ... you can only schedule a chkdsk on a reboot. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: disk cleanup
    ... Error Checking is chkdsk.exe also called the Check Disk Utility. ... You do not have to open Windows\System32 to schedule Defrag or Error ... How To Schedule Tasks in Windows XP ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: need help with CHKDSK and disk defragmenter
    ... > chkdsk, disk defragmenter, and disk cleanup - a boot disk that boots the ... > by Windows ME contain only older versions of these utilities and I don't ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: need help with CHKDSK and disk defragmenter
    ... > chkdsk, disk defragmenter, and disk cleanup - a boot disk that boots the ... > by Windows ME contain only older versions of these utilities and I don't ...
    (microsoft.public.windowsxp.configuration_manage)