Table of Contentsdiskd - disk daemon; wait for disk to be inserted diskd [-d drive] [-i interval] [-e command] Diskd waits for a disk to be inserted into a given drive, and then either executes the command or exits. This program can be used to automatically mount a disk as soon as it is inserted. 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. - -d drive
- Selects the drive to observe for disk insertion. By default, drive 0 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 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.
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 computers, the drive led flickers at each time the drive is polled.
/dev/fd* - Floppy devices Alain Knaff, Alain.Knaff@inrialpes.fr superformat(1), getfdprm(1), floppycontrol(1), fdrawcmd(1)
Table of Contents
www.fiveanddime.net