At the time of the quake, reactor 4 had been de-fueled while 5 and 6 were in cold shutdown for planned maintenance. The remaining reactors shut down automatically after the earthquake, but the entire plant was flooded, including low-lying generators and electrical switchgear in reactor basements and external pumps for supplying cooling seawater. The connection to the electrical grid was broken. All power for cooling was lost and reactors started to overheat. There was a partial core meltdown in reactors 1, 2, and 3; hydrogen explosions destroyed the upper part of the buildings housing reactors 1, 3, and 4; an explosion damaged the containment inside reactor 2; fires broke out at reactor 4. Despite being initially shutdown, reactors 5 and 6 began to overheat. Spent nuclear fuel rods stored in pools in each reactor building overheated as water levels in the pools dropped.