Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

format(1) [minix man page]

FORMAT(1)						      General Commands Manual							 FORMAT(1)

NAME
format - format a PC floppy diskette SYNOPSIS
format [-v] device [media-size [drive-size]] DESCRIPTION
Format allows a user with read-write permission to device to format a floppy. Either one of the special floppy devices must be used, see fd(4), or an automatic device may be used with the size of the floppy specified on the command line. Two sizes must be given when format- ting a low density diskette in a high density drive. For example: format /dev/at1 format /dev/fd1 1200 format /dev/fd1 360 1200 The first two commands format a 1.2M diskette, the last formats a 360k diskette in a 1.2M drive. A 1.44M drive knows when it's dealing with a low density floppy, so all these commands format a 720k diskette: format /dev/fd0 720 format /dev/fd0 720 1440 format /dev/ps0 No sizes may be specified when using a special floppy device, a size must be specified when using an automatic device. OPTIONS
-v Verify the process by reading each track after formatting it. Formatting is normally blind, the controller has no idea whether it succeeds or not. Use -v on a new box of cheap diskettes, or on a diskette that may have gone bad. Verifying will increase format- ting time by 50%. SEE ALSO
mkfs(1), fd(4). DIAGNOSTICS
Numbers will be printed on standard output to show that it is busy. The locations of bad sectors are printed on standard error when veri- fying. The exit code is zero unless there are too many bad spots. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) FORMAT(1)

Check Out this Related Man Page

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
Man Page