PARTENTRY

PARTENTRY STRUC

peBootable db ? ;80h = bootable, 00h = nonbootable

peBeginHead db ? ;beginning head

peBeginSector db ? ;beginning sector

peBeginCylinder db ? ;beginning cylinder

peFileSystem db ? ;name of file system

peEndHead db ? ;ending head

peEndSector db ? ;ending sector

peEndCylinder db ? ;ending cylinder

peStartSector dd ? ;starting sector (relative to beg. of disk)

peSectors dd ? ;number of sectors in partition

PARTENTRY ENDS

The PARTENTRY structure specifies the size and the starting and ending sectors of a partition on a disk that can be partitioned.

Fields

peBootable

Specifies whether the partition is bootable. If this field is 80h, the partition is bootable; if the field is 00h, the partition is not bootable.

peBeginHead

Specifies the head number used to determine the first track in the partition.

peBeginSector

Specifies the number of the first sector in the partition. This sector number is relative to the first track in the partition.

peBeginCylinder

Specifies the cylinder number used to determine the first track in the partition.

peFileSystem

Specifies the type of file system. This field can be one of the following values:

Value Meaning

00h Unknown type
01h 12-bit file allocation table (FAT); partition smaller than 10 MB
04h 16-bit FAT; partition smaller than 32 MB
05h Extended DOS partition
06h 16-bit FAT; partition larger than or equal to 32 MB

Although other values are possible, MS-DOS recognizes only those given.

peEndHead

Specifies the head number used to determine the last track in the partition.

peEndSector

Specifies the number of the last sector in the partition. This sector number is relative to the first track in the partition.

peEndCylinder

Specifies the cylinder number used to determine the last track in the partition.

peStartSector

Specifies the number of the first sector in the partition. This sector number is relative to the beginning of the disk.

peSectors

Specifies the number of sectors in the partition.

Comments

MS-DOS supplies a partition table for every disk that can be partitioned. The table, placed at the end of the first hidden sector on the logical drive, consists of one or more PARTENTRY structures.

See Also

Interrupt 21h Function 440Dh Minor Code 41h Write Track on Logical Drive
Interrupt 21h Function 440Dh Minor Code 61h Read Track on Logical Drive