1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Running chkdsk after dirty shut down

Discussion in 'Windows XP' started by rsinfo, 2006/05/20.

  1. 2006/05/27
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
  2. 2006/05/27
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    Zander, a batch file was on my mind but somebody got to run it & I am seeking ways and means to run chkdsk /f on boot only when there is some error (aka Scandisk in Win98).
     

  3. to hide this advert.

  4. 2006/05/27
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    Well, I don't know what to tell you. The only time I saw scandisk run at startup on win9x was after an improper shutdown. XP should do the same. Mine does. It runs with the /f switch. If there's ever any errors, they're reported in the event viewer and also reported as fixed. Granted this is on Fat32 but I'd be really surprised if NTFS wasn't the same.

    Does anybody else who's reading this and uses NTFS ever have chkdsk run after an improper shutdown? If so or not, it would be nice if you could let us know how it works for you.
     
  5. 2006/06/02
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    I have confirmed that WInXP indeed runs chkdsk /f on volumes which have been marked dirty (by running fsutil dirty set Volume name: to set the dirty bit), but have not yet found out in what cases does it mark dirty :confused: .
     
  6. 2006/06/02
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    A one line batch file set to run weekly or at whatever interval you like in Scheduled Tasks (control panel) should do it, at the next boot (substitute your disk letter for X).
    Code:
    fsutil dirty set X:
     
    Last edited: 2006/06/02
  7. 2006/06/02
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    I can do that, but on 100 computers its going to take some time. :) Anyway, it does not completely solves my problem. :(

    Has anyone got any more idea(s) about the 'dirty bit' business ?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.