diskd
Hurricane Electric Internet Services
NAME
diskd - disk daemon; wait for disk to be inserted
SYNOPSIS
diskd [-d drive] [-i interval] [-e command]
DESCRIPTION
Diskd waits for a disk to be inserted into a given drive,
and then either executes the command or exits. This pro-
gram can be used to automatically mount a disk as soon as
it is inserted.
WARNING
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. Amiga disk drives are
known to have difficulties to start up after a while.
(Amigas also use this technique to automatically mount
disks as soon as they are inserted.
OPTIONS
-d drive
Selects the drive to observe for disk insertion. By
default, drive 0 (/dev/fd0) is observed.
-i interval
Selects the polling interval. The interval is given
in tenths of seconds. Default is 10 (one second).
-e command
Gives the command to be executed when a disk is in-
serted. 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.
BUGS
Automatic unmounting cannot yet be handled. It is indeed
not enough to scan for disk removal, because that would be
too late: There might be some buffers needing flushing.
The drive motor is running all the time, and on some com-
puters, the drive led flickers at each time the drive is
polled.
FILES
/dev/fd* - Floppy devices
AUTHOR
Alain Knaff, Alain.Knaff@inrialpes.fr
SEE ALSO
superformat(1), getfdprm(1), floppycontrol(1), fdrawcmd(1)
Hurricane Electric Internet Services
Copyright (C) 1998
Hurricane Electric.
All Rights Reserved.