askvity

What is CHS and LBA?

Published in Hard Drive Technology 3 mins read

CHS (Cylinder, Head, Sector) and LBA (Logical Block Addressing) are two different ways of addressing data on a hard drive.

CHS (Cylinder, Head, Sector)

CHS is an older method of addressing data. It identifies the physical location of data on the disk using three parameters:

  • Cylinder: Represents a concentric circle on the platters of the hard drive.
  • Head: Specifies which side of the platter is being accessed (each platter has two sides, and each side has a read/write head).
  • Sector: Identifies a specific arc-shaped segment within a track (a track is a circular path on a platter).

Essentially, CHS provides a physical address for data. It directly relates to the physical geometry of the hard drive. Early BIOS versions relied on CHS for addressing. However, this method became limiting as hard drive capacities grew beyond what the original BIOS addressing scheme could handle.

LBA (Logical Block Addressing)

LBA is a more modern method of addressing data on a hard drive. Instead of specifying the physical cylinder, head, and sector, LBA assigns each block of data a unique sequential number, starting from zero. This is the logical address.

  • LBA treats the hard drive as a single, linear array of blocks. The operating system interacts with the drive using these logical block addresses. The hard drive's controller then translates these LBA addresses into the physical CHS addresses.

LBA provides an abstraction layer, hiding the physical complexity of the hard drive from the operating system. This allowed for much larger hard drives to be supported.

Key Differences

Feature CHS LBA
Address Type Physical Logical
Addressing Cylinder, Head, Sector Single sequential number (Logical Block Address)
Hard Drive Size Limited to smaller hard drives Supports much larger hard drives
Complexity More complex for OS to manage Simpler for OS to manage
Abstraction No abstraction Provides abstraction layer

Example

Imagine a library.

  • CHS: Would be like saying "Go to shelf 3, section B, book number 5." It gives you the exact physical location.
  • LBA: Would be like saying "Get book number 235." The librarian (hard drive controller) knows where book 235 is located on the shelves.

Conclusion

In summary, CHS is an older, physical addressing method, while LBA is a more modern, logical addressing method that allows for larger hard drive capacities and simplifies the operating system's interaction with the storage device. LBA effectively replaced CHS as the dominant addressing scheme.

Related Articles