I need to explicitly check what my application is doing if it is trying to access some damaged part of the NTFS file system. I was looking for similar questions, but it was about corrupting certain files (i.e. destroying the syntax of an xml file, etc.).
I need to create a script in which chkdsk will report errors in the file system in a specific place.
Does anyone know how I can provoke such a situation to test my application.
Just in case, you are worried: I would not do this on my production system, I have a virtual machine configured for such things.
klaustopher
source share