Formats either diskettes or read/write optical media disks.
format [ -d Device ] [ -f ] [ -l ]
Attention: Formatting a diskette or read/write optical disk destroys any existing data on it.
The format command formats diskettes in the diskette drive specified by the Device parameter. The format command determines the device type, which may be one of the following:
The sector size is 512 bytes for all diskette types.
The format command formats a diskette with the highest capacity supported by the diskette drive, unless the Device parameter specifies a different density.
The format command formats a read/write optical disk, provided that the drive supports setting the Format Options Valid (FOV) bit of the defect list header to 0. To format a read/write optical disk, use the name of the read/write optical drive (such as /dev/romd0) after the -d flag. For more information, see the DKFORMAT operation of the ioctl subroutine in "scdisk SCSI Device Driver" in AIX Version 4 Technical Reference: Volume 6, Kernel and Subsystems.
Before formatting a diskette or read/write optical disk, the format command prompts for verification. This allows you to end the operation cleanly.
|-d Device|| Specifies the device used to format the diskette. If the device name ends with the letter h, the drive formats the diskette for high density. If the device name ends with the letter l, the drive formats the diskette for low density. Refer to the fd special file for information about valid device types. This flag is used only with the format command.
Attention: If the diskette drive supports a higher capacity than the highest capacity for which the diskette was manufactured, the capacity of the diskette should be explicitly stated in the Device parameter (-d Device flag) of the format command. For example, to format a 1MB diskette on a 4MB diskette drive, specify the diskette capacity in the -d flag as follows:
|-f||Formats the diskette without checking for bad tracks, thus formatting the diskette more quickly. This flag applies to diskettes only, not to read/write optical disks. It is used only with the format command.|
|-l||(Lowercase L) Formats a 360KB diskette in a 5.25-inch, 1.2MB diskette drive. Formats a 720KB diskette in a 3.5-inch 1.4MB diskette drive. This flag applies to diskettes only, not to read/write optical disks. It is used only with the format command.|
Attention: A 360KB diskette drive may not be able to read a 360KB diskette that has been formatted in a 1.2MB drive.
|Device||Specifies the device containing the diskette to be formatted. The default is the /dev/rfd0 device for drive 0.|
format -d /dev/rfd0
format -l -d /dev/rfd1
format -d /dev/fd0.9
format -d /dev/fd0.18
format -d /dev/romd0
|/usr/sbin/format||Contains the format command.|
|/dev/rfd*||Specifies the device parameters.|
|/dev/fd*||Specifies the device parameters.|
|/dev/romd*||Specifies the device parameters.|
|/dev/omd*||Specifies the device parameters.|
The flcopy command, fdformat command.
The fd special file.