2 .\" Copyright (c) 1993 Michael Haardt (michael@cantor.informatik.rwth-aachen.de)
3 .\" and 1994,1995 Alain Knaff (Alain.Knaff@imag.fr)
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
7 .\" Modified, Sun Feb 26 15:00:02 1995, faith@cs.unc.edu
9 .TH fd 4 (date) "Linux man-pages (unreleased)"
11 fd \- floppy disk device
13 Floppy drives are block devices with major number 2.
17 (i.e., user root, group floppy) and have
18 either mode 0660 (access checking via group membership) or mode 0666
19 (everybody has access).
21 numbers encode the device type, drive number, and controller number.
22 For each device type (that is, combination of density and track count)
23 there is a base minor number.
24 To this base number, add the drive's
25 number on its controller and 128 if the drive is on the secondary
27 In the following device tables, \fIn\fP represents the
30 \fBWarning: if you use formats with more tracks
31 than supported by your drive, you may cause it mechanical damage.\fP
32 Trying once if more tracks than the usual 40/80 are supported should not
33 damage it, but no warranty is given for that.
34 If you are not sure, don't create device
35 entries for those formats, so as to prevent their usage.
37 Drive-independent device files which automatically detect the media
48 5.25 inch double-density device files:
52 Name Capacity Cyl. Sect. Heads Base
55 \fBfd\fP\fIn\fP\fBd360\fP 360 40 9 2 4
58 5.25 inch high-density device files:
62 Name Capacity Cyl. Sect. Heads Base
65 \fBfd\fP\fIn\fP\fBh360\fP 360 40 9 2 20
66 \fBfd\fP\fIn\fP\fBh410\fP 410 41 10 2 48
67 \fBfd\fP\fIn\fP\fBh420\fP 420 42 10 2 64
68 \fBfd\fP\fIn\fP\fBh720\fP 720 80 9 2 24
69 \fBfd\fP\fIn\fP\fBh880\fP 880 80 11 2 80
70 \fBfd\fP\fIn\fP\fBh1200\fP 1200 80 15 2 8
71 \fBfd\fP\fIn\fP\fBh1440\fP 1440 80 18 2 40
72 \fBfd\fP\fIn\fP\fBh1476\fP 1476 82 18 2 56
73 \fBfd\fP\fIn\fP\fBh1494\fP 1494 83 18 2 72
74 \fBfd\fP\fIn\fP\fBh1600\fP 1600 80 20 2 92
77 3.5 inch double-density device files:
81 Name Capacity Cyl. Sect. Heads Base
84 \fBfd\fP\fIn\fP\fBu360\fP 360 80 9 1 12
85 \fBfd\fP\fIn\fP\fBu720\fP 720 80 9 2 16
86 \fBfd\fP\fIn\fP\fBu800\fP 800 80 10 2 120
87 \fBfd\fP\fIn\fP\fBu1040\fP 1040 80 13 2 84
88 \fBfd\fP\fIn\fP\fBu1120\fP 1120 80 14 2 88
91 3.5 inch high-density device files:
95 Name Capacity Cyl. Sect. Heads Base
98 \fBfd\fP\fIn\fP\fBu360\fP 360 40 9 2 12
99 \fBfd\fP\fIn\fP\fBu720\fP 720 80 9 2 16
100 \fBfd\fP\fIn\fP\fBu820\fP 820 82 10 2 52
101 \fBfd\fP\fIn\fP\fBu830\fP 830 83 10 2 68
102 \fBfd\fP\fIn\fP\fBu1440\fP 1440 80 18 2 28
103 \fBfd\fP\fIn\fP\fBu1600\fP 1600 80 20 2 124
104 \fBfd\fP\fIn\fP\fBu1680\fP 1680 80 21 2 44
105 \fBfd\fP\fIn\fP\fBu1722\fP 1722 82 21 2 60
106 \fBfd\fP\fIn\fP\fBu1743\fP 1743 83 21 2 76
107 \fBfd\fP\fIn\fP\fBu1760\fP 1760 80 22 2 96
108 \fBfd\fP\fIn\fP\fBu1840\fP 1840 80 23 2 116
109 \fBfd\fP\fIn\fP\fBu1920\fP 1920 80 24 2 100
112 3.5 inch extra-density device files:
116 Name Capacity Cyl. Sect. Heads Base
119 \fBfd\fP\fIn\fP\fBu2880\fP 2880 80 36 2 32
120 \fBfd\fP\fIn\fP\fBCompaQ\fP 2880 80 36 2 36
121 \fBfd\fP\fIn\fP\fBu3200\fP 3200 80 40 2 104
122 \fBfd\fP\fIn\fP\fBu3520\fP 3520 80 44 2 108
123 \fBfd\fP\fIn\fP\fBu3840\fP 3840 80 48 2 112
126 \fBfd\fP special files access the floppy disk drives in raw mode.
129 calls are supported by \fBfd\fP devices:
132 clears the media information of a drive (geometry of disk in drive).
135 sets the media information of a drive.
136 The media information will be
137 lost when the media is changed.
140 sets the media information of a drive (geometry of disk in drive).
141 The media information will not be lost when the media is changed.
142 This will disable autodetection.
143 In order to reenable autodetection, you
144 have to issue an \fBFDCLRPRM\fP.
147 returns the type of a drive (name parameter).
148 For formats which work
149 in several drive types, \fBFDGETDRVTYP\fP returns a name which is
150 appropriate for the oldest drive type which supports this format.
153 invalidates the buffer cache for the given drive.
156 sets the error thresholds for reporting errors, aborting the operation,
157 recalibrating, resetting, and reading sector by sector.
160 gets the current error thresholds.
163 gets the internal name of the drive.
166 clears the write error statistics.
169 reads the write error statistics.
170 These include the total number of
171 write errors, the location and disk of the first write error, and the
172 location and disk of the last write error.
173 Disks are identified by a
174 generation number which is incremented at (almost) each disk change.
177 Switch the drive motor off for a few microseconds.
179 needed in order to access a disk whose sectors are too close together.
182 sets various drive parameters.
185 reads these parameters back.
188 gets the cached drive state (disk changed, write protected et al.)
191 polls the drive and return its state.
194 gets the floppy controller state.
197 resets the floppy controller under certain conditions.
200 sends a raw command to the floppy controller.
202 For more precise information, consult also the \fI<linux/fd.h>\fP and
203 \fI<linux/fdreg.h>\fP include files, as well as the
204 .BR floppycontrol (1)
209 The various formats permit reading and writing many types of disks.
210 However, if a floppy is formatted with an inter-sector gap that is too small,
211 performance may drop,
212 to the point of needing a few seconds to access an entire track.
213 To prevent this, use interleaved formats.
215 It is not possible to
216 read floppies which are formatted using GCR (group code recording),
217 which is used by Apple II and Macintosh computers (800k disks).
219 Reading floppies which are hard sectored (one hole per sector, with
220 the index hole being a little skewed) is not supported.
221 This used to be common with older 8-inch floppies.
223 .\" Alain Knaff (Alain.Knaff@imag.fr), David Niemi
224 .\" (niemidc@clark.net), Bill Broadhurst (bbroad@netcom.com).
227 .BR floppycontrol (1),