Skip to content

Commit

Permalink
Update the description of _GPART in the programmers reference.
Browse files Browse the repository at this point in the history
Add a paragraph explaining that 15 (extended LBA) is recognized
as a valid extended partition type code since Nextor 2.1.2.
  • Loading branch information
Konamiman committed Nov 5, 2023
1 parent 014de7c commit 4b9c0d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/Nextor 2.1 Programmers Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,14 @@ The partition type code returns information about the filesystem that the partit
0: None (the partition with the specified number does not exist)
1: FAT12
4: FAT16, smaller than 32MB (obsolete)
5: Extended (see below)
5: Extended (CHS) (see below)
6: FAT16 (CHS)
14: FAT16 (LBA)
15: Extended (LBA)
```

**Note:** Prior to version 2.1.2, Nextor would only recognize a partition as extended if it had the partition type code 5 (extended CHS), and FDISK would use this code when creating extended partitions. Starting with Nextor 2.1.2, FDISK will use partition type code 15 (extended LBA) when creating extended partitions, and both 5 and 15 will be recognized as valid extended partition type codes when scanning existing partitions with `_GPART`. In the description below, "Extended" means "Either extended CHS or extended LBA".

There are many more partition type codes defined, but they refer to filesystems that can't be handled by Nextor so they are not listed here.

A device can have up to four primary partitions, numbered 1 to 4. In order to accommodate more than four partitions, partition number 2 may be of a special type named "Extended". An extended partition is actually a container for more partitions; there is no limit in the number of extra partitions that a partition of type "Extended" can contain. Primary partitions 3 and 4 do not exist when partition 2 is extended.
Expand Down

0 comments on commit 4b9c0d4

Please sign in to comment.