Patent ID: 7457067

Claim:
A method for controlling a recording current supplied to a recording head in a magnetic disk device in order to record user data in data sectors of a magnetic disk, said method comprising: a first recording of, when recording a first section of the user data in a required number of data sectors from a data sector of a starting address of the recording of the user data to a data sector of an intermediate address, setting the recording current to a first recording current value; a second recording of, when recording a second section of the user data in the data sectors arranged from the data sector of the intermediate address towards an ending address, setting the recording current to a second recording current value smaller than the first recording current value, wherein the first recording current value and the second recording current value are both generated by combining a rectangular-wave current and an overshoot current, and a rectangular-wave current value forming the first recording current is greater than a rectangular-wave current value forming the second recording current; measuring an internal temperature of the magnetic disk device; and changing at least one of the first recording current value, the second recording current value, and the required number of data sectors according to a value of the temperature measured, wherein the number of data sectors ranging from the starting address to the intermediate address is changed according to the temperature measured.