File: fdflush.8

package info (click to toggle)
fdflush 1.0.1.3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 36 kB
  • ctags: 7
  • sloc: makefile: 50; ansic: 38
file content (44 lines) | stat: -rw-r--r-- 1,479 bytes parent folder | download | duplicates (3)
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
.\" Copyright (C) 1995 Bruce Perens
.\" This is free software under the GNU General Public License.
.TH FDFLUSH 8 "Debian Utilities" "Debian"
.SH NAME
fdflush \- force floppy disk drive to detect disk change
.SH SYNOPSIS
.B fdflush
[device]
.SH DESCRIPTION
.B Fdflush
is a band-aid for a common PC hardware problem. Many PC floppy disk drives
can't detect when the disk has been changed. The symptom of this problem is
that when a disk is changed, the drive will continue to read buffered data
from the previous disk rather than new data from the disk presently in the
drive. Running
.I fdflush
makes the system believe the disk-change switch has been actuated, and the
system discards the buffered blocks in response to this information.
If you have one of these slightly-broken disk drives, you'll have to run
.I fdflush
every time you change a disk.
.PP
The kernel uses two different ioctl commands to flush buffers. One's
generic (BLKFLSBUF), one's floppy-specific (FDFLUSH).
.I fdflush
calls both, and only reports an error if noth fail.
.SH OPTIONS
.TP
.I device
The name of the floppy disk device, in the form
.I /dev/fd1 .
The default is
.I /dev/fd0 .
.SH "EXIT CODES"
Zero: success, one: ioctl error, two: inability to open the
floppy (or other) device, three: usage error.
.SH BUGS
They're in your hardware.
Try swapping in another floppy drive to see if this problem goes away.
.SH FILES
/dev/fd\fIN\fR	floppy disk device.
.SH AUTHOR
Bruce Perens
.I Bruce@Pixar.com .