1 .\" Copyright (C) 1993, 1994, 1995, 2001 by Joerg Wunsch, Dresden
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
14 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
25 .\" $FreeBSD: src/usr.sbin/fdformat/fdformat.1,v 1.17.2.6 2002/06/21 16:40:26 charnier Exp $
26 .\" $DragonFly: src/usr.sbin/fdformat/fdformat.1,v 1.2 2003/06/17 04:29:53 dillon Exp $
33 .Nd format floppy disks
49 .Op Fl t Ar steps_per_track
54 utility formats a floppy disk at device
57 may be given either with a full path
58 name of a device node for a floppy disk drive
61 or a default name in an abbreviated form
64 In the latter case, the name is constructed by prepending
70 Note that any geometry constraints of the device node
72 are meaningless, since they're overridden by
75 The options are as follows:
76 .Bl -tag -width 10n -offset indent
78 Suppress any normal output from the command, and don't ask the
79 user for a confirmation whether to format the floppy disk at
82 Suppress confirmation request by automagically responding "yes", but still
85 The normal way to specify the desired formatting parameters.
87 is the number of kilobytes to format.
88 Valid choices are 360, 720, 800, 820,
89 1200, 1440, 1480 or 1720.
91 Don't verify floppy after formatting.
93 Don't format, verify only.
95 Number of cylinders: 40 or 80.
97 Number of sectors per track: 9, 10, 15 or 18.
99 Number of floppy heads: 1 or 2.
101 Data rate: 250, 300 or 500 kbps.
107 Sector size: 0=128, 1=256, 2=512 bytes.
110 .It Fl t Ar steps_per_track
111 Number of steps per track.
112 An alternate method to specify the geometry data to write to the floppy disk.
117 flag has not been specified, the user is asked for a confirmation
118 of the intended formatting process.
119 In order to continue, an answer
126 does only perform low-level formatting. In case you wish to create
127 a file system on the medium, see the commands
139 has been specified, a single letter is printed to standard output
140 to inform the user about the progress of work.
143 is printed when the track(s) is being formatted, then a
145 while it's being verified, and if an error has been detected, it
146 will finally change to
148 Detailed status information (cylinder, head and sector number, and the
149 exact cause of the error) will then be printed for up to 10 errors.
151 An exit status of 0 is returned upon successful operation.
153 1 is returned on any errors during floppy formatting, and an exit status
154 of 2 reflects invalid arguments given to the program (along with an
155 appropriate information written to diagnostic output).
163 utility has been developed for
165 and upgraded to the new
168 It later became part of the
173 The program has been contributed by
175 Dresden, with changes by
178 .An Andrey A. Chernov ,