Among other disclosed subject matter, a magnetic disk controller includes
an interface that receives and transmits data to be written into a
magnetic disk. The magnetic disk controller includes a first buffer and a
second buffer each of which temporarily stores data that is to be written
into at least one sector of the magnetic disk. The magnetic disk
controller includes an encoding unit that encodes the data stored in any
of the first buffer and the second buffer into data representing a signal
to be applied to the magnetic disk. A data width M between the encoding
unit and the first and second buffers is at least equal to twice a data
width N between the interface and the first and second buffers.