dosformat Command
Purpose
Formats a DOS diskette.
Syntax
Description
The dosformat command formats a diskette with the DOS format.
The default device and DOS diskette drive format is /dev/fd0 for a 3.5-inch diskette. The density is usually either 1.44M-byte or 2.88M-byte, depending on the density that the drive supports. Other DOS diskette drive formats are implemented by using the -D or -4 flags.
To include a volume label, use the -V flag.
Note: The purpose of this command is to facilitate file transfer
between this operating system and DOS systems. Using this
command to format a diskette that needs to have the DOS system startup files
on it is not recommended.
Flags
Item | Description |
---|---|
-V | Write the Label parameter to the diskette as the DOS volume label. |
-DDevice | Specifies the diskette drive type and size. The Device parameter can be specified as:
For a 3.5-inch, 1.44M drive:
For a 3.5-inch, 2.88M drive:
For a 5.25-inch, 1.2M drive:
|
Item | Description |
---|---|
-4 | Specifies the lower density for the diskette size. |
Examples
- To format a 3.5-inch,
1.44M-byte diskette with the volume label "homework," type the following:
dosformat -V homework
- To format a 5.25-inch,
360K-byte diskette, type the following:
ORdosformat -D /dev/fd1.9
dosformat -D /dev/fd1 -4
Files
Item | Description |
---|---|
/usr/bin/dosformat | Contains the dosformat command. |