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: Operating Tips for CD Player
Condensation phenomenon
Immediately after turning on the heater when the vehicle is cold, the CD or optical
components (prism and lens) in the CD player may become clouded with condensation.
At this time, the CD will eject immediately when placed in the unit. A clouded CD
can be corrected sim ...
Mazda 6 Service Manual: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...