Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Logical block addressing
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== {{anchor|LBA22|LBA28}}Enhanced BIOS == {{See also|INT 13h}} The earlier IDE standard from Western Digital introduced 22-bit LBA; in 1994, the [[AT Attachment|ATA-1 standard]] allowed for 28 bit addresses in both LBA and CHS modes. The CHS scheme used 16 bits for cylinder, 4 bits for head and 8 bits for sector, counting sectors from 1 to 255. This means the reported number of heads never exceeds 16 (0β15), the number of sectors can be 255 (1β255; though 63 is often the largest used) and the number of cylinders can be as large as 65,536 (0β65535), limiting disk size to 128 GiB (β137.4 GB), assuming 512 byte sectors. These values can be accessed by issuing the ATA command "Identify Device" (<code>EC</code>h) to the drive.<ref name="Working Draft of ATA/ATAPI-5">{{cite web |url=http://www.t13.org/documents/UploadedDocuments/project/d1321r3-ATA-ATAPI-5.pdf |title=Information Technology - AT Attachment with Packet Interface - 5 (ATA/ATAPI-5) |website=[[International Committee for Information Technology Standards|www.t13.org]] |date=29 February 2000 |access-date=15 December 2020 |archive-url=https://web.archive.org/web/20200806062242/https://www.t13.org/documents/UploadedDocuments/project/d1321r3-ATA-ATAPI-5.pdf |archive-date=6 August 2020}}</ref>{{rp|87|q=Section 8.12 - IDENTIFY DEVICE}} However, the [[IBM BIOS]] implementation defined in the [[INT 13h]] disk access routines used quite a different 24-bit scheme for CHS addressing, with 10 bits for cylinder, 8 bits for head, and 6 bits for sector, or 1024 cylinders, 256 heads, and 63 sectors.<ref>{{cite web|url=http://support.microsoft.com/kb/q224526/en-us |title=KB224526: Windows NT 4.0 supports maximum of 7.8-GB system partition |publisher=Support.microsoft.com |date=2007-02-23 |access-date=2013-07-30}}</ref> This INT 13h implementation had pre-dated the ATA standard, as it was introduced when the [[IBM PC]] had only [[floppy disk]] storage, and when hard disk drives were introduced on the [[IBM PC/XT]], INT 13h interface could not be practically redesigned due to [[backward compatibility]] issues. Overlapping ATA CHS mapping with BIOS CHS mapping produced the lowest common denominator of 10:4:6 bits, or 1024 cylinders, 16 heads, and 63 sectors, which gave the practical limit of 1024Γ16Γ63 sectors and 528{{nbsp}}MB (504 [[MiB]]), assuming 512 byte sectors. In order for the BIOS to overcome this limit and successfully work with larger hard drives, a CHS translation scheme had to be implemented{{when|date=November 2023}} in the BIOS disk I/O routines which would convert between 24-bit CHS used by INT 13h and 28-bit CHS numbering used by ATA. The translation scheme was called ''large'' or ''bit shift translation''. This method would remap 16:4:8 bit ATA cylinders and heads to 10:8:6 bit scheme used by INT 13h, generating much more "virtual" drive heads than the physical disk reported. This increased the practical limit to 1024Γ256Γ63 sectors, or 8.4{{nbsp}}GB (7.8 [[Gibibyte|GiB]]). To further overcome this limit, [[INT 13h Extensions]] were introduced{{when|date=November 2023}} with the ''[[BIOS Enhanced Disk Drive Services]]'', which removed practical limits on disk size for operating systems which are aware of this new interface, such as the ''DOS 7.0'' component in [[Windows 95]]. This ''enhanced BIOS'' subsystem supports LBA addressing with ''LBA'' or ''[[#LBA assist|LBA-assisted]]'' method, which uses native 28-bit LBA for addressing ATA disks and performs CHS conversion as needed. The ''normal'' or ''none'' method reverts to the earlier 10:4:6 bit CHS mode which does not support addressing more than 528{{nbsp}}MB. {{Anchor|EZ-DRIVE|EZ-BIOS}} [[File:Installation of the Western Digital's EZ Drive, on a 3.5-inch floppy disk.jpg|thumb|Installation of Western Digital's OEM-version of ''EZ Drive'', on a 3.5-inch floppy disk.]] Until the release of ATA-2 standard in 1996, there were a handful of large hard drives which did not support LBA addressing, so only ''large'' or ''normal'' methods could be used. However, using the ''large'' method also introduced portability problems, as different BIOSes often used different and incompatible translation methods, and hard drives partitioned on a computer with a BIOS from a particular vendor often could not be read on a computer with a different make of BIOS. The solution was to use conversion software such as [[Disk Manager|OnTrack Disk Manager]], Micro House<!-- International --> EZ-Drive/EZ-BIOS, etc., which installed to the disk's [[Master Boot Record|OS loader]] and replaced INT 13h routines at boot time with custom code. This software could also enable LBA and INT 13h Extensions support for older computers with non LBA-compliant BIOSes. === {{anchor|LBA assist}}LBA-assisted translation === When the BIOS is configured to use a disk in LBA-assisted translation mode, the BIOS accesses the hardware using LBA mode, but also presents a translated CHS geometry via the INT 13h interface. The number of cylinders, heads, and sectors in the translated geometry depends on the total size of the disk, as shown in the following table.<ref>{{cite web|last=Steunebrink |first=Jan |title=The BIOS IDE Harddisk Limitations |url=http://web.inter.nl.net/hcc/J.Steunebrink/bioslim.htm#LBA |access-date=6 October 2013 |archive-url=https://archive.today/20131006092656/http://web.inter.nl.net/hcc/J.Steunebrink/bioslim.htm |archive-date=6 October 2013 |url-status=dead }}</ref> {| class="wikitable" |- ! Disk size !! Sectors/track !! Heads !! Cylinders |- | {{nowrap|1 < X β€ 504 MiB}} || 63 || 16 || {{nowrap|X Γ· (63 Γ 16 Γ 512)}} |- | {{nowrap|504 MiB < X β€ 1008 MiB}} || 63 || 32 || {{nowrap|X Γ· (63 Γ 32 Γ 512)}} |- | {{nowrap|1008 MiB < X β€ 2016 MiB}} || 63 || 64 || {{nowrap|X Γ· (63 Γ 64 Γ 512)}} |- | {{nowrap|2016 MiB < X β€ 4032 MiB}} || 63 || 128 || {{nowrap|X Γ· (63 Γ 128 Γ 512)}} |- | {{nowrap|4032 MiB < X β€ 8032.5 MiB}} || 63 || 255 || {{nowrap|X Γ· (63 Γ 255 Γ 512)}} |} ==={{anchor|LBA64}}LBA48=== The current 48-bit LBA scheme was introduced in 2002 with the [[ATA-6]] standard,<ref>{{cite web |url=http://www.t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf|title=Information Technology - AT Attachment with Packet Interface - 6 (ATA/ATAPI-6) |website=[[International Committee for Information Technology Standards|www.t13.org]] |date=26 February 2002 |access-date=15 December 2020 |archive-url=https://web.archive.org/web/20200806032447/https://t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf |archive-date=6 August 2020}}</ref> raising the addressing limit to 2{{sup|48}}{{nbsp}}Γ 512 bytes, which is exactly 128{{nbsp}}[[Pebibyte|PiB]] or approximately 144{{nbsp}}[[Petabyte|PB]]. Current PC-compatible computers support INT 13h Extensions, which use 64-bit structures for LBA addressing and should encompass any future extension of LBA addressing, though modern operating systems implement direct disk access and do not use the [[BIOS]] subsystems, except at [[boot loader|boot load]] time. Disks partitioned with [[Master boot record|MBR]] use 32-bit logical block addressing LBA to handle the total number of physical or logical sectors, that is, they can handle a total maximum of 4,294,967,296 sectors (2^32). This means that traditionally a maximum data limit of 2 [[tebibyte]]s could be stored per hard disk, since these have a physical and logical sector size of 512 bytes. This limit can be exceeded up to 16 TiB with a physical and logical sector of 4096 bytes.<ref>{{cite web|url=https://goughlui.com/2013/10/02/experiment-usb-to-sata-bridge-chips-and-2tb-drives|title=USB to SATA bridge chips and +2Tb drives|accessdate=January 26, 2025|language=English}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)