Format a DOS (FAT-12/16/32) filesystem (QNX Neutrino)
mkdosfs [-C|c size] [-e number] [-F type] [-f number] [-h number] [-I vol_id] [-L vol_label] [-m media] [-O oem_label] [-R|r] [-S size] [-s size] device | mountpoint | file
Neutrino
The mkdosfs utility formats a DOS filesystem on the specified target (typically a disk device or partition).
If you don't specify essential user options such as FAT type and cluster size, mkdosfs formats the DOS filesystem using the most suitable options for the size and disk geometry of the host. You can override this default auto-configuration and force a particular format to be used by setting the options you need.
The following table shows the shared objects and related commands for the filesystems:
Partition type | Filesystem | Shared object | Initialize with: | Check with: |
---|---|---|---|---|
1, 4, or 6 | DOS | fs-dos.so | mkdosfs | chkdosfs |
7 | Windows NTa | fs-nt.so | N/A | N/A |
11, 12, or 14 | FAT32 | fs-dos.so | mkdosfs | chkdosfs |
77, 78, or 79 | QNX 4 | fs-qnx4.so | dinit | chkfsys |
131 | Linux (Ext2) | fs-ext2.so | N/A | N/A |
175 | Apple Macintosh HFS or HFS Plusa | fs-mac.so | N/A | N/A |
177, 178, or 179 | Power-Safe | fs-qnx6.so | mkqnx6fs | chkqnx6fsb |
a Read-only.
b Not usually necessary.
For more information, see the Filesystems chapter of the System Architecture guide.
# mkdosfs /dev/hd0t6 Format complete: FAT16 (4096-byte clusters), 201888 kB available.
Robert Nordier
This utility is based on software from Robert Nordier; for licensing information, see the Third Party License Terms List at http://licensing.qnx.com/third-party-terms/.
The mkdosfs utility destroys or overwrites any existing filesystem on the target.
chkdosfs, devb-eide, dinit, fs-dos.so, mkqnx6fs mount, umount