Servo writing a disk of a disk drive is disclosed. A phase locked loop
(PLL) is synchronized to first sectors previously written on a first
track, and second sectors are written to a second track using the PLL,
wherein a plurality of phase errors corresponding to the second sectors
are saved. A correction value is computed corresponding to a selected one
of the second sectors, wherein the correction value is computed in
response to a plurality of the phase errors generated for a plurality of
the second sectors leading the selected sector. The PLL is synchronized
to the second sectors using the correction value, a third sector is
written to a third track using the PLL, and a phase error is saved
corresponding to the third sector.