Examples

Configuration file for three primary partitions

The following is a sample configuration for a disk with three primary partitions—one DOS FAT32 filesystem and two Power-Safe filesystems—intended for a disk geometry of 974/255/63 (cylinders/heads/sectors). The configuration file expects the filesystem images to reside in the directory ../fsi.
[cylinders=974]
[heads=255]
[sectors_per_track=63]

# DOS FAT32
[partition=1
  boot=false
  type=11
  num_sectors=963837
] "../fsi/fat32.fsi"

# First Power-Safe filesystem, >2GB, bootable
[partition=2
  boot=true
  type=179
  num_sectors=4273290
] "../fsi/qnx6-1.fsi"

# Second Power-Safe filesystem
[partition=3
  boot=false
  type=178
  num_sectors=1060290
] "../fsi/qnx6-2.fsi"

Configuration file for three primary and two logical partitions

The configuration below is for a disk with three primary and two logical partitions. The primary partitions are a DOS FAT32 filesystem and a Power-Safe filesystem, plus an empty partition reserved for another Power-Safe filesystem. Both logical partitions are Power-Safe filesystems. The extended partition uses slot 3 in the MBR. The resulting image is intended for a disk geometry of 4096/64/32 (cylinders/heads/sectors), which could represent an eMMC. The configuration file expects the filesystem images to reside in the directory ../fsi.
[cylinders=4096 heads=64 sectors_per_track=32]

# DOS FAT32 (~480MB)
[partition=1 type=11 num_sectors=963837] "../fsi/fat32.fsi"

# Primary Power-Safe filesystem, >2GB, bootable
[partition=2 boot=true type=179 num_sectors=4273290] "../fsi/qnx6-1.fsi"

[extended=3]

# Reserved for Power-Safe filesystem
[partition=4 type=178 num_sectors=65536]

# Power-Safe filesystem (~500MB)
[logical type=178 num_sectors=1060290] "../fsi/qnx6-2.fsi"

# Power-Safe filesystem (~500MB)
[logical type=177 num_sectors=1060290] "../fsi/qnx6-3.fsi"

Configuration file for a GPT disk with two partitions

This example is for a GPT disk with two partitions–one DOS FAT32 named "dos" and one Power-Safe filesystem named "qnx". This configuration is intended for a disk geometry of 65536/32/16 (cylinders/heads/sectors). Partitions are aligned to multiples of 1MB. Use the first and the last entry of the partition table. The configuration file expects the filesystem images to reside in the directory ../fsi.
[cylinders=64k heads=32 sectors_per_track=16]
# At 512 bytes/sector, 2k sectors give 1MB
[align=2k]
    
# DOS FAT32
[partition=1
  type_guid="ms"
  name="dos"
  num_sectors=2097108
] "../fsi/fat32.fsi"
   
# Power-Safe filesystem, bootable
[partition=128
  boot=true
  type_guid="qnx6"
  name="qnx"
  num_sectors=4273290
] "../fsi/qnx6.fsi"