Patent attributes
A magnetic disk device includes a disk, a head configured to write data on the disk, and a controller. The controller generates a target trajectory of the head in a circumferential direction for writing to a plurality of sectors in a current track, wherein the target trajectory is based on an actual trajectory of the head for writing to a plurality of sectors in a previously written track that is adjacent to the current track, determines that the previously written track is discontinuous between an initial sector of the previously written track and an end sector of the previously written track by a radial offset, generates a corrected trajectory for writing the plurality of sectors in the current track, and controls a position of the head in a radial direction based on the corrected trajectory while writing to the plurality of sectors in the current track.