Make a Flash (embedded) filesystem image (QNX)
mkffs [options] -o fname root_directory
The default for QNX is -mn; for Windows NT, it's -mu.
There's no real advantage to having more than one spare block. |
The mkffs utility creates a Flash (that is, embedded) filesystem image in the specified fname, based on the files contained in the root_directory parameter. The optional bsize parameter is used to specify the block size of each erasable subdevice within the embedded filesystem.
Note that the directory structure created is of the entire specified directory and any subdirectory entries. The specified directory becomes the root of the created embedded filesystem.
When building an image with mkffs, symbolic links found in and below the root directory are ignored. These links and/or the files they refer to aren't included in the image. To include these files in the image, use a hard link or the file itself. |
The -s fsize flag is used to fill the embedded filesystem image with 0xFFs and appropriate formatting information. If the embedded filesystem exceeds fsize, mkffs exits with an error.
Unless at least one spare block is specified (using the -r option), the filesystem won't be able to reclaim space in other blocks. |
To create an embedded filesystem image called flash_1, from the files contained in the directory /home/jwall/flash:
mkffs -o flash_1 /home/jwall/flash
To create an embedded filesystem image, as above, specifying that the erase block size on the device is 64K:
mkffs -b 64k -o flash_1 /home/jwall/flash