The present invention provides a magnetic disk device that can efficiently
record parity and has excellent error correction capabilities for user data on the disk. [Solution] The magnetic disk device comprises a disk DK, a write head WHD, a volatile buffer memory 80, a parity generation unit, a write
processing unit 62, an error correction unit 64, a storage
processing unit 65, and a normal correction limit prediction unit 66. The parity generation unit generates a first normal parity and a first strong parity based on first user data, and generates a second normal parity and a second strong parity based on second user data. The storage
processing unit 65 overwrites the first recording area of the buffer memory with the second strong parity if the first prediction information is normal information, and if the first prediction information changes to abnormal information, it leaves the first strong parity in the first recording area and stores the second strong parity in the second recording area of the buffer memory.