A magnetic encoder system according to one embodiment includes a magnetic sensor mounted on a first substrate above a magnetic medium, the magnetic medium carrying at least one magnetic track, the sensor detecting changes in the magnetic track during a relative movement between the sensor and the magnetic medium. The first substrate is provided with a second substrate rotatably engaging the magnetic medium.