Embodiments of the invention appropriately control the flying height of a
magnetic head slider as necessary without making the magnetic head slider
touch the magnetic disk. In one embodiment, when a magnetic disk drive is
started, the level of electric power predefined for the ordinary
temperature (room temperature) is read in from the internal memory of an
MPU. A temperature sensor measures the internal temperature of the
magnetic disk drive and sends it to the MPU. According to the temperature
sent from the temperature sensor, the MPU calculates the level of
electric power which should be applied to a flying height adjustment
structure. According to the calculated electric power, the MPU increases
or decreases the electric power applied to the flying height adjustment
structure. At a flying height controlled (corrected) by the flying height
adjustment structure, a magnetic head slider performs read/write on a
magnetic disk.