A flight recorder is an electronic recording device placed in an aircraft for the purpose of facilitating the investigation of aviation accidents and incidents. From Wikipedia
Flight recorders on the Boeing 737-800 stopped recording four minutes before South Korea's deadliest aviation disaster, killing 179 people.