According to one embodiment, an adjusting element adjusts a dynamic flying
height of a head lying over a disk in accordance with the power supplied
to it. A calculation module calculates the power to supply to the
adjusting element, from a barometric pressure detected by a barometric
pressure sensor. A failure detection module detects failure of the
barometric pressure sensor. An unload controller predicts an abnormal
dynamic flying height of the head from the failure detected and then
instructs the unloading of the head away from the disk.