1. Disconnect the negative battery cable.
2. Remove the headliner.
3. Disconnect the connector.
4. Remove the screws, and then remove the sunroof motor.

Sunroof unit disassembly/assembly
Sunroof motor installationMazda 6 Service Manual: Discharge headlight control unit removal/installation
Caution
Incorrect servicing of the discharge headlight control unit could
result in electrical shock. Before servicing the discharge headlight control
unit, always refer to the Discharge headlight service warnings. (See
DISCHARGE HEADLIGHT SERVICE WARNINGS)
When replacing the discharg ...
Mazda 6 Service Manual: Odometer, Trip Meter and Trip Meter Selector
The odometer is constantly displayed on the screen when the ignition is switched
ON, and the TRIP A or TRIP B screen can be displayed by operating the INFO switch.
Odometer
The odometer records the total distance the vehicle has been driven.
Trip meter
The driving distance for a specified in ...