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/20
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Is there any way to run chkdsk automatically after dirty shutdown on NTFS partitions just like old Win9x days ?
     
  2. 2006/05/20
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    Chkdsk is run at every boot of XP. To see it add /sos to boot.ini after the other arguments on the XP line.
     
    Last edited: 2006/05/20

  3. to hide this advert.

  4. 2006/05/20
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    But how to run it with /f parameter, so that it can fix the damages ?
     
  5. 2006/05/20
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    If there is no damage, there's no reason to run it with the /f parameter.

    When it detects problems, it will prompt you for action.

    Remember, NTFS is more robust then FAT!
     
    Arie,
    #4
  6. 2006/05/20
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    I have FAT and it fixes automatically. You can watch it!
     
  7. 2006/05/20
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Agreed that NTFS is more robust than FAT, but even it requires some basic house cleaning.

    My problem is that I have to support some 100 odd pcs at different locations and running chkdsk manually every week is becoming a big problem. On top of that we have quite severe power shortage out here & its very hot so PC's keep on hanging & rebooting. So I need a way to run chkdsk /f automatically if the system shutdown was dirty.
     
  8. 2006/05/20
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Sparrow, I don't normally recommend that people use FAT with XP unless they have some specific requirement - like sharing partition(s) with other OS (Win9x, Linux) or some other program which does not run on NTFS ( a major accounting program comes to mind) - and never ever in business environment.

    Perhaps you should also start using NTFS & dump FAT :) .
     
  9. 2006/05/20
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    Can't say that mine does. However, if my computer is shut down improperly, chkdsk always runs just like the old win 9X days. I get no prompt to fix it, it just does it on it's own. It does show what it fixed (if anything) but it goes by pretty fast so I generally have to look at the event viewer to see what it did.

    I always thought it did that by default???? I've never done anything to make it work that way. It just does. :confused:
     
  10. 2006/05/20
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
  11. 2006/05/20
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    I don't really know, but, I'm using Fat32. Maybe that's why it runs for me?
     
  12. 2006/05/21
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Yes - XP is emulating 9x. But what about NTFS?
     
  13. 2006/05/21
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Source: Windows XP Professional Resource Kit - Troubleshooting Disks and File Systems
     
  14. 2006/05/21
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Illuminating to say the least, but I have yet to see any NTFS system running chkdsk automatically after a dirty boot & this includes Win 2k, Win 2k3, XP & server editions.

    Maybe the automatic checking is reserved for such instances that the volume becomes unmountable & unreadable and then only it starts checking, but if one waits for so long for this, I think the volume is a gone case anyway and one can expect massive data loss on it.
     
  15. 2006/05/21
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    Agree 100%; my computers are at home; I'm retired, and feel NTFS is not suitable for folks at home. Have seen too many problems there, probably stemming from lack of IT help that is available to corporations.

    You haven't turned off the XP splash screen as was suggested if you still haven't seen chkdsk running automatically at boot on NTFS partitions.
     
    Last edited: 2006/05/21
  16. 2006/05/21
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Ok would do that but does it fixes anything or does it only checks & reports the error (aka chkdsk without any switches) ?
     
  17. 2006/05/22
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    Fixes as well. Think you can see it work when splash screen is turned off by just pressing reset button (or pulling the plug if no reset) and then reboot- you don't have to wait. :D
     
  18. 2006/05/22
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    Added the /sos switch to boot.ini & did just what you suggest above, yesterday. (just to make sure that it fixes them too)

    Though Windows checks the hard disks, it gave all the partitions a clean chit of health whereas after booting I was not able to access one directory & had to run chkdsk /f manually to recover it. :confused:
     
  19. 2006/05/22
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    You can see what, if anything, chkdsk fixes while booting by looking at your event viewer. It's been a while since I ran it but I believe it'll be under "application" although it may be "system ". Look for an event type named winlogon.
     
  20. 2006/05/23
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    That's a first.for me. Been running without splash screens since win98 and never have had such an experience. Something must have happened to the disk after it was checked. :D

    Don't accept one experience as proof. Keep watching. for a while.
     
  21. 2006/05/23
    rsinfo

    rsinfo SuperGeek Alumni Thread Starter

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    It's not an one off experience. I have been facing this problem for long and on different computers. The computers would hang or reboot & then the users would not able to access files & folders until chkdsk /f is run manually.

    I have not been able to find any doc on Microsoft site which says that chkdsk runs & corrects the errors automatically on boot - it always says that you have to run chkdsk /f manually.
     

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.