On Fri, 21 Apr 2006, Jeff Garzik wrote:You can force the disk to replace the bad sectors by doing a disk-level write:
dd if=/dev/zero of=/dev/sda1 bs=4k
NOTE! Obviously don't do this before you've backed up the disk. Depending on the filesystem, you might just have overwritten something important, or just your pr0n collection ;)
Jeff, please be a little more careful about telling people commands like that. Some people might cut-and-paste the command without realizing what it's doing as a way to "fix" their problem.