How can I stop a running check disk? RRS feed

  • Question

  • I'm writing an application that checks the disks state and fixes errors when it is necessary.
    I want to be able to stop an already started checkdisk but I've no idea on how to realize that.
    If I send a CTRL-C event I'm able to stop a running checkdisk only if the checkdisk is started without the option to repair the errors found.
    I can try to kill the chkdisk process but I'm worried about the possibility to lost data on the drive.
    Anyone know how can I stop a checkdisk in a clean way?
    Thursday, November 4, 2010 4:19 PM

All replies

  • Indeed, Ctrl+C won't work. the only way i know is kill the cmd.
    "Mark/Propose As Answer" if you got one.
    Thursday, November 4, 2010 4:58 PM
  • Thanks,

    but there is some chance to lost data (i.e. I kill the checkdisk while it is repairing some damaged sector)?

    Friday, November 5, 2010 8:52 AM
  • i don't know, but i'm pretty sure that it's safe. (working in ram and only correct if something is wrong (already)).

    "Mark/Propose As Answer" if you got one.
    Friday, November 5, 2010 4:11 PM
  • ok, so the question now is:

    if we have a damaged sector that checkdisk could recover, and I kill the checkdisk while it's writing on the disk, then running another checkisk am I enable to recover the sector or could I have damaged it in an unrecoverable way?

    Monday, November 8, 2010 9:44 AM