Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: have a chkdsk run on all drives every time I boot

20 Mar 2012   #1
maxseven

Windows 7 Home Premium 64bit 6.1 Build 7601 (SP1)
 
 
have a chkdsk run on all drives every time I boot

My W7 PC is in "Hibernate" most of the time and I rarely restart it. I would like to do what most people are trying to avoid: I would LIKE TO have a chkdsk run on all drives every time I boot. Is there an easy way to do this? Further, might there be any way to distinguish between "this chkdsk is being run because you want it run every time" vs. "the chkdsk is being run because the dirty bit is set (you had a problem)"?


My System SpecsSystem Spec
.
20 Mar 2012   #2
Dave Atkin

Windows 7 Ultimate x64
 
 

Hello,

How strange. If you open cmd and type the following then it should mark the partition as dirty and start up with a chkdsk:

"fsutil dirty set C:"

(Put any other drives you want on the end as well). It maybe worth adding it as a scheduled task. There wont be a way to distinguish because you will be doing it every time you boot. Bare in mind that if you have lots of data then it could take a lot of time to check. Using Hibernated files isnt a great idea really.


Dave
My System SpecsSystem Spec
20 Mar 2012   #3
MilesAhead

Windows 7 32 bit
 
 

You could try making a batch file like MyChikDsk.cmd and put your chkdsk commands in it. To test it, make a shortcut to the .cmd file and put it in the RunOnce registry key using my RunItOnce utility available on this page:

Faves Downloads


All my apps are free to use at your own risk. See Requirement heading at the top of the page.

Using this technique has worked for me deleting index.dat files otherwise protected by the system. I haven't tried it with chkdsk. But I know RunOnce key stuff is run before the system is fully engaged, which is why some malware exploit it. I would try it on a non system drive first to see how it goes.

If it works then you just need to devise a way to set the .cmd file to run under RunOnce key every time. A small AutoIt3 program to write the key should be pretty easy to do. A few lines.

edit: if this technique works and you don't need to set the dirty bit then you should be able to tell during boot what it up.
My System SpecsSystem Spec
.

21 Mar 2012   #4
maxseven

Windows 7 Home Premium 64bit 6.1 Build 7601 (SP1)
 
 

Thanks, I thought if there was a "trivially easy" way to do this then someone here would know. I will try doing it "the hard way" instead.
My System SpecsSystem Spec
21 Mar 2012   #5
MilesAhead

Windows 7 32 bit
 
 

My System SpecsSystem Spec
22 Mar 2012   #6
maxseven

Windows 7 Home Premium 64bit 6.1 Build 7601 (SP1)
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
That looks like it might do what I want, but in any case is a very nice find--thank you MA!
My System SpecsSystem Spec
25 Mar 2012   #7
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by maxseven View Post
Quote   Quote: Originally Posted by MilesAhead View Post
That looks like it might do what I want, but in any case is a very nice find--thank you MA!
You are welcome. Thanks for the rep.
My System SpecsSystem Spec
25 Mar 2012   #8
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

I have this as well, but have never had need for it

Download Portable CheckDiskGUI 1.1.3 Free - Graphical User Interface for the commandline version of chkdsk.exe - Softpedia

Some other interesting software from this author

http://www.wieldraaijer.nl/

A Guy
My System SpecsSystem Spec
Reply

 have a chkdsk run on all drives every time I boot




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
CHKDSK time....
Hi there, My Sony Vaio started a CHKDSK approx 24 hrs ago and is 11% of stage 4 of 5...is this normal? Thx David
Performance & Maintenance
CHKDSK prompt pops up every time I boot.
So in my last post, I removed a virus from another HDD. Ever since then, I get a strange CHKDSK screen (the Windows Log-on has not loaded yet) The weird thing is, It checks my ORIGINAL drive, not the new one. So at first, I just sit through it and it finds nothing. "Ok," I thought, "This might be a...
Performance & Maintenance
Why is chkdsk so much slower at boot time?
Something I've always wondered about: if I do a disk Properties/Tools/Check now and am successful i.e. the drive's not mounted and is checked (typically with just "auto fix" selected, not "check for bad sectors") it runs lickety-split i.e. usually less than a minute even on very large drives. ...
Performance & Maintenance
Mapped network drives, slower boot time
Long story short, I have shares on three PCs that are not always on. If I make a shortcut to the share and put it on my desktop, sometimes for some reason, the shortcut vanishes. I believe this is because I haven't connected the PC to the network in a while. So, I went about and mapped those...
Performance & Maintenance
chkdsk not available for raw drives problem
Hi. I have a Win 7 Pro 64-bit pc with VMWARE player installed on a second partition on the main HD U:/. I recently starting getting errors when using the VM saying that the operation on the file U:/xxxxxxx/windows 7 x64.vmdk failed. I tried to run chkdsk /f /r on the U: drive and got the error...
Performance & Maintenance
HDD: chkdsk /r fails at same point each time
someone more knowledgeable than I may know the 'rest of the story': I am working on a little WD "My Passport" usb ext drive which works, except it seems to 'hang' sometimes when put to use, or runs very slowly as measured by 7's little time-estimator and kb/s or mb/s meter. When I run WD's own...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 21:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App