Warning
1. Disconnect the negative battery cable.
2. Disconnect the trunk lid harness connector, pull the trunk lid harness out from the cabin.

3. Disconnect the hooks, which secure the trunk lid harness to the trunk lid hinge.

4. Pry away the stay damper's band with a screwdriver.
5. Pry out the connecting part of the stay damper and the hinge with a screwdriver to disconnect them. Then remove the stay damper.

6. Remove the nuts, then remove the trunk lid.

7. Remove the bolts, then remove the trunk lid hinge.
8. Install in the reverse order of removal.
9. Adjust the trunk lid. (See TRUNK LID ADJUSTMENT.)
Trunk lid
Trunk lid disassembly/assemblyMazda 6 Service Manual: Immobilizer System
The immobilizer system allows the engine to start only with a key the system
recognizes.
If someone attempts to start the engine with an unrecognized key, the engine
will not start, thereby helping to prevent vehicle theft.
If you have a problem with the immobilizer system or the key, consult ...
Mazda 6 Service Manual: Recording of Vehicle Data
This vehicle is equipped with a computer which records the following main vehicle
data related to vehicle controls, operation, and other driving conditions.
Recorded data
Vehicle conditions such as engine speed and vehicle speed
Driving operation conditions such as accelerator and brake ped ...