Professional Documents
Culture Documents
Mapping Logical Drives To Physical Hard Drives For MS-DOS
Mapping Logical Drives To Physical Hard Drives For MS-DOS
Mapping Logical Drives To Physical Hard Drives For MS-DOS
---------------------------------------------------------
3
The Extended partition type entry in the Master
partition table can be thought of as a pointer to the start of
the Extended partition itself that is located physically beyond
the Primary partition on the hard disk. The Extended partition
has an extended boot record (non-bootable) and a logical drive
table analogous to the Primary Master boot record and its
partition table. This Extended logical drive table can contain
up to two entries or records. The first entry in the Extended
logical drive table is for the Extended partition itself (the
logical drive) and the second entry used to point to the next
possible Extended partition on the hard drive.
MS-DOS Comments
---------------------------------------------------------------
2.00 Only one MS-DOS partition per partitioned device
4.00 Huge (> 32MB) partition type 6 added, 2 Gigabyte size max.
Summary
Main
FOR LOGICAL_DRV = A: TO Z:
IF LOGICAL_DRV is hard drive type (via Int 21H IOCTL Get Device
Parms)
THEN CALL HDMapLogToPhy (LOGICAL_DRV)
display returned stats for LOGICAL_DRV
(ELSE)
ENDIF
NEXT LOGICAL_DRV
End Main
Proc HDMapLogToPhy:
endproc
Proc HDSysInventory:
RETURN
endproc
Program Structure
7
. . . .
Last HD ? ? ?
HD 1, 1st Part ? ? ? ? ?
HD 1, 2nd Part ? ? ? ? ?
. . . . . .
HD 1, Last Part ? ? ? ? ?
HD N, 1st Part ? ? ? ? ?
HD N, 2nd Part ? ? ? ? ?
. . . . . .
HD N, Last Part ? ? ? ? ?
1st LOG ? ? ? ? ? ?
2nd LOG ? ? ? ? ? ?
. . . . . . .
Last LOG ? ? ? ? ? ?