Archives
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- August 2010
- July 2010
The Fixed Disk Parameter Table
The Fixed Disk Parameter Table, or FDPT, is a structure primarily used by the BIOS in IBM compatible computers, but is also of critical importance to some (especially older) operating systems which do not use the BIOS.
The FDPT was introduced in the IBM PC/XT as a necessity in implementing hard drive (aka fixed disk) support; however, I’ll skip the PC/XT specific details. The IBM PC/AT redefined the FDPT format, but the purpose remained the same: Define the physical characteristics of a hard disk so that the same BIOS ROM could be used with more than a single drive model. Most importantly, the FDPT contained the disk geometry—the number of cylinders, heads, and sectors per track.
Why was all this information necessary? The old, pre-IDE hard disk subsystems in the IBM PC/AT did not support any discovery mechanism. Rather than inquiring the characteristics from the hard drive directly, as is the standard with modern disks, the BIOS had to know its physical characteristics. All disk commands used cylinder/head/sector (CHS) addressing, so the BIOS had to know the disk geometry. Further complicating matters was the fact that the hard drive and the disk controller were physically separate devices.
The disk controller itself needed to know the disk geometry in order to support multi-sector operations. When a multi-sector command was started, the user (that is, the BIOS or an operating system) programmed the initial CHS address into the controller, but the controller needed to know when to switch to the next head or seek to the next cylinder. The Set Parameters command was used to program the drive geometry into the controller.
Even SCSI disks, which only address logical sectors by number instead of a cylinder/head/sector address, had to present some kind of more or less faked geometry to the BIOS and the OS. However, it should be noted that the FDPT does not apply to SCSI disks, only to ATA disks (including IDE and EIDE).
The original IBM PC/AT BIOS supported only a few drive types. The disk parameter tables for all supported models were hardcoded in the BIOS ROM and the non-volatile CMOS memory stored an index into the table. During initialization (POST), the BIOS set up the corresponding vectors in the interrupt table to point to the appropriate entries in ROM.
In mid to late 1980s, BIOSes began to support user-defined drive types. There were so many different drive types on the market that a table built into the BIOS ROM was no longer adequate. Disk geometry was stored in the CMOS memory and copied to the FDPT during the POST process. In some cases the FDPT was stored at address 0:300h and 0:310h (for the first and second fixed disk, respectively), effectively overwriting 4 interrupt vectors per FDPT. These interrupt vectors (C0h-C3h and C4h-C7h) were reserved for the IBM ROM BASIC and therefore could be reused on non-IBM systems with no ROM BASIC. Some newer systems stored the FDPT in the Extended BIOS Data Area (EBDA), but that may cause problems if a memory manager (such as EMM386) relocates the EBDA and fails to update the corresponding vectors in the interrupt table.
On machines with ROM shadowing (standard at lease since the mid-1990s), the BIOS built the FDPT in the shadowed ROM area, without needing any RAM area potentially conflicting with other users. That has been the standard method for 486 and later systems.
Since the mid-1990s, operating systems typically did not care about the FDPT because information about attached storage devices is discovered through IDE commands or another hardware-specific protocol. However, for older operating systems, the FDPT was still critical. Typical FDPT users apart from the BIOS were operating systems such as OS/2, Xenix, or other PC UNIX variants.
These operating systems typically chose not to use the BIOS for performance reasons because they ran in protected mode, and in some cases (such as 286 Xenix), only switched to protected mode once during initialization and never switched back as Intel intended. Such systems therefore could not use the BIOS at all. With pre-IDE AT-compatible disk subsystems, the FDPT was the only way for an OS with no BIOS access to determine the disk geometry (and hence size) which was key for the OS’s disk driver. The drive type information in the CMOS was not sufficient because the drive types were not necessarily consistent across BIOS implementations and the OS had no reliable way to locate the predefined disk parameter tables in the BIOS ROM, especially when add-on disk adapters were involved. Likewise with user-defined drive types, there was no standardized method to store the information in CMOS memory.
As long as hard drive sizes stayed under about 500 MB, the FDPT was an adequate method to discover ATA fixed disk information. The only minor issue was with a few old operating systems that inadvertently overwrote the FDPT for user-defined drive types stored in RAM (either in the interrupt vector table or the EBDA) and failed to find the disk(s); this affected at least 286 Xenix version 2.1.3, and possibly old versions of Novell NetWare and other operating systems.
When disks larger than 500 MB appeared, the FDPT became problematic. When the BIOS translated the disk geometry (regardless of whether CHS addressing or LBA was used on the hardware level), the FDPT no longer matched the geometry used on the ATA interface level. That was a problem for operating systems like Xenix which assumed that the FDPT geometry matched the ATA geometry.
Around 1995, Phoenix defined a new FDPT, now called the Device Parameter Table, with a special signature and a checksum. This DPT provided information about both the logical and physical geometry. However, that did not help existing operating systems which relied on the FDPT. For that reason, BIOS setup programs typically offer several choices of disk handling for large IDE disks. The default is normally suitable for DOS and operating systems such as Windows, Linux, or OS/2. Another translation method (often called "Large") is provided for operating systems such as SCO UNIX or older versions of NetWare.
The "Large" method stores physical geometry information in the FDPT. That breaks operating systems which read the FDPT and then use the BIOS INT 13h interface to access the disk. However, an operating system which reads the FDPT and accesses the disk directly can obtain the expected information that way.
When working with virtualization, the most effective solution for old operating systems is usually creating virtual disks smaller than 504 MB. In that case, no translation is needed and the FDPT contains the expected information regardless of whether the OS uses the BIOS or its own driver to access the disk.
3 Responses to The Fixed Disk Parameter Table
Mostly correct, except I think the BIOS setting name is “large disk access mode”. “DOS” put the translated values used in Int13 into the FDPT. “Other” put the raw values into the FDPT. It is mentioned in the “BIOS Enhanced Disk Drive Specification”.
Have you ever seen a real BIOS of that era? The typical mid to late 1990s AWARD BIOS has options called “Normal”, “LBA”, and “Large”. What the EDD spec says about the suggested option names is pretty irrelevant.
I remember seeing it in some VMware BIOSes, probably Workstation 5.x. I think it was based on AMI BIOS.
This site uses Akismet to reduce spam. Learn how your comment data is processed.