How do I clear the dirty bit?

Discussion in 'Windows XP Help' started by Nightcrawler, Jun 20, 2004.

  1. Nightcrawler

    Nightcrawler Guest

    I used fsutil to force the dirty bit on my "C" drive, and now it will not clear.
    Not too major a problem, but the disk degragger won't work anymore, because
    the "bit" is set.

    Anyone know of a way to clear the "dirty bit"? Chkdsk isn't doing it, so, I figure
    there's got to be another way.

    TIA
     
    Nightcrawler, Jun 20, 2004
    #1
    1. Advertisements

  2. Nightcrawler

    VManes Guest

    Are you using chkdsk /f ?

    --
    Bringing you BeadWizard Design Software
    www.beadwizard.com
    ***************************
    Practice safe eating -- always use condiments.
    ***************************

    "Nightcrawler" <> wrote in message
    news:...
    I used fsutil to force the dirty bit on my "C" drive, and now it will not
    clear.
    Not too major a problem, but the disk degragger won't work anymore, because
    the "bit" is set.

    Anyone know of a way to clear the "dirty bit"? Chkdsk isn't doing it, so, I
    figure
    there's got to be another way.

    TIA
     
    VManes, Jun 20, 2004
    #2
    1. Advertisements

  3. Nightcrawler

    Wesley Vogel Guest

    Check Disk runs on every boot

    Autochk.exe is a version of Chkdsk that runs only before Windows XP starts.
    Autochk runs in the following situations:

    Autochk runs if you try to run Chkdsk on the boot volume.
    Autochk runs if Chkdsk cannot gain exclusive use of the volume.
    Autochk runs if the volume is flagged as dirty.

    This can happen if the drive's dirty bit is set.
    When a drive's dirty bit is set, autochk automatically checks the volume for
    errors the next time the computer is restarted.

    Start | Run | Type: cmd | OK |

    Type: fsutil dirty query C:

    Hit ENTER

    This will report whether the dirty bit is set.
    Volume C: is not dirty
    Volume C: is dirty
    [[If a volume's dirty bit is set, this indicates that the file system may be
    in an inconsistent state. The dirty bit can be set because the volume is
    online and has outstanding changes, because changes were made to the volume
    and the computer shutdown before the changes were committed to disk, or
    because corruption was detected on the volume. If the dirty bit is set when
    the computer restarts, chkdsk runs to verify the consistency of the volume.

    Every time Windows XP starts, Autochk.exe is called by the Kernel to scan
    all volumes to check if the volume dirty bit is set. If the dirty bit is
    set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f
    verifies file system integrity and attempts to fix any problems with the
    volume.]]
    ==========

    If this is not the problem.....

    Go here:
    http://www.kellys-korner-xp.com/xp_tweaks.htm

    Read the instructions at the top of the page.
    Scroll down to:
    82. Disable or Enable Check Disk Upon Boot
    Click on Disable.
    ============

    Go to Start/Run/Regedit and navigate to this key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

    Look for the REG_MULTI_SZ value with the following name: BootExecute.
    This value contains commands that will be executed at startup. The
    default value is: autocheck autochk *

    If you don't want any checks to be performed, delete all autocheck
    entries.
    ====

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
    Name: BootExecute
    Type: REG_MULTI_SZ
    Data: Blank, nothing, nada, white space, air
    ===========

    Try this: Open a command prompt and type "chkdsk /f c:" (or whatever the
    drive letter is). Then reboot. This should fix it. It has a "dirty bit" set,
    and chkdsk needs to clear it.


    --
    Hope this helps. Let us know.
    Wes

    In news:,
    Nightcrawler <> hunted and pecked:
    > I used fsutil to force the dirty bit on my "C" drive, and now it will
    > not clear. Not too major a problem, but the disk degragger won't work
    > anymore, because
    > the "bit" is set.
    >
    > Anyone know of a way to clear the "dirty bit"? Chkdsk isn't doing
    > it, so, I figure there's got to be another way.
    >
    > TIA
     
    Wesley Vogel, Jun 20, 2004
    #3
  4. Nightcrawler

    Guest Guest

    "Wesley Vogel" wrote:

    > Check Disk runs on every boot
    >
    > Autochk.exe is a version of Chkdsk that runs only before Windows XP starts.
    > Autochk runs in the following situations:
    >
    > Autochk runs if you try to run Chkdsk on the boot volume.
    > Autochk runs if Chkdsk cannot gain exclusive use of the volume.
    > Autochk runs if the volume is flagged as dirty.
    >
    > This can happen if the drive's dirty bit is set.
    > When a drive's dirty bit is set, autochk automatically checks the volume for
    > errors the next time the computer is restarted.
    >
    > Start | Run | Type: cmd | OK |
    >
    > Type: fsutil dirty query C:
    >
    > Hit ENTER
    >
    > This will report whether the dirty bit is set.
    > Volume C: is not dirty
    > Volume C: is dirty
    > [[If a volume's dirty bit is set, this indicates that the file system may be
    > in an inconsistent state. The dirty bit can be set because the volume is
    > online and has outstanding changes, because changes were made to the volume
    > and the computer shutdown before the changes were committed to disk, or
    > because corruption was detected on the volume. If the dirty bit is set when
    > the computer restarts, chkdsk runs to verify the consistency of the volume.
    >
    > Every time Windows XP starts, Autochk.exe is called by the Kernel to scan
    > all volumes to check if the volume dirty bit is set. If the dirty bit is
    > set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f
    > verifies file system integrity and attempts to fix any problems with the
    > volume.]]
    > ==========
    >
    > If this is not the problem.....
    >
    > Go here:
    > http://www.kellys-korner-xp.com/xp_tweaks.htm
    >
    > Read the instructions at the top of the page.
    > Scroll down to:
    > 82. Disable or Enable Check Disk Upon Boot
    > Click on Disable.
    > ============
    >
    > Go to Start/Run/Regedit and navigate to this key:
    > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
    >
    > Look for the REG_MULTI_SZ value with the following name: BootExecute.
    > This value contains commands that will be executed at startup. The
    > default value is: autocheck autochk *
    >
    > If you don't want any checks to be performed, delete all autocheck
    > entries.
    > ====
    >
    > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
    > Name: BootExecute
    > Type: REG_MULTI_SZ
    > Data: Blank, nothing, nada, white space, air
    > ===========
    >
    > Try this: Open a command prompt and type "chkdsk /f c:" (or whatever the
    > drive letter is). Then reboot. This should fix it. It has a "dirty bit" set,
    > and chkdsk needs to clear it.
    >
    >
    > --
    > Hope this helps. Let us know.
    > Wes
    >
    > In news:,
    > Nightcrawler <> hunted and pecked:
    > > I used fsutil to force the dirty bit on my "C" drive, and now it will
    > > not clear. Not too major a problem, but the disk degragger won't work
    > > anymore, because
    > > the "bit" is set.
    > >
    > > Anyone know of a way to clear the "dirty bit"? Chkdsk isn't doing
    > > it, so, I figure there's got to be another way.
    > >
    > > TIA

    >
    >


    Wesley et al;

    I have a similar problem to the one here (though I *DIDN'T* force the dirty bit manually - it set itself.). I went ahead through all of your steps listed here - no dice, both FSUtil and Diskeeper 8 both reported the dirty bit as set. Finally went ahead and used the GUI methos of running chkdsk /f (Disk Properties->Tools->Error Checking) and it finall cleared the bit. WOOT! I said, time to run the Diskeeper boot-level defrag!

    Set Diskeeper to do it's thing, and rebooted. This was the *ONLY* thing I did that session. On next reboot - Diskeepr defrag won't run, disk is dirty again. *sigh*.

    Is there *any* way other than chkdsk /f to force the dirty bit clear and keep it clear? This is really getting tiresome.
     
    Guest, Jul 8, 2004
    #4
  5. Nightcrawler

    molodoj33

    Joined:
    Sep 26, 2008
    Likes Received:
    0
    Dirty bit problem.

    THANKS - "chkdsk /f c:" helped very nice for me!

     
    molodoj33, Sep 26, 2008
    #5
  6. Nightcrawler

    ziapcland

    Joined:
    Sep 7, 2012
    Likes Received:
    0
    how to fix it.

    First click Start> Run> and bring up a command prompt by typing in "CMD" and then type "fsutil dirty query d:" <drive letter as your requirement C: or whtsoever> but without the quotes. This queries the drive, and more than likely it will tell you that it is dirty. Next, type "CHKNTFS /X D:". The X tells Windows to NOT check that particular drive on the next reboot. At this time, manually reboot your computer, it should not do a Chkdsk and take you directly to Windows.

    Once Windows has fully loaded, bring up another CMD prompt and now you want to do a Chkdsk manually by typing "Chkdsk /f /r d:". This should take you through 5 stages of the scan and will unset that dirty bit. Finally, type "fsutil dirty query d:" and Windows will confirm that the dirty bit is not set on that drive. Good luck
     
    Last edited: Sep 7, 2012
    ziapcland, Sep 7, 2012
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Morley Lee

    32 bit and 64 bit

    Morley Lee, Jul 18, 2003, in forum: Windows XP Help
    Replies:
    6
    Views:
    3,361
    Robert Moir
    Jul 19, 2003
  2. Guest

    computer disappearing bit by bit

    Guest, Dec 29, 2003, in forum: Windows XP Help
    Replies:
    3
    Views:
    475
    Guest
    Dec 29, 2003
  3. We Live For The One We Die For The One

    How does Xp 64 bit go with a 64 Bit CPU ?

    We Live For The One We Die For The One, Apr 30, 2004, in forum: Windows XP Help
    Replies:
    2
    Views:
    206
    Peter A. Stavrakoglou
    Apr 30, 2004
  4. Guest
    Replies:
    2
    Views:
    880
    David Candy
    Jun 26, 2004
  5. Guest

    Will 32-bit XP Pro run on a 64-bit system?

    Guest, Oct 11, 2004, in forum: Windows XP Help
    Replies:
    4
    Views:
    342
    Ron Martell
    Oct 12, 2004
  6. Chris/Power Salad

    STILL cannot run defrag (dirty bit/chkdsk problems)

    Chris/Power Salad, Feb 16, 2005, in forum: Windows XP Help
    Replies:
    1
    Views:
    832
    Guest
    Feb 16, 2005
  7. Justin Jeffries

    updating display 24 bit to 32 bit?

    Justin Jeffries, Apr 11, 2005, in forum: Windows XP Help
    Replies:
    2
    Views:
    355
    Sharon F
    Apr 11, 2005
  8. Guest

    dirty bit keeps getting set on harddrive

    Guest, Nov 15, 2005, in forum: Windows XP Help
    Replies:
    0
    Views:
    304
    Guest
    Nov 15, 2005
Loading...