I am writing a line-of-business utility that will, among other tasks, run chkdsk.exe in read-only mode on NTFS secondary data hard disks. To fully test my utility I need to induce a state on one of these disks which chkdsk will detect as an error... preferably in a way that does not destroy existing data on the disk. What is the easiest way to do this?
Edit:
Ideally I'd like to create a dummy text file on one of these drives and then mess up that file in such a way that chkdsk thinks it needs to be fixed. I'm not sure how to go about messing up a file.