2 .\" ----------------------------------------------------------------------------
3 .\" "THE BEER-WARE LICENSE" (Revision 42):
4 .\" <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 .\" can do whatever you want with this stuff. If we meet some day, and you think
6 .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 .\" ----------------------------------------------------------------------------
9 .\" $FreeBSD: src/usr.sbin/fdwrite/fdwrite.1,v 1.12.2.7 2003/03/12 22:08:14 trhodes Exp $
11 .Dd September 16, 1993
16 .Nd format and write floppy disks
26 utility formats and writes one and more floppy disks.
27 Any floppy disk device capable of formatting can be used.
31 utility will ask the user
34 to insert a new floppy and press return.
35 The device will then be opened, and queried for its parameters,
36 then each track will be formatted, written with data from the
38 read back and compared.
39 When the floppy disk is filled, the process is repeated, with the next disk.
40 This continues until the program is interrupted or EOF is encountered on the
43 The options are as follows:
44 .Bl -tag -width 10n -offset indent
46 Toggle verbosity on stdout.
50 is opened first time the format will be printed.
51 During operation progress will be reported with the number of tracks
52 remaining on the current floppy disk, and the letters I, Z, F, W,
53 R and C, which indicates completion of Input, Zero-fill, Format
54 Write, Read and Compare of current track respectively.
56 Don't ask for presence of a floppy disk in the drive.
57 This non-interactive flag
58 is useful for shell scripts.
60 Input file to read. If none is given, stdin is assumed.
62 The name of the floppy device to write to. Default is
68 utility actually closes the
70 while it waits for the user to press return,
71 it is thus quite possible to use the drive for other purposes at this
72 time and later resume writing with the next floppy.
74 The parameters returned from
76 are used for formatting.
77 If custom formatting is needed, please use
84 was planned as a tool to make life easier when writing a set of floppies,
85 one such use could be to write a tar-archive:
87 .Dl "tar cf - . | gzip -9 | fdwrite -d /dev/fd0.1720 -v"
89 The main difference from using
91 multivolume facility is of course the formatting of the floppies, which
92 here is done on the fly,
93 thus reducing the amount of work for the floppy-jockey.
99 utility was written while waiting for ``make world'' to complete.
100 Some of the code was taken from
103 The program has been contributed by
104 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org .
106 Diagnostics are less than complete at present.
108 If a floppy is sick, and the
110 is seekable, it should ask the user to frisbee the disk, insert
111 another, and rewind to the right spot and continue.
113 This concept could be extended to cover non-seekable input also
114 by employing a temporary file.
116 An option (defaulting to zero) should allow the user to ask for
117 retries in case of failure.
119 At present a suitable tool for reading back a multivolume set
120 of floppies is missing.
123 for instance, will do the job, if the data has not been compressed.
126 to help out in this situation of course.