What is LBA (Logical Block Addressing)? (Explained)

3
66
What is LBA (Logical Block Addressing)

What is LBA (Logical Block Addressing)?

LBA, short for Logical Block Addressing, is the process of accessing hard drives larger than 528 MB by the computer systems by using a single sector number instead of the traditional and old school Cylinder, Head and Sector (CHS) method.

Technically, LBA is the method of stipulating the positions of the data blocks on the hard drives. In simple words, this is another useful way of addressing the hard disks. This addressing style uses integer indexes for marking the sectors on a disk.

KEY TAKEAWAYS

  • Logical Block Addressing is a specific scheme that allows addressing larger hard disks than 528 MB by the computer systems, and was developed for the first time when the SCSI drives were around.
  • LBA is a popular and widely followed technique of addressing hard drives because it is more convenient and is much easier to use due to its linear addressing mode as compared to the earlier Cylinder-Head-Sector method.
  • This effective method of hard disk addressing comes with useful features that make things even simpler with the use of its characteristic 48-bit addressing mode.
  • LBA, which is also called the BIOS INT 13h extension drive geometry translation, can refer to both the address or the block of data on the sector of a hard disk.
  • In the LBA process, different sectors on the disk are marked with a unique number such as LBA 0, LBA 1, and so on instead of the cylinders, heads, and sectors. This makes it a much simpler process than the CHS method.

Understanding LBA (Logical Block Addressing)

What is LBA (Logical Block Addressing)

Logical Block Addressing technique helps in addressing hard drives with larger storage capacities and marking the locations of the data blocks on the disks in a much more organized manner. This allows better, if not faster, access.

Though generally used for the secondary storage devices such as hard disks, it is the effectiveness and utility of the Logical Block addressing technique that have replaced the traditional CHS scheme, which is known for its significant limitations.

The technique helps the hosts a lot because it provides a simple linear address space for them to locate it easily, and all they have to do is provide it. They do not need to know anything about the physical positions of the sectors.

The LBA scheme was designed for the first time for the Small Computer System Interface (SCSI) drives.

In the early 1990s, Logical Block Addressing technique was designed to support the Integrated Drive Electronics (IDE) and the Advanced Technology Attachment (ATA) drives once these came with 500 MB of storage space.

Read Also:  What is Run Length Limited (RLL)? (Explained)

It also resulted in a much-improved BIOS in which the computer translated the CHS addressing mode into LBA.

Over time, as technology progressed and the designs of the storage systems changed, the support offered by the ATA specifications grew to 8.4 GB, 128 GB and even more.

In the IDE standard, 22-bit Logical Block Addressing was included as an option, initially, but it was extended up to 28 bits when the ATA-1 was released in 1994.

Then again, it was further extended up to 48 bits when, in 2003, the ATA-6 was released.

However, the size of the data entered on the disk and in the memory were stored in an address that was normally either 32 bits or 64 bits.

The Logical Block Addressing scheme is implemented in almost every hard disk drive that has come up since 1996.

This particular form of addressing the hard disks is now more dominant due to the simple reason that it is much easier to work with as compared to the conventional CHS technique.

Therefore, the term LBA can indicate two things such as:

  • The address
  • The block

The scheme itself is also referred to as the Basic Input Output System (BIOS) INT 13h extensions drive geometry translation.

You can convert CHS into LBA by using a simple formula, which is explained in a later section of this article.

However, at this point, it is important to note a few specific facts such as:

  • If you want to use Logical Block Addressing technique, then you must make sure that this process is supported both by the operating system and the BIOS in the first place.
  • LBA should also be supported by the particular hard disk drive that you want to use it in.

However, fortunately, as said earlier, most of the newer hard disk drives do support LBA mode.

How to Find a Logical Block Address?

It is very easy to find a logical block address on a hard drive by using the unique number or integer indices assigned by the process to the sectors on the disk.

The lower the value of the LBA, the closer the physical sector of the first or the outermost cylinder of the hard drive will be.

You can also find it by using a formula that involves the heads, cylinders, and sectors of the disk. This is actually the formula used for mapping the CHS tuples to the LBA address, which is as follows:

LBA = (C × HPC + H) × SPT + (S − 1).

Here, the different alphabets signify different things such as:

  • LBA denotes the logical block address.
  • C, H, and S signify the cylinder number, the head number, and the sector number, respectively.
  • HPC represents the maximum number of heads available in each cylinder.
  • SPT defines the maximum number of sectors on each track of the hard drive.
Read Also:  AHCI (Advanced Host Controller Interface) Explained

How Does Logical Block Addressing Work?

Logical Block Addressing typically works by mapping a particular CHS address by using a 28-bit value.

The LBA scheme helps a lot in marking the data blocks stored on the secondary storage systems such as the Hard Disk Drives (HDDs).

This is an easy linear addressing scheme where the data blocks are indicated by a specific integer index.

