What survives when the power goes out?
Lesson 8.2 · Pull the Plug
Sarah · Mark
The lights blink. The game is gone. The photos aren’t.
At Sarah’s house, the lamp flickers and the power goes out for two seconds while she’s mid-game.
Sarah’s desktop PC, the one she games on, shuts off.
When it comes back, her game is gone, back to the menu, but every saved photo and file is right where it was.
Mark asks why some things vanish and some don’t.
The short answer
Anything on the drive survives. Anything only in memory, like unsaved work or game progress, is gone. Sarah lost her game but kept her photos. Memory is fast because it doesn’t bother remembering, which is fine as long as the trips to storage are quick. On Grandma Ruth’s laptop, they aren’t.
Try it yourself
The power cuts out. Pick what survives.
An essay that was saved ten minutes ago.
What you just did has a name
Volatile and non-volatile
Volatile memory forgets everything when the power goes.
RAM is volatile: it holds bits as tiny electrical charges that have to be constantly refreshed.
Non-volatile storage keeps its data with no power at all. Drives, USB sticks and memory cards are non-volatile.
Saving a file means copying it from volatile memory to non-volatile storage.
A few more things
Why not make RAM keep things?
Memory that keeps data without power exists, but it’s slower or more expensive. Computers use fast, forgetful RAM for working and slower, permanent storage for keeping.
Autosave is your friend
Apps that autosave every few seconds are copying your work from memory to the drive constantly, so a crash only costs you a few seconds.
Sleep vs. shut down
When a laptop sleeps, it keeps a trickle of power going to RAM so everything stays where you left it. If the battery dies before it can save to the drive, that memory is lost.
Go deeper
The longer version, if you want it.
Hibernate
Some computers have a hibernate mode: they copy everything in memory onto the drive, then turn off completely. When they start, they copy it all back, and your apps reappear as if nothing happened.
It’s slower to wake than sleep, because the whole desk has to be carried back from the cabinet. But it uses no power at all while off. Same idea as saving, done for the entire computer at once.
Quick check
Why does unsaved work disappear in a power cut?
Let’s take it slower
Think of writing on a steamy bathroom mirror versus writing in a notebook. The mirror is fast and right there, but once the steam goes, the words are gone. The notebook keeps your words forever. RAM is the steamy mirror. The drive is the notebook. Saving is copying from the mirror into the notebook before the steam fades.
More examples
The library computer
Every restart clears memory. Some school and library computers also reset their drive at every restart, which is why your files disappear unless you save to the cloud or a USB stick.
Your phone after a dead battery
Apps start fresh when a phone dies and restarts, but your photos are all there. Memory reset, storage kept.
Back to the question
So what survives a power cut?
Show the answer
Anything on the drive survives. Anything only in memory, like unsaved work or game progress, is gone. Sarah lost her game but kept her photos. Memory is fast because it doesn’t bother remembering, which is fine as long as the trips to storage are quick. On Grandma Ruth’s laptop, they aren’t.
More on this: What is RAM, and how much do you need?
One last question
Which of these would you trust?
“RAM loses everything when the power goes off.”
“Saving copies your work from memory to storage.”
“A USB stick forgets its files if you unplug it.”
“A sleeping laptop uses no power at all.”
Talk Card
Talk Card · 8.2
RAM is volatile: it forgets when the power goes. Storage isn’t: it keeps everything. Saving copies your work from one to the other.
How Computers Work · pettigrewlab.com/learn

