New answers tagged hardware
What you are asking for is a fault injection. Unfortunatelly, you are not enough specific in what kind of error you want to reach and there is a lot of different states from bad blocks causing read-write errors to no rights or disconnected devices during the process, etc. This answer on another project will make you happy under Linux: ...
Top 50 recent answers are included