Embodiments of the invention provide a data storage apparatus and its
control method capable of accurately reading/writing data. A data storage
apparatus in an embodiment of the invention comprises: a servo control
section which, based on servo data stored on the storage medium,
generates servo control data to control the position of the head; a
sensor to detect vibration; a compensation data generating section which
generates compensation data to compensate for the head's position error
caused by vibration; a drive signal generating section which can generate
a drive signal to move the head based on the servo control data and the
compensation data; an arithmetic processing section which updates a
rating value to evaluate the level of vibration given to the data storage
apparatus; and a determination processing section which, according to the
updated rating value, determines whether to perform the compensation
using the compensation data; wherein the drive signal generating section
compensates the servo control data using the compensation data in
generating the drive signal.