Embodiments of the invention improve utility of a magnetic disk drive in
which a head is retracted if the magnetic disk drive is in a dropping
state. In one embodiment, an HDC/MPU provided in a magnetic disk drive
judges whether the magnetic disk drive is in a dropping state based on an
output from an acceleration sensor which may detect an acceleration and
performs a retraction operation of a head. After the HDC/MPU judges that
a drop is occurring, the HDC/MPU detects whether the drop judgment is
incorrect according to whether a shock sensor detects a shock occurrence
and changes the drop judgment condition based on a detection history of
detected incorrect judgments.