1. For MT vehicle, remove the shift lever knob.
2. Remove the cup holder panel using a tape-wrapped screwdriver.

3. Remove the boot panel using a tape-wrapped screwdriver, disconnect the cigarette lighter connector, and remove the front ashtray illumination.
4. Remove the bolts.
5. Install in the reverse order of removal.
Glove compartment removal/installation
Console disassembly/assemblyMazda 6 Service Manual: Vehicle speedometer sensor (vss) inspection
Visual Inspection
1. Remove the VSS. (See VEHICLE SPEEDOMETER SENSOR (VSS)
REMOVAL/INSTALLATION.)
2. Make sure that the sensor is free of any metallic shavings or particles.
If any are found on the sensor, clean them off.
3. Install the VSS. (See VEHICLE SPEEDOMETER SENSOR (VSS)
REMOVAL ...
Mazda 6 Service Manual: Rocking the Vehicle
WARNING
Do not spin the wheels at more than 56 km/h (35 mph), and do not allow
anyone to stand behind a wheel when pushing the vehicle: When the vehicle
is stuck, spinning the wheels at high speed is dangerous. The spinning tire could
overheat and explode. This could cause serious injuries.
...