According to one embodiment, a magnetic recording device includes a magnetic recording medium, a magnetic head configured to
record information on the magnetic recording medium, and a controller configured to control the magnetic recording medium and the magnetic head. The magnetic head includes a coil, a first magnetic pole configured to generate a
magnetic field according to a recording current supplied to the coil, and a light emitting section configured to irradiate the magnetic recording medium with a light to locally increase a temperature of the magnetic recording medium. The controller is configured to perform a first operation and a second operation. In the first operation, the controller is configured to
record a first
servo position information in a first region of the magnetic recording medium. In the second operation, the controller is configured to perform a repair operation if a first condition is not satisfied.