The most significant aspect of the working process of the Logical Block Addressing scheme is that it allocates a unique number to each sector for easier access to the hard drive than using the cylinder, head, and sectors.

The process of numbering happens as follows:

  • When the Logical Block Addressing is done, it is typically done by allocating an integer index which is mapped to the CHS tuples. The numbering starts with the first cylinder, head, and sector of the track.
  • When the tracks in the first cylinder are exhausted, it continues numbering to the subsequent head, but staying within the first cylinder.
  • When all the heads within the first cylinder are done numbering, the process continues numbering the tracks of the following cylinder.

This way, the process goes on.

Utilizing this method, LBA addresses the entire hard disk as a large, single device. In this scheme, the existing blocks are simply counted starting with 0. According to this scheme, the first data block is identified as LBA 0, the next one as LBA 1, and so on.

This, in other words, means that LBA accesses the drives by addressing the sector addresses in a linear fashion.

This makes its working process as well as the entire addressing mode much simpler in comparison to the CHS technique.

CHS Vs LBA

  • Logical Block Addressing mode is a relatively new technology and is supported by all newer hard drives. On the other hand, the CHS mode of addressing hard drives is old school and is typically not recommended today.
  • The LBA mode supports addressing hard drives with large storage capacities in a simple, linear addressing mode. On the other hand, the CHS method seems to be ineffective for addressing hard drives larger than 500 MB.
  • The LBA scheme replaces the earlier CHS scheme because of its limitations and does not expose the physical details of the hard drive to the operating system, as opposed to the CHS mode.
  • The Logical Block Addressing process will not allow addressing more sectors in comparison to the conventional CHS addressing technique.
  • The LBA mode is much simpler in comparison to the CHS mode where each sector is assigned a unique number as opposed to the complex process of the traditional cylinders, heads, and sectors in the CHS mode.
Read Also:  How to Partition a Hard Drive? (Step by Step Guide)

Questions & Answers:

What is LBA Used for?

Typically, the Logical Block Addressing method is used to address the blocks of data stored on a hard disk in a better way.

The location of the data blocks on the computer storage systems is specified by unique integer indexes. This allows easier and faster access to the specific data block as and when required.

What is the LBA Sector?

The LBA sector on a hard disk refers to the smallest addressable unit. It typically has a fixed size of 512 bytes. LBA uses this logical block address to access the data and helps the drive to read from there or write fresh data to that particular sector.

What is LBA 0?

LBA 0 actually refers to the first sector of the hard disk that is partitioned. Ideally, LBA 0 is the same as CHS 0/0/1 and contains the Primary or Master Partition Table (MPT) as well as the Master Boot Record (MBR).

Which LBA is the First Usable Sector?

If you consider a 64-bit Windows operating system, there are 32 sectors or 16,384 bytes set aside for the Globally Unique Identifier or GUID Partition Table (GPT). This means that the first usable sector on the hard disk will be the LBA 34.

What is LBA Error?

An LBA error refers to a bad block. This is also called the bad logical block address, which is typically a result of logical data errors caused due to writing data erroneously on the disk of the hard drive.

Remember, irrespective of the errors in them, such writings on the disk may even be reported as successful.

Conclusion

Logical Block Addressing is a commonly used technique of hard drive addressing that uses a simple linear addressing method to mark the locations of the data blocks on the disk.

It is easy to identify due to the unique integer index. Most of the hard drives today support this simpler addressing mode than the CHS mode.

About Puja Chatterjee

AvatarPuja Chatterjee, a distinguished technical writer, boasts an extensive and nuanced understanding of computer technology. She is an esteemed graduate of the Bengal Institute of Management Studies (BIMS), where she honed her skills and knowledge in the tech domain. Over the span of more than 12 years, Puja has developed a deep expertise that encompasses not only technology writing, where she articulates complex technical concepts with clarity and precision, but also in the realm of client relationship management. Her experience in this area is characterized by her ability to effectively communicate and engage with clients, ensuring their needs are met with the highest level of professionalism and understanding of their technical requirements. Puja's career is marked by a commitment to excellence in both written communication within the tech industry and fostering strong, productive relationships with clients.

Previous articleWhat is Kilobyte? Uses, Examples & More
Next articleWhat is Logical Drive? (Explained)
Puja Chatterjee
Puja Chatterjee, a distinguished technical writer, boasts an extensive and nuanced understanding of computer technology. She is an esteemed graduate of the Bengal Institute of Management Studies (BIMS), where she honed her skills and knowledge in the tech domain. Over the span of more than 12 years, Puja has developed a deep expertise that encompasses not only technology writing, where she articulates complex technical concepts with clarity and precision, but also in the realm of client relationship management. Her experience in this area is characterized by her ability to effectively communicate and engage with clients, ensuring their needs are met with the highest level of professionalism and understanding of their technical requirements. Puja's career is marked by a commitment to excellence in both written communication within the tech industry and fostering strong, productive relationships with clients.
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments