Where a leakage magnetic field deletes data on adjacent tracks gradually,
such deletion is compensated so as to prevent data errors from occurring.
A magnetic disk device includes one or more magnetic disks, one or more
magnetic heads, and a write and read circuit for writing or reading data,
and writes or reads the data on tracks on the magnetic disks. The number
of writes of the data on a given track is acquired. If the number of
writes reaches a predetermined number, the data on the tracks adjacent to
a given track is read out once and, then, the data is rewritten on the
adjacent tracks. Further, when the data is written on the tracks, the
data is written on alternate physical tracks and every other track is
skipped, and after the data is written on half of all tracks, the data is
written on the skipped tracks.