What are the Basics of Disk Structure?
Learn disk structure basics — tracks, sectors, cylinders, and logical block addressing — with OS interview questions answered.
Expected Interview Answer
A traditional hard disk is organized into platters divided into concentric tracks, tracks divided into sectors, and matching tracks across all platter surfaces forming a cylinder, with the OS addressing storage today mostly through a flat logical block address (LBA) rather than raw cylinder-head-sector coordinates.
Each platter surface is coated with magnetic material and divided into concentric circles called tracks, and each track is further divided into fixed-size sectors — historically 512 bytes, now commonly 4096 bytes with Advanced Format drives — which are the smallest unit the disk can read or write. A cylinder is the set of tracks at the same radial position across every platter surface, meaningful because the read/write heads move together on a single actuator arm, so all tracks in a cylinder are reachable without an additional seek. Older interfaces exposed storage as CHS (cylinder-head-sector) addresses directly to software, but modern disks abstract this away behind logical block addressing, where the OS just requests block number N and the drive’s firmware translates that internally to physical geometry, which also lets the drive silently remap bad sectors. Understanding this layout still matters for reasoning about seek time (moving between tracks/cylinders), rotational latency (waiting for the right sector to spin under the head), and why sequential access on a spinning disk is dramatically faster than random access.
- Explains why sequential disk access beats random access on HDDs
- Clarifies the seek time vs rotational latency components of disk access
- Shows why LBA abstraction lets drives remap bad sectors transparently
- Provides vocabulary (track, sector, cylinder) used throughout storage systems
AI Mentor Explanation
A disk track is like one of the concentric boundary ropes marked on a ground for different formats, and a sector is like one marked segment along that rope where a specific fielding position stands. A cylinder is like the same segment position across every ground in a multi-ground venue complex, reachable together because groundstaff move markers in sync across all grounds at once. Just as fielders positioned along one rope can be reorganized quickly without moving to a different rope, reading many sectors on one track is faster than jumping between distant tracks.
Step-by-Step Explanation
Step 1
Platter and track
Each magnetic platter surface is divided into concentric circles called tracks.
Step 2
Sector
Each track is subdivided into fixed-size sectors, the smallest addressable read/write unit on the disk.
Step 3
Cylinder
Tracks at the same radial position across all platter surfaces form a cylinder, reachable without moving the actuator arm further.
Step 4
Logical block addressing
Modern OSes address storage as a flat sequence of logical blocks; the drive firmware maps LBA to physical CHS internally.
What Interviewer Expects
- Correct definitions of track, sector, and cylinder
- Understanding that a cylinder spans all platter surfaces at one radial position
- Awareness that modern OSes use LBA, not raw CHS addressing
- Connecting disk structure to why sequential access outperforms random access
Common Mistakes
- Confusing a track with a sector
- Thinking a cylinder is a single track rather than the set across all surfaces
- Believing modern OSes still address disks by cylinder-head-sector directly
- Not connecting disk geometry to seek time and rotational latency
Best Answer (HR Friendly)
“A traditional hard disk is organized like concentric rings called tracks, each split into smaller chunks called sectors, and the same ring position across all the disk’s stacked platters together forms a cylinder. Modern operating systems mostly ignore this physical layout and just ask for a numbered block, letting the drive’s own firmware handle the translation, but the underlying geometry still explains why reading data in order is much faster than jumping around randomly.”
Code Example
struct chs { unsigned cylinder, head, sector; };
struct chs lba_to_chs(unsigned lba, unsigned sectors_per_track,
unsigned heads_per_cylinder) {
struct chs result;
result.cylinder = lba / (sectors_per_track * heads_per_cylinder);
unsigned temp = lba % (sectors_per_track * heads_per_cylinder);
result.head = temp / sectors_per_track;
result.sector = (temp % sectors_per_track) + 1; /* sectors are 1-indexed */
return result;
}Follow-up Questions
- What is the difference between seek time and rotational latency?
- Why does an SSD not have the same track/sector/cylinder concept?
- How does logical block addressing let a drive remap bad sectors?
- Why is sequential disk I/O so much faster than random I/O on an HDD?
MCQ Practice
1. What is a cylinder in disk structure terms?
Because all read/write heads move together on one actuator arm, tracks at the same radius on every surface form a cylinder, reachable without an extra seek.
2. What is the smallest addressable unit for reading/writing on a traditional disk?
A sector, historically 512 bytes and now commonly 4096 bytes on Advanced Format drives, is the smallest unit the disk reads or writes.
3. How do modern operating systems typically address disk storage?
Modern OSes request a logical block number, and the drive firmware maps it internally to physical geometry, allowing bad-sector remapping.
Flash Cards
What is a track? — A concentric circle on a disk platter surface where data is stored.
What is a sector? — The smallest fixed-size addressable read/write unit within a track.
What is a cylinder? — The set of tracks at the same radial position across all platter surfaces, reachable together.
What replaced raw CHS addressing in modern OSes? — Logical Block Addressing (LBA), a flat block number the drive translates internally.