Partitions

The QNX Neutrino RTOS complies with the de facto industry standard for partitioning a disk.

This allows a number of filesystems to share the same physical disk. Each partition is also represented as a block-special file, with the partition type appended to the filename of the disk it's located on. In the above “two-disk” example, if the first disk had a Power-Safe partition and a DOS partition, while the second disk had only a Power-Safe partition, then the default files would be:

/dev/hd0
First hard disk
/dev/hd0t6
DOS partition on first hard disk
/dev/hd0t179
Power-Safe partition on first hard disk
/dev/hd1
Second hard disk
/dev/hd1t179
Power-Safe partition on second hard disk

The following list shows some typical assigned partition types:

Type Filesystem
1 DOS (12-bit FAT)
4 DOS (16-bit FAT; partitions <32M)
5 DOS Extended Partition (enumerated but not presented)
6 DOS 4.0 (16-bit FAT; partitions ≥32M)
7 OS/2 HPFS
7 Windows NT
11 DOS 32-bit FAT; partitions up to 2047G
12 Same as Type 11, but uses Logical Block Address Int 13h extensions
14 Same as Type 6, but uses Logical Block Address Int 13h extensions
15 Same as Type 5, but uses Logical Block Address Int 13h extensions
77 QNX 4
78 QNX 4
79 QNX 4
99 UNIX
131 Linux (Ext2)
175 Apple Macintosh HFS or HFS Plus
177 QNX Power-Safe POSIX partition (secondary)
178 QNX Power-Safe POSIX partition (secondary)
179 QNX Power-Safe POSIX partition
185 QNX Trusted Disk (QTD)