Why should fire extinguishers containing carbon dioxide not be used on magnesium fires?
The reaction of magnesium metal (Mg) with carbon dioxide is extremely exothermic (heat evolving). In other words, carbon dioxide makes magnesium metal burn. 

$$\ce{2Mg(s) + CO2(g) -&gt; 2MgO(s) + C(s)}$$