]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fdwrite/fdwrite.1
This commit was generated by cvs2svn to compensate for changes in r78344,
[FreeBSD/FreeBSD.git] / usr.sbin / fdwrite / fdwrite.1
1 .\"
2 .\" ----------------------------------------------------------------------------
3 .\" "THE BEER-WARE LICENSE" (Revision 42):
4 .\" <phk@login.dkuug.dk> 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 .\" ----------------------------------------------------------------------------
8 .\"
9 .\" $FreeBSD$
10 .\"
11 .\"
12 .Dd September 16, 1993
13 .Os FreeBSD
14 .Dt FDWRITE 1
15 .Sh NAME
16 .Nm fdwrite
17 .Nd format and write floppy disks
18 .Sh SYNOPSIS
19 .Nm
20 .Op Fl v
21 .Op Fl y
22 .Op Fl f Ar inputfile
23 .Op Fl d Ar device
24 .Sh DESCRIPTION
25 .Nm Fdwrite
26 formats and writes one and more floppy disks.
27 Any floppy disk device capable of formatting can be used.
28 .Pp
29 .Nm Fdwrite
30 will ask the user
31 .Pq on /dev/tty
32 to insert a new floppy and press return.
33 The device will then be opened, and queried for its parameters,
34 then each track will be formatted, written with data from the
35 .Ar inputfile ,
36 read back and compared.
37 When the floppy disk is filled, the process is repeated, with the next disk.
38 This continues until the program is interrupted or EOF is encountered on the
39 .Ar inputfile .
40 .Pp
41 The options are as follows:
42 .Bl -tag -width 10n -offset indent
43 .It Fl v
44 Toggle verbosity on stdout.
45 Default is ``on''.
46 After 
47 .Ar device
48 is opened first time the format will be printed.
49 During operation progress will be reported with the number of tracks
50 remaining on the current floppy disk, and the letters I, Z, F, W,
51 R and C, which indicates completion of Input, Zero-fill, Format
52 Write, Read and Compare of current track respectively.
53 .It Fl y
54 Don't ask for presence of a floppy disk in the drive.
55 This non-interactive flag
56 is useful for shell scripts.
57 .It Fl f Ar inputfile
58 Input file to read.  If none is given, stdin is assumed.
59 .It Fl d Ar device
60 The name of the floppy device to write to.  Default is
61 .Pa /dev/fd0 .
62 .El
63 .Pp
64 .Nm Fdwrite
65 actually closes the
66 .Ar device
67 while it waits for the user to press return,
68 it is thus quite possible to use the drive for other purposes at this
69 time and later resume writing with the next floppy.
70 .Pp
71 The parameters returned from
72 .Ar device
73 are used for formatting.
74 If custom formatting is needed, please use
75 .Xr fdformat 1
76 instead.
77 .Sh EXAMPLES
78 .Nm Fdwrite
79 was planned as a tool to make life easier when writing a set of floppies,
80 one such use could be to write a tar-archive:
81 .Pp
82 .Dl "tar cf - . | gzip -9 | fdwrite -d /dev/fd0.1720 -v
83 .Pp
84 The main difference from using
85 .Xr tar 1 Ns 's
86 multivolume facility is of course the formatting of the floppies, which
87 here is done on the fly,
88 thus reducing the amount of work for the floppy-jockey.
89 .Sh SEE ALSO
90 .Xr fdformat 1
91 .Sh HISTORY
92 .Nm Fdwrite
93 was written while waiting for ``make world'' to complete.
94 Some of the code was taken from
95 .Xr fdformat 1 .
96 .Sh AUTHORS
97 The program has been contributed by
98 .An Poul-Henning Kamp Aq phk@login.dknet.dk .
99 .Sh BUGS
100 Diagnostics are less than complete at present.
101 .Pp
102 If a floppy is sick, and the
103 .Ar inputfile
104 is seekable, it should ask the user to frisbee the disk, insert
105 another, and rewind to the right spot and continue.
106 .Pp
107 This concept could be extended to cover non-seekable input also
108 by employing a temporary file.
109 .Pp
110 An option (defaulting to zero) should allow the user to ask for
111 retries in case of failure.
112 .Pp
113 At present a suitable tool for reading back a multivolume set
114 of floppies is missing.
115 Programs like
116 .Xr tar 1
117 for instance, will do the job, if the data has not been compressed.
118 One can always trust
119 .Xr dd 1
120 to help out in this situation of course.