1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
.TH diskd 1 "27Jan21" fdutils-5.6
.SH Name
diskd - disk daemon; wait for disk to be inserted
'\" t
.de TQ
.br
.ns
.TP \\$1
..
.tr \(is'
.tr \(if`
.tr \(pd"
.SH Note
This manpage has been automatically generated from fdutils's texinfo
documentation. However, this process is only approximative, and some
items, such as cross-references, footnotes and indices are lost in this
translation process. Indeed, these items have no appropriate
representation in the manpage format. Moreover, only the items specific
to each command have been translated, and the general information about
fdutils has been dropped in the manpage version. Thus I strongly advise
you to use the original texinfo doc.
.TP
* \ \
To generate a printable copy from the texinfo doc, run the following
commands:
.nf
.ft 3
.in +0.3i
./configure; make dvi; dvips fdutils.dvi
.fi
.in -0.3i
.ft R
\&\fR
.TP
* \ \
To generate a HTML copy, run:
.nf
.ft 3
.in +0.3i
./configure; make html
.fi
.in -0.3i
.ft R
\&\fRA pre-made HTML can be found at:
\&\fR\&\f(CW\(ifhttp://www.tux.org/pub/knaff/fdutils\(is\fR
.TP
* \ \
To generate an info copy (browsable using emacs' info mode), run:
.nf
.ft 3
.in +0.3i
./configure; make info
.fi
.in -0.3i
.ft R
\&\fR
.PP
The texinfo doc looks most pretty when printed or as HTML. Indeed, in
the info version certain examples are difficult to read due to the
quoting conventions used in info.
.SH Description
.PP
The diskd command has the following syntax:
.PP
.nf
.ft 3
.in +0.3i
\&\fR\&\f(CWdiskd [\fR\&\f(CW\-d \fIdrive\fR\&\f(CW] [\fR\&\f(CW\-i \fIinterval\fR\&\f(CW] [\fR\&\f(CW\-e \fIcommand\fR\&\f(CW]
.fi
.in -0.3i
.ft R
\&\fR
.PP
Diskd waits for a disk to be inserted into a given \fIdrive\fR, and then
either executes the \fIcommand\fR or exits. This program can be used to
automatically mount a disk as soon as it is inserted.
.PP
.SH Warning
.PP
This program works by switching the motor on for a very short
interval, and then seeking to track \-1. This might damage hardware in
the long run. Amigas, which also use these techniques, are known for
having problems with their disk drives no longer spinning up properly
after a few month of usage.
.PP
.SH Options
.TP
\&\fR\&\f(CW\-d\ \fIdrive\fR\&\f(CW\fR\
Selects the drive to observe for disk insertion. By default, drive 0
(\fR\&\f(CW/dev/fd0\fR) is observed.
.TP
\&\fR\&\f(CW\-i\ \fIinterval\fR\&\f(CW\fR\
Selects the polling interval. The interval is given in tenths of
seconds. Default is 10 (one second).
.TP
\&\fR\&\f(CW\-e\ \fIcommand\fR\&\f(CW\fR\
Gives the command to be executed when a disk is inserted. If no
command is given the program simply exits. Typically, the command
mounts the disk. It can be a shell scripts which probes for several
filesystems and disk geometries until it succeeds.
.PP
.SH Bugs
.IP
.TP
* \ \
Automatic unmounting cannot yet be handled. It is indeed not enough to
scan for disk removal, because when the disk is removed, it is already
too late: There might be some buffers needing flushing. However, the
\&\fR\&\f(CWfdmountd\fR program allows automatic unmounting by using the
\&\fR\&\f(CWSYNC\fR mount options, which switches off write buffering
(see section fdmount).
.TP
* \ \
The drive motor is running all the time, and on some computers, the
drive led flickers at each time the drive is polled.
.SH See Also
Fdutils' texinfo doc
|