Disk

1 Computer Memory

Computer memory is the digital workspace where data and instructions are stored for processing. It comes in various types, each serving different functions and roles in the computing ecosystem. Two primary categories of memory are primary memory (also known as main memory) and secondary memory (also known as auxiliary memory).

1.1 Primary Memory

It refers to volatile memory that temporarily holds data and instructions that the CPU needs to access quickly during program execution. Examples RAM, Cache Memory. Its data is list when the power is turned off.

1.1.1 Random Access Memory (RAM):

Description: RAM is volatile memory that temporarily stores data and instructions that the CPU needs to access quickly during program execution.

Characteristics:

  • Volatile: Data is lost when the power is turned off.
  • High-Speed Access: Allows for fast read and write operations.
  • Random Access: Data can be accessed in any order, hence the term "random access."
  • Capacity: Typically measured in gigabytes (GB) and ranges from a few GB to several GBs in modern computers.

Functions:

  • Program Execution: RAM holds the currently running programs and their associated data.
  • Operating System Usage: Stores the operating system kernel and critical system processes.
  • Temporary Storage: Acts as a scratchpad for data being actively manipulated by the CPU.

1.1.2 Cache Memory

Description: Cache memory is high-speed memory located close to the CPU that temporarily stores frequently accessed data and instructions to speed up processing.

Characteristics:

  • Proximity to CPU: Located on the CPU chip or very close to it, allowing for extremely fast access times.
  • Multiple Levels: Divided into multiple levels (L1, L2, L3) based on proximity to the CPU and size.
  • Limited Capacity: Smaller in capacity compared to RAM but faster in access times.

Functions:

  • Data Access Optimization: Reduces the time taken to access frequently used data, improving overall system performance.
  • Instruction Prefetching: Preloads frequently used instructions, anticipating the CPU's needs and reducing idle time.

1.2 Secondary Memory

Secondary memory refers to non-volatile storage devices used for long-term data storage. This type of memory can retains data event without power. Examples: Hard Disk Drives (HDDs), Solid-State Drives (SSDs), Optical Discs, Flash Drives.

1.2.1 Read-Only Memory (ROM):

Description: ROM is non-volatile memory that stores firmware or boot code used to start up the computer.

Characteristics:

  • Non-Volatile: Retains its contents even when the power is turned off.
  • Immutable: Typically cannot be modified or written to once programmed.
  • Slow Access: Slower access times compared to RAM and cache memory.

Functions:

  • System Boot-Up: Contains the initial boot loader and firmware necessary to initialize the hardware and load the operating system.
  • Device Firmware: Stores firmware for peripheral devices such as BIOS (Basic Input/Output System), UEFI (Unified Extensible Firmware Interface), and firmware for embedded systems.

1.2.2 Hard Disk Drives (HDDs) and Solid-State Drives (SSDs)

Description: HDDs and SSDs are non-volatile storage devices used for long-term data storage.

Characteristics:

  • Non-Volatile: Retains data even when the power is turned off.
  • Relatively Slower Access: Slower access times compared to RAM and cache memory.
  • High Capacity: Offer much larger storage capacities compared to RAM and cache memory.

Functions:

  • Long-Term Storage: Used for storing operating systems, applications, user files, and other data.
  • Virtual Memory: Serve as a backing store for virtual memory systems when RAM is insufficient.

1.3 Difference Between Primary Memory & Secondary Memory

CharacteristicPrimary Memory (RAM)Secondary Memory (Storage)
VolatilityVolatileNon-volatile
Access SpeedFasterSlower
CapacityLimitedLarger
PersistenceData is lost when power is turned offData is retained even without power
UsageTemporary storage during program executionLong-term storage and backup
ExamplesRAM, Cache MemoryHDDs, SSDs, Optical Discs, Flash Drives

2 What is a Disk Drive?

A disk drive, often referred to simply as a drive is a hardware device used to read from and write data to storage media, such as disks or solid-state drives (SSDs). It consists of several components that work together to facilitate data storage and retrieval.  Drive refers to a type of storage device that can be used to store digital data, including documents, photos, videos, and other types of files. It can be an internal or external device and can be connected to a computer or other device through various interfaces, such as universal serial bus (USB) or serial advanced technology attachment (SATA).

3 History of Disk Storage

3.1 Magnetic Drum Memory (1930s-1950s)

  • Inception: The earliest form of digital storage, magnetic drum memory, was developed in the 1930s. It used a rotating cylinder coated with magnetic material to store data.
  • Usage: Magnetic drum memory was used in early computers such as the IBM 650 and UNIVAC I. However, it had limitations in terms of capacity and reliability.

