Solved

schedule chkdsk

Posted on 2004-04-29
4
6,245 Views
Last Modified: 2007-12-19
How do I schedule the "chkdsk" function.  I can't find the function to run in the "browse" feature of schedule tasks.  The reason for this is that I attempt to execute the "error checking" feature of tools and get the message that it can't run due to programs running in windows and to schedule for the next restart of windows.  Ideas?
0
Comment
Question by:lennyjohnson
  • 2
4 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10951611
You really can't using the XP chkdisk. The OS needs to reboot to run this utitlity and have it fix any errors.
0
 
LVL 65

Expert Comment

by:SheharyaarSaahil
ID: 10951627
Hello lennyjohnson =)

If u have Checked the check box of Automatically Fix System Files. then chkdsk will ask to restart the system and check the disk for erros at next bootup.

!! GOOD LUCK !!
0
 
LVL 44

Assisted Solution

by:CrazyOne
CrazyOne earned 125 total points
ID: 10951636
Try this

Start > Run regedt32

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
BootExecute

autocheck autochk /c

and then use the following to shutdown XP at a schedule time.

Syntax for Windows XP:

      SHUTDOWN [options] [-m [\\ComputerName]]  

options
   -M \\Computer  : A remote computer to shutdown.
   -L          : logoff current user

   -c "Msg"    : An optional shutdown message
   -S          : Shutdown

   -R          : Shutdown and reboot

   -A          : Abort a system shutdown during the timeout period.

   -T:xx       : Set the timer for system shutdown in seconds.[20 sec. default]

   -F          : Force running applications to close.
                 ATTENTION: If you use the -F parameter shutdown will not
                            prompt for File-Save in any open applications.
                            This will result in a loss of all unsaved data!!!

   -d u:xx:yy   : List a USER reason code for the shutdown.
   -d P:xx:yy   : List a PLANNED reason code for the shutdown.
                   xx Specifies the major reason code (0-255)
                   yy Specifies the minor reason code (0-65536)
When using this command to reboot a server - the shutdown can be made faster if the services are halted using NET STOP - the NT shutdown process will normally allow about 30 seconds to ensure each running service has time to stop.
e.g.

net stop "Microsoft Exchange Internet Mail Service"
net stop "Microsoft Exchange System Attendant" /y
wait 20
shutdown /Y /T:5 /C /R
0
 
LVL 10

Accepted Solution

by:
LRI41 earned 125 total points
ID: 10952298
Windows XP chkdsk

run chkdsk /f on the drive (if it is a system drive it will tell you it has to schedule it for the next boot, tell it yes)


Another way:

open My Computer, right-click on a drive (AKA volume), select
Properties, flip to the Tools tab, and press the "Check Now..."
button. Place a checkmark in the "Automatically fix file system
errors." and also Place a checkmark in Scan and try to replace Bad Sectors.It will prompt you to schedule a scan before the next Windows session.

chkdsk in WinXP.

Right-click on the Desktop, New, Shortcut, and put this in the box:
C:\WINDOWS\system32\chkdsk.exe

The window is pretty much the same as used by the old MS-DOS Prompt shortcut.

You can change the icon, right-click, Properties, and the Change Icon button. Chkdsk doesn't have its own icon but another window will come up with a bunch you can use.



CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]


 volume          Specifies the drive letter (followed by a colon),
                 mount point, or volume name.
 filename        FAT only: Specifies the files to check for fragmentation.
 /F              Fixes errors on the disk.
 /V              On FAT/FAT32: Displays the full path and name of every file
                 on the disk.
                 On NTFS: Displays cleanup messages if any.
 /R              Locates bad sectors and recovers readable information
                 (implies /F).
 /L:size         NTFS only:  Changes the log file size to the specified number
                 of kilobytes.  If size is not specified, displays current
                 size.
 /X              Forces the volume to dismount first if necessary.
                 All opened handles to the volume would then be invalid
                 (implies /F).
 /I              NTFS only: Performs a less vigorous check of index entries.
 /C              NTFS only: Skips checking of cycles within the folder
                 structure.

The /I or /C switch reduces the amount of time required to run Chkdsk by
skipping certain checks of the volume.

Try running check disk with these options:

chkdsk c: /f /r


How to Locate and Correct Disk Space Problems on NTFS Volumes in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q315688

An Fsutil Query Does Not Work Properly on FAT or FAT32 Volumes
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322275

"Insufficient Disk Space for Conversion" Error Message When You Convert a Disk from FAT to NTFS in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323563


0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question