6.1 Magnetic Disk

COS2621 - Computer Organisation · 6. External Memory

Magnetic Disk

Overview of Magnetic Disks

Magnetic disks are a common form of external memory used in computers. They store data magnetically on rotating platters. Each platter is coated with a magnetic material that allows data to be written and read by a read/write head.

Structure of Magnetic Disks

A magnetic disk consists of several components:

  • Platters: The circular disks where data is stored.
  • Spindle: The axis that allows platters to spin.
  • Read/Write Head: The device that reads data from and writes data to the disk.
  • Actuator Arm: Moves the read/write head across the platters.

Data is organized into concentric circles called tracks, and each track is divided into smaller sections called sectors.

The structure of a magnetic disk
The structure of a magnetic disk
Diagram: Fastfission, Public domain, via Wikimedia Commons

Data Access and Performance

When data is accessed, the disk spins, positioning the read/write head over the correct track. The time taken to position the head is known as seek time, while the time taken for the desired sector to rotate under the head is called rotational latency.

For example, if a disk has an average seek time of 10 ms and a rotational latency of 5 ms, the total access time for reading data would be approximately 15 ms.

Remember: The performance of magnetic disks can be affected by fragmentation, which occurs when files are stored in non-contiguous sectors.

Types of Magnetic Disks

There are two main types of magnetic disks:

  • Hard Disk Drives (HDDs): These are traditional spinning disks that provide large storage capacity at a lower cost.
  • Solid State Drives (SSDs): Although not magnetic, they are often compared with HDDs due to their use in similar applications. SSDs use flash memory and have no moving parts, making them faster and more durable.

Data Transfer Rates

The data transfer rate is the speed at which data can be read from or written to the disk. It is typically measured in megabytes per second (MB/s). For example, a modern HDD may have a transfer rate of around 100 MB/s, while an SSD can exceed 500 MB/s.

Magnetic Disk Technologies

Recent advancements in magnetic disk technology have improved their reliability and performance. One such technology is the use of glass substrates instead of aluminum. Glass substrates provide better durability and allow for higher data density.

Watch out: Do not confuse the terms "data transfer rate" and "access time"; they measure different aspects of disk performance.

Conclusion

Magnetic disks remain a key component of computer storage systems. Understanding their structure, performance characteristics, and technologies is essential for evaluating storage solutions.

Check your understanding

  • What is the role of the read/write head in a magnetic disk?
  • Define seek time and rotational latency.
  • What are the advantages of using glass substrates in magnetic disks?
  • Compare the data transfer rates of HDDs and SSDs.

Test yourself

4 quick questions on this lesson. Pick an answer to see if you're right.

  1. 1. What is one advantage of using glass substrates over aluminum in magnetic disks?

  2. 2. What is the primary function of the read/write head in a magnetic disk?

  3. 3. What is the typical data transfer rate of a modern hard disk drive (HDD)?

  4. 4. Which of the following terms refers to the time taken for the read/write head to move to the correct track?