This forum requires Javascript to be enabled for posting content
Please consider registering
guest
Log In Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Topic RSS
Frequency of running Check Disk maintenance program
soldat
Member
Members
August 31, 2009 - 1:27 pm
Member Since: October 6, 2008
Forum Posts: 93
Offline

I am running Windows Vista and have been trying to figure out how to schedule the check disk program to run using Task Scheduler. So far, no luck in setting this up. Question now is ---- how wise is it to run Check disk and what frequency (daily, weekly or monthly) also is there a procedure for setting this up in the Vista version of task scheduler? The Vista version is so much different from XP that I tend to loose track of where I am at in the process. Any suggestions would be greatly appreciated. Many thanks.

David Hartsock
Admin
September 1, 2009 - 4:49 am
Member Since: August 7, 2011
Forum Posts: 1117
Offline

Soldat,

There is no need to schedule defrag in Vista - It's already scheduled to run weekly (automagically)!

Type defrag in the start menu and open the defrag interface. Here you can run a manual defrag, but more importantly you can modify the schedule to better suit your usage (time of day, day of week, etc).

Weekly, which is default, is more than enough. After it has run once or twice it should just take a few moments each week, unless you change and add lots of files, to straighten out any fragmentation created in the previous 7 days.

soldat
Member
Members
September 1, 2009 - 12:47 pm
Member Since: October 6, 2008
Forum Posts: 93
Offline

OK, got it. File defragmentation running weekly. How about the "check disk" program to look for bad sectors? That is the one I am not sure about in terms of how often to do it and how can I set it up in Vista task scheduler. Most appreciated.

David Hartsock
Admin
September 7, 2009 - 8:42 pm
Member Since: August 7, 2011
Forum Posts: 1117
Offline

Wow, I don't know how I messed that one up!

[quote:1rm543uv]how wise is it to run Check disk and what frequency (daily, weekly or monthly) [/quote:1rm543uv]
Hmmmmm, I usually don't run chkdsk unless there is a symptom of a drive issue, or a really hairy shutdown. That said, once a month wouldn't hurt. The problem is running chkdsk in a useful way requires a restart so the drive is not locked by the OS.

To automate chkdsk using the Task Scheduler in Vista do the following:

1. Type scheduler from the Start Menu and click Task Scheduler in the results
2. When the task scheduler opens click Create Task in the right column
3. A new windows opens. On the General tab type a name for the new task that is descriptive. Something along the lines of 'Monthly force chkdsk on reboot'. Check 'Run whether user is logged on or not' and 'Run with highest privileges'.
4. You can type a longer description in the description box, if you wish
5. On the Triggers tab click New. Here you can set the schedule that you wish the task to run
6. On the Actions tab click New. For Action you want "start a program'. Under Program/Script you want 'C:WindowsSystem32cmd.exe' (no quotes). Under Add Arguments you want '/c echo y|chkdsk c: /f /x' (no quotes). Click OK (this sets a chkdsk on next reboot).
7. Go back to the Actions tab. For Action you want "start a program'. Under Program/Script you want 'C:WindowsSystem32cmd.exe' (no quotes). Under Add Arguments you want 'shutdown -r -t 60' (no quotes). Click OK (this sets a restart in 60 seconds).

This will give you 2 actions. The first will set the chkdsk to run at next boot/reboot. The second will force a restart in 60 seconds. They have to be in that order.

8. On the Conditions tab you should (laptops and portables) ensure that the task will only run when on AC power
9. Click OK. You will be asked to enter your User Name and Password. User Name should be right. If you use no password just click OK.

Hopefully that is a little more useful that my earlier blathering!

Jim Hillier
Admin
September 8, 2009 - 2:36 am
Member Since: August 9, 2011
Forum Posts: 2701
Offline

Hey Soldat and Dave.

