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
OS/2 2.0 LA and “Large” IDE Disks
Attempting to boot OS/2 2.0 LA (Limited Availability) on many systems built in the last 20 years often results in the following crash:
The trap screen claims there was an exception (Trap 0 or division overflow) in device driver A:, but that’s not quite true. The crash occurred in the disk driver (DISK01.SYS) which handles both the A: floppy drive and the C: etc. hard disks.
The register dump indicates that this wasn’t a division by zero (no general-purpose register contains a zero) but rather a division overflow. The driver is using 16-bit division and the result does not fit into a 16-bit register. Without analyzing the problem in detail, it is fairly clear (based on the register contents) that the driver is calculating fixed disk geometry parameters.
The problem was hardly new in OS/2 2.0 LA. Attempting to boot IBM OS/2 1.3 EE on the same system results in the following trap screen:
OS/2 1.3 EE Trap 0And going a bit further back, Microsoft OS/2 1.2 produces this:
MS OS/2 1.2 Trap 0This might be surprising (why would a 32-bit OS have the same problem as its 16-bit ancestors?) until one realizes that OS/2 2.0 LA (October 1991) used more or less exactly the same 16-bit disk driver, DISK01.SYS, as OS/2 1.3 EE (1990).
While the GA (General Availability) release of OS/2 2.0 still utilized 16-bit disk drivers, the storage subsystem was almost entirely unrecognizable. OS/2 1.x generally used monolithic disk drivers which implemented low-level device support as well as OS-level block device interface in one module, but OS/2 2.0 GA was significantly different.
The notable OS/2 1.x exception was Microsoft’s OS/2 1.21/1.3 which used LADDR (pronounced ‘ladder’), or LAyered Disk DRiver, architecture. In the LADDR architecture, a large chunk of the disk driver was generic, with relatively small hardware-specific modules (much like Microsoft’s later ‘miniport’ model). The hardware-specific modules had a .BID extension (ESDI-506.BID, AHA154X.BID), the device-specific modules used a .TSD extension (DISK.TSD), the over-arching driver was IOS1X.SYS. Microsoft developed the LADDR model as a way to improve storage support for its LAN Manager server.
OS/2 2.0 GA implemented a model somewhat similar to LADDR, with a generic OS2DASD.DMD module and hardware-specific IBM1FLPY.ADD, IBM1S506.ADD, etc. modules. A notable addition was the fallback IBMINT13.I13 driver which used the BIOS to access the disk. Which is not to say that OS/2 2.0 GA did not have problems with larger IDE disks… but it did handle drives up to about 2GB in size. Due to the history of the IDE interface which evolved slowly but steadily, limitations in older operating systems are inevitable.
But back to the original problem. How to avoid the crashes? In a virtualized environment, use a 500MB or smaller disk. That will avoid any issues with discrepancies between logical (BIOS) and physical (IDE) geometry, and will keep the disk size small enough to avoid overflows.
With a physical system, that can be tougher as a working 500MB disk might be hard to find. Different disk sizes will produce different results. What matters is not only the disk size but also the partition table contents. Wiping the partition table and letting OS/2 partition the disk may help.
Using SCSI disks sidesteps this particular issue, in exchange for a whole bunch of new ones… starting with how to find a suitable driver. But that’s an entirely different problem.
4 Responses to OS/2 2.0 LA and “Large” IDE Disks
I’d long to build a working OS/2 KVM under Linux.
But it’s not clear to me how to handle the 2-stage boot loading with 2 floppies, and I don’t have a bootable CD (at least my Warp 3 copy cannot boot from CD).
How would you build a VM with OS/2?
I tried to assemble a legacy system and managed to boot with a replaced DANIS506 driver instead of IBM1S506 but this failed later.
I’d use VirtualBox to do it. Swapping floppy/CD images is trivial. If you insist on KVM, I’m afraid you’re on your own…
Make me wonder that if MS took the OS/2 2.0 path, which kinds of disk drivers would the resulting OS/2 2.0 release use?
@ths: you can use the change command in the KVM console to swap floppy disks and CDs.
This site uses Akismet to reduce spam. Learn how your comment data is processed.