SirDice said:
Actually, there is. It just takes a very long time. For the same reason old audio/video tapes or floppy disks will start wearing out, the magnetism on the platters also wears out over time. This is why you eventually get bad sectors.
I don't think any disk manufacturer has used oxide media for many years now, due to density limitations. Modern media is thin-film, usually sputtered or plated (though I don't see why ion deposition wouldn't work). These provide pure magnetic material, not oxide (rust). They should permit an effectively infinite number of writes (while I won't say "heat death of the Universe" interval, certainly past the warranty period).
Bad spots can occur for a number of reasons in addition to magnetic degradation. The usual reason is a "write splice error" where the writing of the user data (plus any applicable error correction) overflows (or misses entirely) the area allocated for that sector and writes on top of other data, such as headers for adjacent sectors. This can be caused by power drops during writing, mechanical vibration, poor tolerances in the drive, etc.
Normally this isn't a problem, modern (S)ATA drives "map" these bad bits of disk to a spare bit of disk. This all happens within the drive's firmware. If you, as a user of the disk, start noticing the bad blocks it means this "spare" bit of disk is filled up and it can't map out bad sectors any more. Then it's time to replace the disk.
That's only true for errors detected on writes and
correctable errors on reads. If the drive (or RAID volume) has an uncorrectable read error, that error will bubble all the way up and should return EIO to the user application. Sometimes telling the drive to format itself will deal with these (but with the loss of all other data). Sometimes the drive can't handle them at all and they will remain. The old methods of writing 0's to the drive with
dd(1) or trying to read the same sector over and over in the hope that the drive will "notice" and map it out won't work on modern drives. "Classic" SCSI drives (not SAS) usually support changing the AWRE and ARRE mode bits to control automatic reallocation of write and read errors, respectively.
Excessive seeking, also known as thrashing, may cause damage though, if only because of the strain put on the arm. It can eventually lead to a head crash. That said, modern hard drives are built much more sturdier (and smarter) than the old 20MB disks I was used to
Yup. I particpated in the redesign of a 40MB ST506-type drive to improve actuator reliability. I went to the drive manufacturer to "straighten things out" because my company was getting so many dud drives with actuator problems. We were the manufacturer's second largest customer (behind DEC).
If I'm not mistaken Google did publish some interesting statistics. They obviously go through a lot of disks.
Yes, I remember that study. The two things that limited its usefulness were that it didn't name (shame) drive manufacturers, and no detailed failure analysis (opening the drive in a clean room and determining the actual fault) was done.