dd if=/dev/zero of=/dev/sdx1 bs=128KB
I just wanted to make a note here that is probably obvious to 99% of people here. If you do this test on a partition you are using as a filesystem then it will destroy that filesystem.
I was just about to blindly copy and paste this command and it came to my had that this may not be obvious to everyone.
--
John