Introduction to Computer Storage
• Computer storage is essential for holding data
and instructions.
• Two main types: Primary and Secondary
storage
• Each type serves different purposes in a computer
system
What is Primary Storage?
• Primary storage is a computer component
that stores data, programs, and instructions
currently in use.
• Primary storage is directly accessed by the CPU
(Central Processing Unit)
• Also known as internal memory
• Two main types: RAM and ROM
Random Access Memory (RAM)
• It temporary store data and programs currently in
use.
• Volatile memory: loses contents when power is
turned off.
• Allows fast read and write operations
• Examples: Loading a web page, editing a
document
Read-Only Memory (ROM)
• ROM, or Read-Only Memory, is a type of computer
memory that can only be read from, not written to. It is a
type of storage that contains data that can't be changed
or modified.
• Non-volatile memory: retains data even when power is off
• Contains firmware: software embedded in hardware
• Example: BIOS (Basic Input/Output System) instructions
Why Computers Need Both RAM and ROM
• RAM:
• Fast, temporary storage for active tasks
• Allows multitasking and quick data access
• ROM:
• Stores critical startup instructions
• Ensures basic functions even without an operating
system
What is Secondary Storage?
• It is storage system, which is not directly accessed
by the CPU.
• Secondary storage is commonly used to store
backup data that comes from primary storage.
• Provides more permanent data storage
• Larger capacity than primary storage
• Slower access compared to primary storage
Cross section of HDD
Characteristics of Secondary Storage
• Non-volatile: retains data when power is off
• Higher capacity: stores large amounts of data
• Lower cost per unit of storage
• Slower access times compared to primary storage
Comparing Primary and Secondary Storage
• Access speed:
• Primary: Faster
• Secondary: Slower
• Capacity:
• Primary: Lower
• Secondary: Higher
• Cost per unit:
• Primary: More expensive
• Secondary: Less expensive
• Volatility:
• Primary: Mostly volatile (except ROM)
• Secondary: Non-volatile
The Role of Storage in a Computer
• Primary storage: System
• Holds active data and programs for immediate
use
• Facilitates quick processing by the CPU
• Secondary storage:
• Stores inactive data and programs long-term
• Provides backup and data preservation