Main index | Section 8 | Options |
The options are as follows:
| |
Use fill as the fill byte for newly formatted sectors. The fill argument must be a number in the range 0 through 255 using common C language notation. The default value is "0xf6". | |
| |
Specify the density settings for a fmt kilobyte format, as described in fdcontrol(8). | |
| |
Specify the density settings using explicit parameters, as described in fdcontrol(8). | |
| Do not verify floppy after formatting. |
| Suppress any normal output from the command, and do not ask the user for a confirmation whether to format the floppy disk at device. |
| Do not format, verify only. |
| Do not ask for confirmation whether to format the floppy disk but still report formatting status. |
For non-autoselecting subdevices, neither
If the
Note that fdformat does only perform low-level formatting. In order to create a file system on the medium, see the commands newfs(8) for a UFS file system, or newfs_msdos(8) for an MS-DOS (FAT) file system.
/usr/sbin/fdformat -f 1440 /dev/fd0
After low-level formatting the disk with fdformat, create a disk label so that the system can determine the size and geometry of the disk. The supported geometry values are listed in /etc/disktab, and we will use fd1440 for this example. To write the disk label, use bsdlabel(8):
/sbin/bsdlabel -B -w /dev/fd0 fd1440
The floppy is now ready to be high-level formatted with a file system. To format the floppy disk with FAT, issue:
/sbin/newfs_msdos /dev/fd0
FDFORMAT (8) | May 23, 2020 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.