2008-04-30 17:10:46 +04:00
|
|
|
.\" $NetBSD: fdformat.1,v 1.17 2008/04/30 13:11:00 martin Exp $
|
1997-01-09 23:18:21 +03:00
|
|
|
.\"
|
1997-10-21 04:14:45 +04:00
|
|
|
.\" Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
1996-11-29 19:31:02 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
1997-10-21 04:14:45 +04:00
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by John Kohl.
|
|
|
|
.\"
|
1996-11-29 19:31:02 +03:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
1997-10-21 04:14:45 +04:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
1996-11-29 19:31:02 +03:00
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2006-07-22 12:36:14 +04:00
|
|
|
.Dd July 22, 2006
|
2001-06-05 15:40:04 +04:00
|
|
|
.Dt FDFORMAT 1
|
1999-03-22 21:16:34 +03:00
|
|
|
.Os
|
1996-11-29 19:31:02 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm fdformat
|
|
|
|
.Nd format a floppy diskette
|
|
|
|
.Sh SYNOPSIS
|
2001-06-05 15:40:04 +04:00
|
|
|
.Nm
|
1999-03-07 14:29:58 +03:00
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl f Ar device
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl t Ar type
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl n
|
1999-03-07 14:29:58 +03:00
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl B Ar nbps
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl S Ar nspt
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl T Ar ntrk
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl C Ar ncyl
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl P Ar stepspercyl
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl G Ar gaplen
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl F Ar fillbyte
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl X Ar xfer_rate
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
|
|
|
.Bk -words
|
1996-11-29 19:31:02 +03:00
|
|
|
.Op Fl I Ar interleave
|
1999-03-07 14:29:58 +03:00
|
|
|
.Ek
|
1996-11-29 19:31:02 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
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).
|
|
|
|
.Pp
|
|
|
|
As the each track of the floppy diskette is formatted, it is read to
|
2002-09-30 15:08:56 +04:00
|
|
|
verify the format was successful.
|
1996-11-29 19:31:02 +03:00
|
|
|
.Pp
|
2000-10-08 22:48:31 +04:00
|
|
|
The
|
2001-06-05 15:40:04 +04:00
|
|
|
.Nm
|
2002-09-30 15:08:56 +04:00
|
|
|
utility does not create a filesystem of any kind.
|
|
|
|
Use tools like
|
2000-10-08 22:48:31 +04:00
|
|
|
.Xr newfs 8 ,
|
2001-04-04 13:36:12 +04:00
|
|
|
.Xr newfs_msdos 8 ,
|
2000-10-08 22:48:31 +04:00
|
|
|
or
|
|
|
|
.Xr 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.
|
|
|
|
.Pp
|
1996-11-29 19:31:02 +03:00
|
|
|
Available command-line flags are:
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It Fl f Ar device
|
|
|
|
Format the floppy using
|
|
|
|
.Ar device
|
|
|
|
instead of the default
|
|
|
|
.Pa /dev/rfd0a .
|
|
|
|
.It Fl t Ar type
|
|
|
|
Format the floppy using parameters for the diskette named
|
|
|
|
.Ar type
|
2001-04-04 13:36:12 +04:00
|
|
|
in
|
1996-11-29 19:31:02 +03:00
|
|
|
.Pa /etc/floppytab
|
|
|
|
instead of the device default parameters.
|
|
|
|
.It Fl n
|
|
|
|
Do not verify each track as it is read.
|
|
|
|
.It Fl B Ar nbps
|
|
|
|
Set the number of bytes per sector for the formatted diskette.
|
|
|
|
.It Fl S Ar nspt
|
|
|
|
Set the number of sectors per track for the formatted diskette.
|
|
|
|
.It Fl T Ar ntrk
|
|
|
|
Set the number of tracks (heads) per cylinder for the formatted diskette.
|
|
|
|
.It Fl C Ar ncyl
|
1997-01-01 19:30:09 +03:00
|
|
|
Set the number of cylinders for the formatted diskette.
|
1996-11-29 19:31:02 +03:00
|
|
|
.It Fl P Ar stepspercyl
|
|
|
|
Set the number of motor steps per cylinder for the formatted diskette.
|
|
|
|
.It Fl G Ar gaplen
|
|
|
|
Set the sector gap length for the formatted diskette.
|
|
|
|
.It Fl F Ar fillbyte
|
|
|
|
Set the fill byte for the formatted diskette.
|
|
|
|
.It Fl X Ar xfer_rate
|
|
|
|
Set the bit transfer rate for the formatted diskette.
|
|
|
|
.It Fl I Ar interleave
|
|
|
|
Set the interleave factor for the formatted diskette.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1996-12-10 10:47:45 +03:00
|
|
|
.Xr fdc 4
|
2001-06-05 15:40:04 +04:00
|
|
|
(amiga, i386 and sparc ports)
|
1996-11-29 19:31:02 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
1998-02-06 08:54:12 +03:00
|
|
|
utility appeared in
|
|
|
|
.Nx 1.3 .
|
2001-12-01 22:09:41 +03:00
|
|
|
.Sh BUGS
|
|
|
|
Some floppy drive units have physical
|
|
|
|
diskette format sensors which automatically select a diskette
|
2002-09-30 15:08:56 +04:00
|
|
|
density for reading.
|
|
|
|
Such drives can format at alternate densities, but
|
2001-12-01 22:09:41 +03:00
|
|
|
they cannot successfully verify the formatted diskette except at the
|
|
|
|
diskette's normal density.
|