Attic › Computer science › Data storage
Data storage records information by changing a physical material into one of two states
Computer data storage is the recording of information in a physical material so a computer can read it later. Every storage system works by changing a physical property of that material, and every design must balance speed against cost.
To keep data, you need a storage medium, which is the physical material that holds the record. In the past, people used paper or phonograph records to store continuous signals. Modern computers use digital storage, which breaks all data—whether it is text, sound, or a picture—into small, separate units.
The smallest unit of digital data is a bit, short for binary digit. A bit has only two possible values: 0 or 1. Computers use only two states because it is much easier to build hardware that detects the difference between two extreme conditions (like "on" and "off", or "high voltage" and "low voltage") than it is to measure ten different levels accurately. If an electrical signal degrades slightly, the computer can still tell 0 from 1 without error. Eight bits grouped together make one byte, which gives 2⁸ = 256 possible combinations—enough to represent any letter, number, or punctuation mark on a keyboard.
When a computer writes data, it uses energy to put a tiny area of the storage medium into one of two physical states. When it reads the data, a sensor measures that area to see which state it is in.
Engineers cannot make one perfect storage device. Materials that change state in billionths of a second are expensive to make and take up more physical space per bit. Materials that pack billions of bits into a tiny, cheap space take much longer to change and measure. Because of this physical limit, fast storage is always expensive and small, while large, cheap storage is always slow.
Fact-checked against Data storage on Wikipedia
Part of the Computer science syllabus: Stored-Program Computers and Architecture
See it on the timeline of Stored-Program Computers and Architecture