Debian Codegraph @

upstream/debian-unstable/man1/diskd.1

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