File: diskd.1

package info (click to toggle)
fdutils 5.4-20040228-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,024 kB
  • ctags: 674
  • sloc: ansic: 6,246; sh: 3,080; makefile: 296; sed: 4
file content (79 lines) | stat: -rw-r--r-- 2,312 bytes parent folder | download
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
.TH diskd 1 "19Jun04" fdutils-5.4
.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 Description
.iX "p diskd"
.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
.lp
 
\&\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 Note
This manpage has been automatically generated from fdutils's texinfo
documentation.  Some information may be lost during this process.
.SH See Also
.IR /usr/share/doc/fdutils/Fdutils.html ,
Fdutils' texinfo doc