Disk

In computer systems, the disk remains the cornerstone of long-term data storage. Operating systems, applications, and user files all reside on one or more disk devices. A solid grasp of disk architecture and operational principles is essential for system administration, storage planning, and performance tuning. This article explores the fundamental categories of disks, their internal structures, interface standards, partitioning schemes, and practical management techniques in Linux environments.

HDD and SSD: Mechanical versus Solid-State

Disks are broadly classified into two families based on their underlying technology. Understanding their differences helps in making informed choices for specific workloads.

  • Hard Disk Drives (HDD): These devices rely on spinning platters coated with magnetic material and moving read/write heads to store and retrieve data. HDDs offer high capacity at a low cost per gigabyte, making them suitable for bulk storage. However, their mechanical nature introduces latency due to seek time and rotational delay, and they are sensitive to physical shock.

  • Solid-State Drives (SSD): SSDs store data in NAND flash memory chips with no moving parts. This design delivers significantly faster read/write speeds, lower power consumption, and greater durability against vibration. The trade-off is a finite write endurance, often quantified as Program/Erase (P/E) cycle limits, and a higher cost per gigabyte compared to HDDs.

HDD Physical Architecture

Although logical addressing abstracts the details, knowing how an HDD organizes data sheds light on performance characteristics.

  • Platters: One or more circular disks stacked inside the drive enclosure. Each platter surface is coated with a thin layer of magnetic material.
  • Tracks and Sectors: Data is recorded in concentric circles called tracks. Each track is subdivided into sectors, the smallest addressable unit traditionally 512 bytes, though modern advanced-format drives use 4 KB sectors.
  • Cylinders: A cylinder comprises the set of tracks at the same radial position across all platters. When the operating system addresses a logical block, the drive translates it to a specific cylinder