maximus wrote:I know the question is a little out of the ordinary, but it is for testing purposes. So is is possible to simulate, or much better yet, create bad sectors on a hard drive?
Assuming you're referring to (S)ATA... Not all (S)ATA disks support the related commands, but the typical answer is "yes" - depending on exactly what distinction you are making between simulate and create. Note that delibrately created bad sectors (sometimes called "soft bad") are not treated in exactly the same way by modern disks, as "real" bad sectors - hence why some people might call that simulation and not creation. However they do cause a UNC when they are read from, like a "real" bad sector would do.
Look at MHDD (from memory, the command is "makebad"), unless you're planning on writing your own software to do this.