TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Don Guy
from: Jonathan de Boyne Pollard
date: 1996-11-01 01:47:20
subject: direct disk access in a

DG>
  > Anyone 'round here have any experience accessing drives via
  > BIOS function 13,02?
  >
  > [...]
  >
  > Try running the same program under a DOS session in OS/2, and success is
  > variable. Sometimes info is dropped, others it claims that floppies are
  > unreadable. It somehow managed to crash the DOS session once last night, Wh
  > really amuses me is that it appears to force a reset to *both* floppy drive
  > whether I ask it to or not! :/
DG>

  That's because OS/2 is locking the floppy drives when it detects a
  Virtual DOS Machine using BIOS calls to access the floppy drives, and
  when it unlocks them again, the filesystem manager performs a media
  check and device reset.

  The easiest way to read a boot sector in OS/2 is to write a native OS/2
  program, unsurprisingly enough.  The BIOS routines in a Virtual DOS
  Machine are not the lowest layer of the whole system as they are on a
  DOS machine.  When a DOS program running on OS/2 makes a BIOS call for
  HD/floppy access, the VDDs translate that into a sequence of "lock
  device"/"perform operation"/"unlock device"
calls to the OS/2 kernel's
  file management routines.  A native OS/2 program can use the OS/2
  services more efficiently.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 440/4 141/209 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.