A method and apparatus in a computer system for storing data from a volatile cache during a power loss. The apparatus comprises a volatile cache memory and a non-volatile memory. In a preferred embodiment, the non-volatile memory is an electrically erasable programmable read-only memory. The device further comprises power loss detection logic which detects the power loss in the computer system and copy control logic which copies the data contained in the volatile cache memory to the non-volatile memory upon detection of the power loss. The copy control logic is coupled to the volatile cache, the non-volatile memory, and the power loss detection logic. In a preferred embodiment, the copy control logic and the power loss detection logic comprise a microcontroller. The device lastly comprises a power source coupled to the volatile cache memory and the copy control logic, the power source being independent of the computer system power. In a preferred embodiment, the power source comprises a battery coupled to the microcontroller and the volatile and non-volatile memories. Methods are provided to copy to and restore data from a non-volatile memory when computer system power is lost or restored.