Dave - I know little about this (surprisingly!! but I did some checking on the net and the conventional wisdom there is it's not a great idea to run check disk regularly and frequently. Advice suggests that running check disk on a HDD with sector errors can possibly cause corruption of data. Because of this they also suggest backing up all important data prior to running check disk (each time). Does that make any sense to you??

Soldat - I don't know of anyone who includes running the check disk feature as part of their regular maintenance. As Dave said, most people just run it purely for diagnostics when the machine is already displaying symptoms, this is what it was specifically designed for....remedial rather than preventative.

cheers.....JIM

Oh, great guide too Dave...you da man!!

soldat
Member
Members
September 8, 2009 - 5:15 pm
Member Since: October 6, 2008
Forum Posts: 93
Offline

Thanks for the update. I will certainly keep these steps in my "how to do it" file, but I think you have a valid point in running check disk as a remedial tool in stead of a regular maintenance program. No need to invoke more problems than what I already have. Thanks again.

David Hartsock
Admin
September 12, 2009 - 7:24 am
Member Since: August 7, 2011
Forum Posts: 1117
Offline

[quote="ozbloke":2u24adnq]Hey Soldat and Dave.

Dave - I know little about this (surprisingly!! but I did some checking on the net and the conventional wisdom there is it's not a great idea to run check disk regularly and frequently. Advice suggests that running check disk on a HDD with sector errors can possibly cause corruption of data. Because of this they also suggest backing up all important data prior to running check disk (each time). Does that make any sense to you??
[/quote:2u24adnq]
This is true. Usually check disk is ran because Windows noticed a read or write issue with the drive. Windows sets a registry key categorizing the drive as 'dirty'. This is what forces chkdsk to run at the next boot. If the drive was truly having issues writing or reading the drive then there is probably some corruption already. To what extent is anyone's guess, though. During chkdsk any bad sectors get marked as such. The data (if possible) is moved to a good area of the drive. If that is not possible the data is dumped into a file with a chk extension. The sector is marked as bad so it is not used again.

[quote:2u24adnq]Oh, great guide too Dave...you da man!![/quote:2u24adnq]
That's debatable!

David Hartsock
Admin
November 14, 2009 - 6:12 am
Member Since: August 7, 2011
Forum Posts: 1117
Offline

Soldat,

If you're still monitoring this thread (sorry to everyone else from bringing up an old one)...

Server 2008, Vista, and Win7 have a new feature built into the NTFS filesystem called "self healing'. Basically the filesystem monitors files on the fly and attempts to correct corruption within Windows. I know it is enabled on Server 2008 and Win7, but I can't remember if it is on Vista. Here is a little more info about Self Healing on [url=http://technet.microsoft.com/en-us/library/cc771388%28WS.10%29.aspx:1yvmzpzb]TechNet[/url:1yvmzpzb]. Basically Self Healing is like an active Check Disk running in the background taking care of any corruption that occurs. Should something be corrupted to a point where the self healing function can not correct it then Windows will provide the standard "you should run Chkdsk" notification.

To see if Self Healing is enabled...
Open a command prompt with admin priveledges (start>type cmd>right click the cmd.exe result at the top>choose "Run as administrator"
type "cd.." (without quotes) twice. This will change the prompt from c:windowssystem32> to c:>
Type "FSUTIL Repair Query c:" (without quotes)

IF self healing is enables you will see the following:

[code:1yvmzpzb]Self healing is enabled for volume c: with flags 0x1.
flags: 0x01 - enable general repair
0x08 - warn about potential data loss
0x10 - disable general repair and bugcheck once on first corruption

C:>[/code:1yvmzpzb]

If it is not you can use the following commands to enable/disable self healing NTFS:
"FSUTIL Repair set C: 1" (without quotes) to enable
"FSUTIL Repair set C: 0" (without quotes) to disable

Forum Timezone: America/Indiana/Indianapolis
Most Users Ever Online: 2303
Currently Online: MeheakKunar
Guest(s) 20
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chad Johnson: 867
Mindblower: 666
carbonterry2: 356
Flying Dutchman: 278
grr: 211
Member Stats:
Guest Posters: 11
Members: 3182
Moderators: 7
Admins: 3
Forum Stats:
Groups: 8
Forums: 20
Topics: 1944
Posts: 13524
Newest Members:
Zoeypenelope, Jeff Coder, anhd389, blutsband, cyberguy
Moderators: Carol Bratt: 67, dandl: 740, Jason Shuffield: 1, Jim Canfield: 8, Terry Hollett: 0, Stuart Berg: 0, John Durso: 0
Administrators: Jim Hillier: 2701, Richard Pedersen: 203, David Hartsock: 1117
Exit mobile version

WHY NOT SUBSCRIBE TO OUR NEWSLETTER?

Get great content like this delivered to your inbox!

It's free, convenient, and delivered right to your inbox! We do not spam and we will not share your address. Period!