gcc2 lint
[unix-history] / usr / src / old / rxformat / rxformat.8
CommitLineData
b42074ab 1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
e157b129 2.\" All rights reserved.
05b75eac 3.\"
1c12d6fc 4.\" %sccs.include.redist.man%
05b75eac 5.\"
b42074ab 6.\" @(#)rxformat.8 6.6 (Berkeley) %G%
e157b129 7.\"
b42074ab
CL
8.Dd
9.Dt RXFORMAT 8
10.Os BSD 4.2
11.Sh NAME
12.Nm rxformat
13.Nd format floppy disks
14.Sh SYNOPSIS
15.Nm rxformat
16.Op Fl d
17.Ar special
18.Sh DESCRIPTION
05b75eac 19The
b42074ab 20.Nm rxformat
05b75eac
KM
21program formats a diskette in the specified drive
22associated with the special device
b42074ab
CL
23.Ar special .
24.Pf ( Ar Special
25is normally
26.Pa /dev/rx0 ,
27for drive 0, or
28.Pa /dev/rx1 ,
05b75eac 29for drive 1.)
b42074ab
CL
30.Pp
31Available option:
32.Bl -tag -width Ds
33.It Fl d
34Force double density formatting.
05b75eac 35By default, the diskette is formatted single density;
05b75eac 36Single density is compatible
b42074ab
CL
37with the
38.Tn IBM
393740 standard (128 bytes/sector).
05b75eac
KM
40In double density, each sector
41contains 256 bytes of data.
b42074ab
CL
42.El
43.Pp
05b75eac 44Before formatting a diskette
b42074ab 45.Nm rxformat
8461d308
JB
46prompts for verification if standard input is a tty
47(this allows a user to cleanly
05b75eac
KM
48abort the operation; note that
49formatting a diskette will destroy any existing data).
50Formatting is done by the hardware.
51All sectors are zero-filled.
b42074ab
CL
52.Sh DIAGNOSTICS
53.Bl -tag -width Ds
54.It Sy \&No such device
55means that the drive is not ready,
05b75eac
KM
56usually because no disk is in the drive or the drive door is open.
57Other error messages are selfexplanatory.
b42074ab
CL
58.El
59.Sh FILES
60.Bl -tag -width /dev/rx? -compact
61.It Pa /dev/rx?
62.El
63.Sh SEE ALSO
64.Xr rx 4
65.Sh AUTHOR
8e2edef7 66Helge Skrivervik
b42074ab 67.Sh BUGS
05b75eac
KM
68A floppy may not be formatted if the
69header info on sector 1, track 0 has been damaged. Hence, it is not
70possible to format a completely degaussed disk.
b42074ab
CL
71(This is actually a problem in the DEC hardware.)
72.Sh HISTORY
73The
74.Nm
75command appeared in
76.Bx 4.2 .