A magnetic storage system includes a disk, a head, an actuator, a read
channel, and a main controller. The main controller causes the head to
read a data block of a selected track of the disk at each of a plurality
of fixed offsets from a center of the selected track. The main controller
samples a gain in the read channel a plurality of times while the head is
reading the data block at each of the plurality of fixed offsets to
obtain a plurality of gain samples for each of the plurality of fixed
offsets. If the data block was written off-track with a non-constant
offset, the main controller determines an approximate starting position
and an approximate rate of change of an off-track deviation of the data
block based on the plurality of gain samples for the plurality of fixed
offsets.