A disk drive device has a shock sensor that detects mechanical shocks to a
disk drive device to provide a shock output signal representative of such
mechanical shocks. The shock output signal may be filtered to pass
signals having a low frequency component of approximately between 1 and 4
KHz. Low frequency mechanical disturbances may be compensated for during
writing to a track on the disk drive as a function of such low frequency
component. In one embodiment, higher frequency shocks may be processed on
a separate shock channel to inhibit or allow write operations. Different
filters may be used on each of the shock channels.