• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1899
  • Last Modified:

Checking the dirty bit in the registry

I have used fsutil dirty query x: DOS command to see if the drive is dirty or not. What I need to find is the exact location in the registry where the dirty bit is located. I have found HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute in the registry. I think this is the location of the dirty bit, but I am looking for confirmation. Also, I am looking for how to simulate a dirty bit so I can see what it will look like in the registry.

If this is not the right path, can someone tell me where it is? This is very urgent.
0
Mister_Spock
Asked:
Mister_Spock
  • 5
  • 4
  • 3
  • +1
1 Solution
 
haim96Commented:
and this one too :
http://support.microsoft.com/kb/218461/en-us

and yes,it's the right path acording to the article.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
expexchuserCommented:
0
 
expexchuserCommented:
Everybody's quick on the trigger 'round here.
0
 
younghvCommented:
Sysinternals has the commands and the Registry location:

http://forum.sysinternals.com/forum_posts.asp?TID=3724


Very quick,
0
 
haim96Commented:
:)
yap ... smoking mouse...
0
 
expexchuserCommented:
I believe it!
0
 
Mister_SpockAuthor Commented:
Good information and I appreciate all of the feedback. I am looking for what the registry key in question will look like when set to dirty. I can use fsutil dirty set and it comes back saying the bit is set to dirty. What I can't find is where the dirty bit is set. I have written a program that will elevate the user permissions (all PC's are locked down except for a few) and runs a defrag. I need to have a program that will check the dirty bit and if it is dirty will inform the user to call the help desk. We have reason to believe that a defrag run on a system that has a dirty bit may break an HDD that is close to breaking anyway.

We want to give the help desk the opportunity to back up the HDD in question and run defrag remotely so that if the HDD does break, we have a recent back up of the data.  


0
 
expexchuserCommented:
Maybe I'll be fast enough this time.

There is a value called BootExecute in this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

I scheduled a chkdsk on C: for next boot and here's what it set the value to
autocheck autochk /r \??\C:

Originally it was just
autocheck autochk *

So anything after or in leui of just the asterisk will mean a dirty bit is set.

http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0008
0
 
haim96Commented:
whay don't you run a test in the login script or somthig?
just do :
fsutil dirty query C:
with error check and some "goto" commands that will popup a massage
0
 
haim96Commented:
batch check.... just in case:
******************
echo off
fsutil dirty query e: |find /i "Volume - e: is NOT Dirty"
echo %errorlevel%
if %errorlevel%==1 goto yes

:no
echo no dirty bit on D:
goto exit

:yes
echo dirty bit on D:
:exit
****************************
0
 
younghvCommented:
Did you even bother looking at my post?

"Sysinternals has the commands and the Registry location:
http://forum.sysinternals.com/forum_posts.asp?TID=3724"

launch regedit and locate HKLM\System\CurrentControlSet\Control\Session Manager
0
 
Mister_SpockAuthor Commented:
I found the location in the registry before I even posted my original question. What I wanted to know was what to look for if the bit is dirty. Yes I did look at your post; I looked at all of them. I picked the one I felt best answered my question.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now