Data Storage
Computers require both memory and storage to hold data and instructions.
Memory (Primary Memory)
• Internal memory directly accessed by the CPU.
• Stores temporary data and instructions currently being used.
• Also called primary memory.
Storage (Secondary Storage)
• Stores applications, files, and user data permanently.
• Usually has a much larger capacity than primary memory.
• Can be removable (e.g., USB flash drives).
• Used for backing up and transferring data.
• Modern alternatives include:
o Bluetooth data transfer ("data drop")
o Cloud storage
Types of Memory and Storage
1. Primary Memory
2. Secondary Storage
Primary Memory
Primary memory is the part of the computer's memory that can be accessed directly by
the CPU.
Purpose of Primary Memory
• Stores data currently being used.
• Stores parts of programs currently running.
• Allows fast access to instructions and data.
• Supports the operation of the computer.
Types of Primary Memory
• Random Access Memory (RAM)
• Read-Only Memory (ROM)
Random Access Memory (RAM)
RAM is a temporary memory used to store data and programs currently being used by
the computer.
The term "random access" means that any memory location can be accessed directly
without having to access other memory locations first.
Features of RAM
• Can be read from and written to.
• Stores data currently in use.
• Stores parts of applications and the operating system.
• Volatile memory (contents are lost when power is switched off).
• Fast access to data.
Why RAM is Important
The more RAM a computer has, the more data it can hold temporarily.
This reduces the need to constantly access slower secondary storage devices, making
the computer run faster.
Uses of RAM
• Running programs
• Opening files
• Storing temporary data
• Holding operating system files currently in use
Types of RAM
There are two main types of RAM:
1. Dynamic RAM (DRAM)
2. Static RAM (SRAM)
Read-Only Memory (ROM)
ROM is a type of primary memory that stores permanent instructions needed by the
computer.
Unlike RAM, ROM cannot normally be changed by the user.
Features of ROM
• Permanent memory.
• Non-volatile memory.
• Contents remain after power is switched off.
• Can only be read.
• Stores start-up instructions.
Uses of ROM
• Stores BIOS (Basic Input/Output System).
• Stores boot-up instructions.
• Stores permanent system settings.
Advantages of ROM
• Data is permanent.
• Data is not lost when power is removed.
• Reliable for storing start-up instructions.
Disadvantages of ROM
• Cannot easily be changed.
• Limited flexibility.
Secondary and Off-line Storage
Secondary storage refers to storage devices that cannot be accessed directly by
the CPU.
Features of Secondary Storage
• Non-volatile (data is not lost when power is switched off).
• Stores data permanently.
• Has a larger storage capacity than primary memory.
• Slower to access than RAM and ROM.
• Stores applications, operating systems, files, music, videos and documents.
Types of Secondary Storage
1. Magnetic Storage
2. Solid State Storage
3. Optical Storage
Magnetic Storage
Hard Disk Drive (HDD)
A Hard Disk Drive (HDD) is a storage device that stores data magnetically on
rotating disks called platters.
How HDDs Work
• Platters spin at high speed.
• Read-write heads read data from and write data to the platters.
• Data is stored in tracks and sectors.
Features of HDDs
• Large storage capacity.
• Low cost per gigabyte.
• Non-volatile storage.
• Slower than SSDs because they have moving parts.
Advantages of HDDs
• High storage capacity.
• Relatively inexpensive.
• Good for storing large files.
Disadvantages of HDDs
• Slower access speed.
• Moving parts can wear out.
• Heavier than SSDs.
Uses of HDDs
• Desktop computers
• Laptops
• File storage
• Backup storage
Solid State Storage
Solid State Drive (SSD)
An SSD is a storage device that stores data electronically using memory chips.
Unlike HDDs, SSDs have no moving parts.
Features of SSDs
• Faster data access.
• More reliable.
• Lightweight.
• Low power consumption.
• Runs cooler than HDDs.
• Very thin and compact.
Advantages of SSDs
• Faster boot times.
• Faster file access.
• More durable.
• Silent operation.
• Energy efficient.
Disadvantages of SSDs
• More expensive than HDDs.
• Limited lifespan due to repeated writing of data.
Uses of SSDs
• Modern laptops
• Desktop computers
• Servers
• Cloud storage systems
Optical Storage
Optical storage uses laser light to read and write data on a disk.
Types of Optical Storage
• CD
• DVD
• Blu-ray Disc
General Features
• Portable.
• Non-volatile.
• Used for storage and backup.
• Can be used to transfer files between computers.
Compact Disc (CD)
A CD is an optical storage device that uses laser light to read and write data.
Features
• Stores data, music and software.
• Can be write-once (CD-R) or rewritable (CD-RW).
• Lower storage capacity than DVDs and Blu-ray discs.
Uses
• Music albums
• Software distribution
• File backups
Advantages
• Cheap.
• Portable.
• Easy to use.
Disadvantages
• Limited storage capacity.
• Easily scratched.
9. Digital Versatile Disc (DVD)
A DVD is an optical storage device with a larger storage capacity than a CD.
Features
• Stores movies, software and data.
• Available as DVD-R or DVD-RW.
• Holds more data than a CD.
Uses
• Movies
• Software installation
• Data storage
Advantages
• Larger storage capacity than CDs.
• Good for multimedia files.
Disadvantages
• Can be scratched.
• Slower than SSDs and HDDs.
10. Blu-ray Disc
A Blu-ray disc is an optical storage device that stores much more data than CDs
and DVDs.
Features
• Uses blue laser technology.
• Very high storage capacity.
• Suitable for high-definition video.
Uses
• HD movies
• Video game storage
• Large file backups
Advantages
• Highest capacity among optical media.
• Excellent for HD video storage.
Disadvantages
• More expensive than CDs and DVDs.
• Requires a Blu-ray drive.