[ The PC Guide | Systems and Components Reference Guide | Hard Disk Drives | Hard Disk Logical Structures and File Systems | Disk Partitioning and Formatting Programs ] FORMAT The well-known FORMAT command is used, of course, to format hard disks and floppy disks. Many people don't realize that this command functions quite differently for hard disks and floppy disks. As described here, there are two steps to formatting: low-level formatting and high-level formatting. For floppy disks, FORMAT does both low-level formatting and high-level formatting. For hard disks, it only does high-level formatting. The reason for this difference is that for hard disks, partitioning must be done in between the two steps. Modern hard disks are low-level formatted at the factory; they are then partitioned and high-level formatted by the user (or system builder). There are many different parameters that the FORMAT command can use; these can be seen by typing "FORMAT /?" at a DOS command line. Most of these commands are used for specifying different formatting options for different types of floppy disks. An important parameter is the "/S" flag, which tells FORMAT to make the volume it is formatting ready for booting. This is done by creating the proper disk structures for booting, and copying the operating system files to the root directory of the new volume. In most cases today, you do not need to use any of the optional flags associated with the FORMAT command; it will "figure out" what it needs to do by examining your hardware. Even the "/S" flag is not needed for newer operating systems, which take care of all the operating system file setup for you. There's one FORMAT command parameter that bears special mention. This is the undocumented "/Z" switch, which allows you to specify a particular cluster size for a partition as you format it, overriding the defaults that are established by the system based on the size of the partition (see here for a table of standard cluster sizes for FAT16 based on partition size, and here for FAT32.) For example, if you have a 12 GiB partition, the normal cluster size would be 16 sectors, or 8 kiB. If you format such a partition with the command "FORMAT /Z:8" then it will format it with eight-sector, 4 kiB clusters instead. While this can be useful in some circumstances, be sure to read the warning below carefully before using this option: it is undocumented for a reason.
|