FDFORMAT(1) BSD General Commands Manual FDFORMAT(1)NAME
fdformat -- format a floppy diskette
SYNOPSIS
fdformat [-f device] [-t type] [-n] [-B nbps] [-S nspt] [-T ntrk] [-C ncyl] [-P stepspercyl] [-G gaplen] [-F fillbyte] [-X xfer_rate]
[-I interleave]
DESCRIPTION
The fdformat utility formats a floppy diskette. With no arguments, it formats the default floppy device with the default density parameters
(as provided by the floppy diskette device driver).
As the each track of the floppy diskette is formatted, it is read to verify the format was successful.
The fdformat utility does not create a filesystem of any kind. Use tools like newfs(8), newfs_msdos(8), or mformat(1) (part of the
pkgsrc/sysutils/mtools package) depending on what filesystem type you want to use on the floppy disk to do so.
Available command-line flags are:
-f device
Format the floppy using device instead of the default /dev/rfd0a.
-t type
Format the floppy using parameters for the diskette named type in /etc/floppytab instead of the device default parameters.
-n Do not verify each track as it is read.
-B nbps
Set the number of bytes per sector for the formatted diskette.
-S nspt
Set the number of sectors per track for the formatted diskette.
-T ntrk
Set the number of tracks (heads) per cylinder for the formatted diskette.
-C ncyl
Set the number of cylinders for the formatted diskette.
-P stepspercyl
Set the number of motor steps per cylinder for the formatted diskette.
-G gaplen
Set the sector gap length for the formatted diskette.
-F fillbyte
Set the fill byte for the formatted diskette.
-X xfer_rate
Set the bit transfer rate for the formatted diskette.
-I interleave
Set the interleave factor for the formatted diskette.
SEE ALSO fdc(4) (amiga, i386 and sparc ports)
HISTORY
The fdformat utility appeared in NetBSD 1.3.
BUGS
Some floppy drive units have physical diskette format sensors which automatically select a diskette density for reading. Such drives can
format at alternate densities, but they cannot successfully verify the formatted diskette except at the diskette's normal density.
BSD July 22, 2006 BSD
Check Out this Related Man Page
mformat(1) General Commands Manual mformat(1)NAME
mformat - mtools utility to add a DOS file system to a low-level formatted diskette
SYNOPSIS
mformat [-t tracks] [-h heads] [-s vectors] [-l volumelabel] drive:
OPTIONS
Specifies the number of tracks (not cylinders) on the diskette. Specifies the number of heads (sides) on the diskette. Specifies the num-
ber of sectors per track. Specifies the volume label. This is an optional option.
DESCRIPTION
Note
You must specify the floppy disk storage device that is to be formatted. If you do not specify a device, or if a device is not found, the
command may incorrectly format a SCSI device which could be a system or data disk.
The mformat command adds a minimal DOS compatible file system (boot sector, FAT, and root directory) to a UNIX formatted diskette. If the
diskette is unformatted, you must low-format the disk. You can do this with a PC system, or on Tru64 UNIX using either the scu utility or
the fddisk utility, depending on your floppy drive. Tru64 UNIX supports both FDI and SCSI attached 3.5" floppy drives with DD, HD, or ED
media. Not all floppy drives are compatible with ED media.
The following track/head/sector values are supported:
---------------------------------------------------------------
Media Capacity Tracks Heads Sectors
type KB/MB Bytes Sectors -t-h-s
---------------------------------------------------------------
DD 720KB 737280 1440 80 2 9
HD 1.44MB 1474560 2880 80 2 18
ED 2.88MB 2949120 5760 80 2 36
---------------------------------------------------------------
To format a diskette for other than the ED 2.88MB default capacity, you must specify the number of sectors per track with the -s option. No
error is returned if you use mformat to put an ED file system onto an HD floppy, but you will get errors from other utilities if you try to
write beyond the physical end of the media.
RESTRICTIONS
The following restrictions apply: The mformat command requires a low-level format utility from UNIX. The mformat command does not detect
(or record) bad block information.
EXIT STATUS
The following exit values are returned: Success. Failure.
EXAMPLES
In the following example, a SCSI floppy diskette is formatted at the ED 2.88MB capacity, then a DOS file system is initialized with mfor-
mat: $ /sbin/scu -f /dev/rdisk/dsk/6a format density ED $ mformat a: In the following example, an FDI floppy diskette is formatted at the
HD 1.44MB capacity, then a DOS file system is initialized with mformat, a file is copied to the diskette, and the mdir command is used to
check the contents of the diskette. The mlabel command is used to add a label and mdir is used to again check the diskette contents.
Finally, a DD file system is placed on the diskette, mcopy is used to place a file on it, and mdir is used to verify the diskette contents:
$ fddisk -fmt /dev/rfd0a
NOTE: Setting interleave factor to ``-i2:4''.
Use ``-i<nnn>[:<ccc>]'' option to override. Disk type: 3.50 inch, HD (1.44MB) Number of sectors per track: 18 Number of
surfaces: 2 Number of cylinders: 80 Sector size: 512 interleave factor: 2:4 Formatting disk... Percentage complete:
Format complete, checking...
Quick check of disk passes OK.
$ mformat -s 18 a: $ mcopy README a:
Copying README
$ mdir a:
Volume in drive A has no label Directory for A:/
README 769 6-04-97 8:59a
1 File(s) 1456640 bytes free
$ mlabel a: Volume in drive A is unlabeled Enter the new volume label (11 characters): hddisk
$ mdir a:Volume in drive A is hddisk Directory for A:/
README 769 6-04-97 8:59a
1 File(s) 1456640 bytes free
$ mformat -s 9 -l dddisk a: $ mcopy README a:README.1 $ mdir a:
Volume in drive A is dddisk
Directory for A:/
README 1 769 6-04-97 9:16a
1 File(s) 729088 bytes free In the following example, an unformatted 2.8Mb floppy diskette is formatted using the scu
command, followed by the mformat command. Once it is formatted by both the scu and mformat commands, it is ready for use: $
/sbin/scu -f /dev/disk/floppy format density ED $ mformat -t 80 -h 2 -s 36 a:
FILES
Executable file
SEE ALSO
Commands: mlabel(1), mtools(1)
Utilities: fddisk(8), scu(8)
Floppy disk interface: fd(7)mformat(1)