A method for determining embedded runout correction (ERC) values using
iteration and variable gain in a disk drive. A disk has a track written
thereon, an ERC value is determined for a servo sector on the track using
variable gain, and the variable gain decreases based on the number of
revolutions of the disk.