Patent attributes
A system includes a servo writing module, a position measuring module, and a compensation module. The servo writing module writes a first set of servo wedges on a magnetic medium of a hard disk drive (HDD) using a head of the HDD. The position measuring module measures a position of the head when the head writes the first set of servo wedges and generates a first measured head position. The compensation module generates first compensation data based on the first measured head position to compensate a repeatable error component of the first measured head position. The servo writing module writes the first compensation data on the magnetic medium when writing the first set of servo wedges and writes second compensation data generated based on the first set and the first compensation data read from the magnetic medium when writing a second set of servo wedges on the magnetic medium.