|
-
Hammerhead Shark
How do I schedule Check Disk to run overnight?
I currently have a virus scan, defragment, and backup scheduled to run in Windows XP every night while I sleep.
I'd like to add an automatic Check Disk to that list. It must be possible, but how?
Last edited by Mr. Bombastic; 07-13-2002 at 11:43 AM.
Intel Core 2 Duo E6850 | Corsair PC2-6400 DDR2, 2GB.
Inno3D 8800GT, 512MB | Turtle Beach Santa Cruz.
Samsung 205BW, 20" WS LCD | E-Yama 17JN1, 17" LCD.
Gigabyte GA-P35-DS3P | Hiper Type-R, 530W (580W Max).
Seagate ST3500320AS, 500GB | Pioneer DVR-108.
-
Reef Shark
In win98 System tools folder in the start menu there is a thing called maintenance wizard that you can use to do that. Don't know if XP has it tho.
-
GO BENGALS!!!!!
I'm pretty sure you can't autoset CheckDisk in Windows XP. Anyways, you have to reboot to CheckDisk for some reason.
-
You can ust the AT command to schedule a job that has chkdsk in it for all but the system volume. The issue is that to chkdsk /f the system volume, you must do it during the boot process before the OS is fully loaded.
I imagine that you can include a call to a "shutdown/restart" utility but I wouldn't recommend it. It would be much easier to tell the system to run chkdsk every time you boot it. It is an option in Diskeeper.
-
Hammerhead Shark
Taking into account my backup shuts down, runs, then restarts the machine in its course of duties, I suppose it would be possible to run Check Disk and let the backup program restart the machine. Check Disk should then run when the backup is finished.
When I run chkdsk /f, I am prompted for input. If I could circumvent this prompt I could schedule a scan just as I have scheduled a defragment.
How would I go about this?
I want to scan only my system volume and can't really afford Diskeeper.
Last edited by Mr. Bombastic; 07-13-2002 at 07:10 PM.
Intel Core 2 Duo E6850 | Corsair PC2-6400 DDR2, 2GB.
Inno3D 8800GT, 512MB | Turtle Beach Santa Cruz.
Samsung 205BW, 20" WS LCD | E-Yama 17JN1, 17" LCD.
Gigabyte GA-P35-DS3P | Hiper Type-R, 530W (580W Max).
Seagate ST3500320AS, 500GB | Pioneer DVR-108.
-
The /X option will force a volume to be dismounted - if that is the prompt you are getting. If you are using Diskeeper, just tell it to run at boot time with a chkdsk before the defrag. That's how I do it.
-
Hammerhead Shark
When running chkdsk (I don't have Diskeeper) I get prompted that I cannot run a scan on a system volume unless I schedule it for the next restart. Can I get around this prompt without user input?
Intel Core 2 Duo E6850 | Corsair PC2-6400 DDR2, 2GB.
Inno3D 8800GT, 512MB | Turtle Beach Santa Cruz.
Samsung 205BW, 20" WS LCD | E-Yama 17JN1, 17" LCD.
Gigabyte GA-P35-DS3P | Hiper Type-R, 530W (580W Max).
Seagate ST3500320AS, 500GB | Pioneer DVR-108.
-
I don't know. I've always used Diskeeper. I'll check my registry tomorrow. If I find anything I'll post it.
-
Hammerhead Shark
I managed to fiddle a solution.
I created a .bat file reading:
echo y | chkdsk c: /f
shutdown /r /t 00
The first line schedules a disk check without answering a prompt, and the second is to reboot and run the disk check.
This was scheduled with Task Scheduler.
I now have automatic virus scans, disk checks, defragmentation and daily and weekly backups.
My computer does more when I sleep then it does when I am awake!
Last edited by Mr. Bombastic; 07-15-2002 at 06:03 PM.
Intel Core 2 Duo E6850 | Corsair PC2-6400 DDR2, 2GB.
Inno3D 8800GT, 512MB | Turtle Beach Santa Cruz.
Samsung 205BW, 20" WS LCD | E-Yama 17JN1, 17" LCD.
Gigabyte GA-P35-DS3P | Hiper Type-R, 530W (580W Max).
Seagate ST3500320AS, 500GB | Pioneer DVR-108.
-
I just came across this batch file command that does it all.
Code:
>help chkntfs
Displays or modifies the checking of disk at boot time.
CHKNTFS volume [...]
CHKNTFS /D
CHKNTFS /T[:time]
CHKNTFS /X volume [...]
CHKNTFS /C volume [...]
volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
/D Restores the machine to the default behavior; all drives are
checked at boot time and chkdsk is run on those that are
dirty.
/T:time Changes the AUTOCHK initiation count down time to the
specified amount of time in seconds. If time is not
specified, displays the current setting.
/X Excludes a drive from the default boot-time check. Excluded
drives are not accumulated between command invocations.
/C Schedules a drive to be checked at boot time; chkdsk will run
if the drive is dirty.
If no switches are specified, CHKNTFS will display if the specified drive is
dirty or scheduled to be checked on next reboot.
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|