Win XP chkdsk

Discussion in 'Software' started by Scousetechie, Jan 16, 2004.

  1. Scousetechie

    Scousetechie Specialist

    Does anybody know how to automate chkdsk in win xp so that chkdsk runs on boot up? I presume I would have to write a batch file and have tried this but nothing happens.
     
  2. Adrynalyne

    Adrynalyne Guest

    Do you mean before, or after you log on?
     
  3. Scousetechie

    Scousetechie Specialist

    Before logon would be preferable, the machine logs on automatically anyway.
     
  4. MartyP

    MartyP Private E-2

    Go To MY COMPUTER then put your mouse on the C Drive
    Click your right button on your mouse. Then go down to PROPERTIES
    - Click it- Then go to TOOLS......there it is. Took me forever to find it when I first got XP.
     
  5. Adrynalyne

    Adrynalyne Guest

    But that will only do it once.

    I do believe this is the only way you can do it as well.

    It doesn't use the traditional task scheduler, it uses the pagefile, and actually 'flips' a bit (in pagefile.sys) that marks the volume (s) for checking.
     
  6. Scousetechie

    Scousetechie Specialist

    Yeah, thats the problem, it will only do it once. This is an unmanned machine which is set to reboot daily and I would like it to run chkdsk each time. When we were using win 98 we could do it with scandisk but win xp likes to see the drive unmounted before it does a chkdsk methinks.
     
  7. Adrynalyne

    Adrynalyne Guest

    Nice catch :)

    I guess the bit in pagefile.sys only gets flipped on a bad shutdown for chksk, and even then only under fat32.

    My bad.
     
  8. Wisewiz

    Wisewiz Apprentice's Sorcerer

    Ummm, Scouse,
    I use this EXTREMELY complex and difficult bat file to run Chkdsk /f on the next boot before login.

    ECHO Y|CHKDSK C: /F

    Just make the bat file in Notepad, put the bat file anywhere you want it, make a shortcut to it, and set the shortcut to run the program Minimized.

    Any time you click the shortcut, chkdsk /f will run at the next boot before logon.

    You don't really want to run chkdsk at EVERY boot, I don't think, so set up a bat and an easy one-click shortcut, and you've got it made when you want it.

    Just a simple suggestion.
     
  9. Wisewiz

    Wisewiz Apprentice's Sorcerer

    Oh, and a tiny P.S.:

    The default time delay for the launch of chkdsk during a bootup is WAY too long for my taste, but the reg edit to shorten it is a snap.

    HKLM\System\CurentControlSet\Control\Session Manager

    (For safety's sake, Export Session Manager to a folder of your choice at this point.)

    Click Session Manager once to select it and to display the right-hand panel values.

    Locate AutoChkTimeOut in the right-hand panel (or create it as a DWord if it isn't there) and give it a value of 5 or 4 or 3.

    Done.
     
  10. Scousetechie

    Scousetechie Specialist

    Many thanks for the info guys, I knew that I could rely on you!!
     
  11. Wisewiz

    Wisewiz Apprentice's Sorcerer

    I forgot about the unmanned part, so if you choose to use the bat file method rather that the direct registry-editing method, all you need to do is slide the shortcut to the bat file into the Startup folder that the machine reads when it reboots daily.
    That'll do 'er every day, and temporarily disabling it for maintenance or repair will be a breeze.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds