Medium ●●

💽 Secondary Storage (Disk)

Why it matters: Easy marks: capacity and access-time arithmetic.

Subtopics

Each subtopic has its own page: idea, why, how, example, play, check. Mark each one understood when it clicks. 0 of 5 done.

Formulas

Capacity
= surfaces × tracks/surface × sectors/track × bytes/sector
Avg rotational latency
= ½ × (60 / RPM) s = 30000 / RPM ms
Transfer time for 1 sector
= (60 / RPM) / (sectors per track) s
Data rate
= (bytes per track) × (RPM / 60) bytes/s
Access time
= seek + rotational latency + transfer (+ controller)
Bits to address a sector
= log₂(surfaces) + log₂(tracks) + log₂(sectors)

What GATE asks from this

Question types seen repeatedly in past papers. More stars means more frequent.

★★★
Disk capacity / bits to address a block
Given geometry compute capacity or CHS address width.
★★★
Average access time for a request
Seek + ½ rotation + transfer for k sectors; sometimes with cylinder-change seek.
★★★
Transfer rate / time for a file
File size ÷ (track bytes × rotations per sec).

Ratings are approximate, based on recurring patterns in past GATE CSE papers.

Previous year questions

4 real questions from the official GATE CSE papers (2013 to 2024), newest first, each with the official answer key and a worked solution. Questions are the property of the GATE organising institutes; this copy is for your personal study.

4 questions · 0 correct of 0 attempted · marks 0 / 8

Year:
GATE 2024 CS2 · Q53NAT2 marks
Consider a disk with rotation speed 6000 RPM, average seek time 5 ms, 500 sectors/track, 512-byte sectors. A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is ______.
GATE 2024 CS1 · Q54NAT2 marks
Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is ______.
GATE 2015 Set 1 · Q48NAT2 marks
Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is ______.
GATE 2013 Code A · Q29MCQ2 marks
Consider a hard disk with 16 recording surfaces (0–15) having 16384 cylinders (0–16383) and each cylinder contains 64 sectors (0–63). Data storage capacity in each sector is 512 bytes. Data are organized cylinder-wise and the addressing format is <cylinder no., surface no., sector no.>. A file of size 42797 KB is stored in the disk and the starting disk location of the file is <1200, 9, 40>. What is the cylinder number of the last sector of the file, if it is stored in a contiguous manner?

Extra practice (GATE-style)

More questions in the same formats, each with a full solution. These are original questions written to follow the patterns above, not past-paper questions.

4 questions · 0 correct of 0 attempted · marks 0 / 6

Q1NAT2 marks
7200 RPM disk, average seek 6 ms, 400 sectors per track, 512 B per sector. The average time to read one sector (seek + rotational latency + transfer, ms, two decimals) is ____.
Q2NAT1 mark
A disk has 16 heads, 4096 cylinders and 128 sectors per track. The number of bits needed to address a sector (head, cylinder, sector) is ____.
Q3NAT2 marks
A 6000 RPM disk has 300 sectors of 512 bytes per track. The sustained transfer rate in MB/s (1 MB = 10⁶ B) is ____.
Q4MCQ1 mark
The average rotational latency of a 10,000 RPM disk is

Common traps

Use average (half-rotation) latency unless 'worst case' is asked.
Seek is usually given in ms, rotation in RPM, convert.