3.2. Magnetic Tape Storage (1950s)

  • Development: In the 1950s, magnetic tape emerged as a more practical and reliable form of digital storage. It consisted of a long strip of plastic coated with magnetic material wound onto a reel.
  • Usage: Magnetic tape was widely used for data storage and backup in mainframe computers and early computing systems. It offered higher capacities and faster access times compared to magnetic drum memory.

3.3. Hard Disk Drives (HDDs) (1950s-1960s)

  • Invention: The modern hard disk drive (HDD) was invented by IBM engineers in the late 1950s. It consisted of multiple stacked metal disks (platters) coated with magnetic material.
  • Commercialization: IBM introduced the first commercial HDD, the IBM 305 RAMAC, in 1956. It featured a capacity of 5 MB and used a 24-inch diameter disk stack.
  • Evolution: Over the following decades, HDD technology evolved rapidly, with improvements in capacity, speed, and reliability. The introduction of Winchester technology in the 1970s allowed for sealed, hermetically sealed disk drives, further enhancing reliability. Sealed head-disk assemblies to reduce contamination and head crashes.

3.4. Floppy Disks (1970s-1990s)

  • Introduction: In the 1970s, IBM introduced the first floppy disk drives and disks. Floppy disks were small, flexible magnetic disks enclosed in a plastic shell.
  • Evolution: Floppy disk technology evolved from 8-inch disks in the 1970s to 5.25-inch and later 3.5-inch disks in the 1980s and 1990s. These smaller disks offered higher capacities and became ubiquitous in personal computers.

3.5. Optical Storage (1980s-1990s)

  • Development: Optical storage technology emerged in the 1980s with the introduction of compact discs (CDs). CDs used lasers to read data encoded in pits and lands on the disc surface.
  • Evolution: CDs were followed by digital versatile discs (DVDs) and Blu-ray discs (BDs), offering higher capacities and improved data storage capabilities. Optical discs became popular for media distribution, software installation, and data backup.

3.6. Solid-State Drives (SSDs) (1970s-Present)

  • Inception: The concept of solid-state storage dates back to the 1970s, but early implementations were limited in capacity and performance.
  • Commercialization: SSDs became commercially viable in the 2000s with advancements in NAND flash memory technology and controller design.
  • Advantages: SSDs offer faster read/write speeds, lower latency, and better durability compared to HDDs. They are widely used in modern computing systems, including laptops, desktops, servers, and data centers.

4 Types of Disk Storage

4.1 Hard Disk Drives (HDDs):

  • Construction:
    • Composed of spinning magnetic platters and read/write heads.
    • Data is stored magnetically in sectors and tracks on the platters.
  • Performance:
    • Performance measured in RPM (revolutions per minute), with common speeds being 5400 RPM, 7200 RPM, and up to 15,000 RPM for enterprise drives.
    • Data transfer rates influenced by platter density and read/write head efficiency.
  • Usage:
    • Ideal for large-capacity storage at a lower cost per gigabyte.
    • Commonly used in desktops, laptops, and data centers for bulk storage.

4.2 Solid-State Drives (SSDs):

  • Construction:
    • Use NAND flash memory chips to store data.
    • No moving parts, leading to higher durability and lower power consumption.
  • Performance:
    • Significantly faster read/write speeds compared to HDDs, with modern NVMe (Non-Volatile Memory Express) SSDs reaching several gigabytes per second.
    • Performance influenced by the type of NAND (SLC, MLC, TLC, QLC) and the interface used (SATA, NVMe).
  • Usage:
    • Preferred for operating systems, applications, and performance-critical tasks.
    • Widely used in laptops, desktops, servers, and high-performance computing environments.

4.3 Hybrid Drives (SSHDs):

  • Construction:
    • Combine traditional HDDs with a small amount of NAND flash memory.
    • Flash memory acts as a cache to improve performance for frequently accessed data.
  • Performance:
    • Offer a balance between the high capacity of HDDs and the performance of SSDs.
  • Usage:
    • Suitable for users who need both large storage capacity and improved performance without the higher cost of large SSDs.

4.4 Optical Disks:

  • Technology: Use laser technology to read and write data. Common types include CDs, DVDs, and Blu-ray discs.
  • Performance: Generally slower compared to HDDs and SSDs, and mainly used for media distribution and archival purposes.
  • Use Cases: Media storage, software distribution, and long-term archiving.

4.5 Magnetic Tapes

  • Technology: Use magnetic tape for storing data, traditionally used for backups and archival storage.
  • Performance: Very high capacity and low cost per gigabyte, but slow access times.
  • Use Cases: Long-term archival storage and backups.