OSDN Git Service

3505bfba1692f94ca61dd01dcc2331f7c4f9cf37
[linuxjm/LDP_man-pages.git] / draft / man4 / fd.4
1 '\" t
2 .\" Copyright (c) 1993 Michael Haardt (michael@cantor.informatik.rwth-aachen.de)
3 .\" and 1994,1995 Alain Knaff (Alain.Knaff@imag.fr)
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" Modified, Sun Feb 26 15:00:02 1995, faith@cs.unc.edu
26 .\"
27 .\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi
28 .\"         all rights reserved.
29 .\" Translated Sun Jan 11 03:25:38 JST 1998
30 .\"         by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
31 .\"
32 .\" WORD:       floppy disk             フロッピーディスク
33 .\" WORD:       double density          倍密度
34 .\" WORD:       high density            高密度
35 .\" WORD:       extra density           拡張密度
36 .\" WORD:       interleaved format      インターリーブドフォーマット
37 .\" WORD:       media                   メディア
38 .\" WORD:       geometry                ジオメトリ
39 .\" WORD:       buffer cache            バッファキャッシュ
40 .\" WORD:       threshold               閾値
41 .\" WORD:       clear                   クリアー
42 .\"
43 .TH FD 4 2010-08-29 "Linux" "Linux Programmer's Manual"
44 .\"O .SH NAME
45 .\"O fd \- floppy disk device
46 .SH 名前
47 fd \- フロッピーディスク(floppy disk)デバイス
48 .\"O .SH CONFIGURATION
49 .SH 設定
50 .\"O Floppy drives are block devices with major number 2.
51 .\"O Typically they
52 .\"O are owned by
53 .\"O .I root.floppy
54 .\"O (i.e., user root, group floppy) and have
55 .\"O either mode 0660 (access checking via group membership) or mode 0666
56 .\"O (everybody has access).
57 .\"O The minor
58 .\"O numbers encode the device type, drive number, and controller number.
59 .\"O For each device type (that is, combination of density and track count)
60 .\"O there is a base minor number.
61 .\"O To this base number, add the drive's
62 .\"O number on its controller and 128 if the drive is on the secondary
63 .\"O controller.
64 .\"O In the following device tables, \fIn\fP represents the
65 .\"O drive number.
66 フロッピードライブはメジャーナンバー 2 を持つブロックデバイスである。
67 一般的には、このデバイスのオーナーは
68 .I root.floppy
69 (オーナー root、グループ floppy) で、
70 モード 0660 (グループの構成員であることによってアクセスチェックが行われる)、
71 または、モード 0666 (誰でもアクセスできる) である。
72 マイナーナンバーはデバイスのタイプ、ドライブの番号、
73 コントローラーの番号を符号化したものである。それぞれのデバイスタイプ
74 (これは、密度 (density) とトラックカウント (track count) の組合せである)
75 は、ベースとなるマイナーナンバーを持っている。このベースナンバーにその
76 コントローラー上のドライブナンバーを加える。もし、そのドライブが 2 番目の
77 コントローラーに接続されているなら、さらに 128 を加える。次のデバイス
78 テーブルでは、 \fIn\fP はドライブ番号を表す。
79 .PP
80 .\"O \fBWarning: If you use formats with more tracks
81 .\"O than supported by your drive, you may cause it mechanical damage.\fP
82 .\"O Trying once if more tracks than the usual 40/80 are supported should not
83 .\"O damage it, but no warranty is given for that.
84 .\"O If you are not sure, don't create device
85 .\"O entries for those formats, so as to prevent their usage.
86 \fB警告: ドライブがサポートしているよりも多くのトラックを持つように
87 フォーマットした場合、ドライブに機械的なダメージを与えることになる
88 かもしれない。\fP
89 通常の 40/80 よりも多くのトラックがサポートされているかどうかを
90 一度試すだけではドライブにダメージを与えることはないはずだが、
91 ダメージを与えないという保証はない。
92 確信がない場合は、そのような使い方が行われないように、
93 そうしたフォーマットのドライブ・エントリを作成しないこと。
94 .PP
95 [訳注]
96 以下の表に用いられる用語は表の整形の関係から
97 (一行にうまく納める事ができなかったため)
98 から原文のままとなっています。日本語との対応は以下の通りです。
99 .TS
100 l l.
101 Name    名前
102 Capac.  容量
103 Cyl.    シリンダ数
104 Sect.   セクター数
105 Heads.  ヘッダ数
106 Base minor #    ベースマイナーナンバー
107 .TE
108
109 .\"O Drive-independent device files which automatically detect the media
110 .\"O format and capacity:
111 メディアのフォーマットと容量を自動的に検出する
112 ドライブ非依存のデバイスファイル:
113 .TS
114 l l.
115 Name    Base minor #
116 _
117 \fBfd\fP\fIn\fP 0
118 .TE
119 .PP
120 .\"O 5.25 inch double density device files:
121 5.25 インチ倍密度(double density)デバイスファイル:
122 .TS
123 lw(1i) l l l l l.
124 Name    Capac.  Cyl.    Sect.   Heads   Base minor #
125 _
126 \fBfd\fP\fIn\fP\fBd360\fP       360K    40      9       2       4
127 .TE
128 .PP
129 .\"O 5.25 inch high density device files:
130 5.25 インチ高密度(high density)デバイスファイル:
131 .TS
132 lw(1i) l l l l l.
133 Name    Capac.  Cyl.    Sect.   Heads   Base minor #
134 _
135 \fBfd\fP\fIn\fP\fBh360\fP       360K    40      9       2       20
136 \fBfd\fP\fIn\fP\fBh410\fP       410K    41      10      2       48
137 \fBfd\fP\fIn\fP\fBh420\fP       420K    42      10      2       64
138 \fBfd\fP\fIn\fP\fBh720\fP       720K    80      9       2       24
139 \fBfd\fP\fIn\fP\fBh880\fP       880K    80      11      2       80
140 \fBfd\fP\fIn\fP\fBh1200\fP      1200K   80      15      2       8
141 \fBfd\fP\fIn\fP\fBh1440\fP      1440K   80      18      2       40
142 \fBfd\fP\fIn\fP\fBh1476\fP      1476K   82      18      2       56
143 \fBfd\fP\fIn\fP\fBh1494\fP      1494K   83      18      2       72
144 \fBfd\fP\fIn\fP\fBh1600\fP      1600K   80      20      2       92
145 .TE
146 .PP
147 .\"O 3.5 inch double density device files:
148 3.5 インチ倍密度(double density)デバイスファイル:
149 .TS
150 lw(1i) l l l l l.
151 Name    Capac.  Cyl.    Sect.   Heads   Base minor #
152 _
153 \fBfd\fP\fIn\fP\fBD360\fP       360K    80      9       1       12
154 \fBfd\fP\fIn\fP\fBD720\fP       720K    80      9       2       16
155 \fBfd\fP\fIn\fP\fBD800\fP       800K    80      10      2       120
156 \fBfd\fP\fIn\fP\fBD1040\fP      1040K   80      13      2       84
157 \fBfd\fP\fIn\fP\fBD1120\fP      1120K   80      14      2       88
158 .TE
159 .PP
160 .\"O 3.5 inch high density device files:
161 3.5 インチ高密度(high density)デバイスファイル:
162 .TS
163 lw(1i) l l l l l.
164 Name    Capac.  Cyl.    Sect.   Heads   Base minor #
165 _
166 \fBfd\fP\fIn\fP\fBH360\fP       360K    40      9       2       12
167 \fBfd\fP\fIn\fP\fBH720\fP       720K    80      9       2       16
168 \fBfd\fP\fIn\fP\fBH820\fP       820K    82      10      2       52
169 \fBfd\fP\fIn\fP\fBH830\fP       830K    83      10      2       68
170 \fBfd\fP\fIn\fP\fBH1440\fP      1440K   80      18      2       28
171 \fBfd\fP\fIn\fP\fBH1600\fP      1600K   80      20      2       124
172 \fBfd\fP\fIn\fP\fBH1680\fP      1680K   80      21      2       44
173 \fBfd\fP\fIn\fP\fBH1722\fP      1722K   82      21      2       60
174 \fBfd\fP\fIn\fP\fBH1743\fP      1743K   83      21      2       76
175 \fBfd\fP\fIn\fP\fBH1760\fP      1760K   80      22      2       96
176 \fBfd\fP\fIn\fP\fBH1840\fP      1840K   80      23      2       116
177 \fBfd\fP\fIn\fP\fBH1920\fP      1920K   80      24      2       100
178 .TE
179 .PP
180 .\"O 3.5 inch extra density device files:
181 3.5 インチ拡張密度(extra density)デバイスファイル:
182 .TS
183 lw(1i) l l l l l.
184 Name    Capac.  Cyl.    Sect.   Heads   Base minor #
185 _
186 \fBfd\fP\fIn\fP\fBE2880\fP      2880K   80      36      2       32
187 \fBfd\fP\fIn\fP\fBCompaQ\fP     2880K   80      36      2       36
188 \fBfd\fP\fIn\fP\fBE3200\fP      3200K   80      40      2       104
189 \fBfd\fP\fIn\fP\fBE3520\fP      3520K   80      44      2       108
190 \fBfd\fP\fIn\fP\fBE3840\fP      3840K   80      48      2       112
191 .TE
192 .\"O .SH DESCRIPTION
193 .SH 説明
194 .\"O \fBfd\fP special files access the floppy disk drives in raw mode.
195 .\"O The following
196 .\"O .BR ioctl (2)
197 .\"O calls are supported by \fBfd\fP devices:
198 \fBfd\fP スペシャルファイルはフロッピーディスクドライブにローモード
199 (raw mode)で
200 アクセスする。\fBfd\fP では、次の
201 .BR ioctl (2)
202 コールがサポートされている。
203 .\"O .IP \fBFDCLRPRM\fP
204 .\"O clears the media information of a drive (geometry of disk in drive).
205 .IP \fBFDCLRPRM\fP
206 ドライブのメディア情報(ドライブ内のディスクのジオメトリ情報)をクリアす
207 る。
208 .\"O .IP \fBFDSETPRM\fP
209 .\"O sets the media information of a drive.
210 .\"O The media information will be
211 .\"O lost when the media is changed.
212 .IP \fBFDSETPRM\fP
213 ドライブのメディア情報をセットする。メディア情報はメディアが交換された
214 時、失われる。
215 .\"O .IP \fBFDDEFPRM\fP
216 .\"O sets the media information of a drive (geometry of disk in drive).
217 .\"O The media information will not be lost when the media is changed.
218 .\"O This will disable autodetection.
219 .\"O In order to reenable autodetection, you
220 .\"O have to issue an \fBFDCLRPRM\fP.
221 .IP \fBFDDEFPRM\fP
222 ドライブのメディア情報(ドライブ内のディスクのジオメトリ情報)をセットす
223 る。メディア情報はメディアが交換された時でも失われない。これは(メディ
224 ア情報の)自動検出を無効にする。自動検出を再び有効にするために、
225 \fBFDCLRPRM\fP を発行しなければならない。
226 .\"O .IP \fBFDGETDRVTYP\fP
227 .\"O returns the type of a drive (name parameter).
228 .\"O For formats which work
229 .\"O in several drive types, \fBFDGETDRVTYP\fP returns a name which is
230 .\"O appropriate for the oldest drive type which supports this format.
231 .IP \fBFDGETDRVTYP\fP
232 ドライブのタイプ(名前引数)を返す。それぞれのドライブタイプに適合するよ
233 うにフォーマットを行うため、\fBFDGETDRVTYP\fP はフォーマットをサポート
234 する最も古いドライブタイプのために適切な名前を返す。
235 .\"O .IP \fBFDFLUSH\fP
236 .\"O invalidates the buffer cache for the given drive.
237 .IP \fBFDFLUSH\fP
238 与えられたドライブのバッファキャッシュを無効にする。
239 .\"O .IP \fBFDSETMAXERRS\fP
240 .\"O sets the error thresholds for reporting errors, aborting the operation,
241 .\"O recalibrating, resetting, and reading sector by sector.
242 .IP \fBFDSETMAXERRS\fP
243 エラーの報告、操作の中止、再試行、リセット、セクター毎の読み込みのため
244 のエラー閾値をセットする。
245 .\"O .IP \fBFDSETMAXERRS\fP
246 .\"O gets the current error thresholds.
247 .IP \fBFDGETMAXERRS\fP
248 現在のエラー閾値を得る。
249 .\"O .IP \fBFDGETDRVTYP\fP
250 .\"O gets the internal name of the drive.
251 .IP \fBFDGETDRVTYP\fP
252 ドライブの内部名を得る。
253 .\"O .IP \fBFDWERRORCLR\fP
254 .\"O clears the write error statistics.
255 .IP \fBFDWERRORCLR\fP
256 書き込みエラーの統計をクリアーする。
257 .\"O .IP \fBFDWERRORGET\fP
258 .\"O reads the write error statistics.
259 .\"O These include the total number of
260 .\"O write errors, the location and disk of the first write error, and the
261 .\"O location and disk of the last write error.
262 .\"O Disks are identified by a
263 .\"O generation number which is incremented at (almost) each disk change.
264 .IP \fBFDWERRORGET\fP
265 書き込みエラーの統計を読む。統計は、書き込みエラーの合計、最初の書き込
266 みエラーはどのディスクのどこで起こったか、そして、最後の書き込みエラー
267 がどのディスクのどこで起こったかという情報を含んでいる。ディスクはディ
268 スクの交換ごとに増えるジェネレーション番号によって識別される。
269 .\"O .IP \fBFDTWADDLE\fP
270 .\"O Switch the drive motor off for a few microseconds.
271 .\"O This might be
272 .\"O needed in order to access a disk whose sectors are too close together.
273 .IP \fBFDTWADDLE\fP
274 数ミリ秒の間ドライブのモーターのスイッチを切る。これはディスクのセクター
275 同士が接近しすぎているディスクのアクセスのために必要であろう。
276 .\"O .IP \fBFDSETDRVPRM\fP
277 .\"O sets various drive parameters.
278 .IP \fBFDSETDRVPRM\fP
279 ドライブの様々なパラメータをセットする。
280 .\"O .IP \fBFDGETDRVPRM\fP
281 .\"O reads these parameters back.
282 .IP \fBFDGETDRVPRM\fP
283 (\fBFDSETDRVPRM\fP を使ってセットした)パラメータを読みだす。
284 .\"O .IP \fBFDGETDRVSTAT\fP
285 .\"O gets the cached drive state (disk changed, write protected et al.)
286 .IP \fBFDGETDRVSTAT\fP
287 キャッシュされているドライブの状態(ディスクの交換、ライトプロテクトな
288 ど)を得る。
289 .\"O .IP \fBFDPOLLDRVSTAT\fP
290 .\"O polls the drive and return its state.
291 .IP \fBFDPOLLDRVSTAT\fP
292 ドライブをポーリングして、その状態を返す。
293 .\"O .IP \fBFDGETFDCSTAT\fP
294 .\"O gets the floppy controller state.
295 .IP \fBFDGETFDCSTAT\fP
296 フロッピーコントローラーの状態を得る。
297 .\"O .IP \fBFDRESET\fP
298 .\"O resets the floppy controller under certain conditions.
299 .IP \fBFDRESET\fP
300 フロッピーコントローラーを信頼できる状態にリセットする。
301 .\"O .IP \fBFDRAWCMD\fP
302 .\"O sends a raw command to the floppy controller.
303 .IP \fBFDRAWCMD\fP
304 フロッピーコントローラーに低レベルのコマンド(raw command)を送る。
305 .PP
306 .\"O For more precise information, consult also the \fI<linux/fd.h>\fP and
307 .\"O \fI<linux/fdreg.h>\fP include files, as well as the
308 .\"O .BR floppycontrol (1)
309 .\"O manual page.
310 より正確な情報のためには、マニュアルページ
311 .BR floppycontrol (1)
312 だけでなく、インクルードファイル \fI<linux/fd.h>\fP と
313 \fI<linux/fdarg.h>\fP も参照のこと。
314 .\"O .SH FILES
315 .SH ファイル
316 /dev/fd*
317 .\"O .SH NOTES
318 .SH 注意
319 .\"O The various formats permit reading and writing many types of disks.
320 .\"O However, if a floppy is formatted with an inter-sector gap that is too small,
321 .\"O performance may drop,
322 .\"O to the point of needing a few seconds to access an entire track.
323 .\"O To prevent this, use interleaved formats.
324 様々なディスクのタイプで様々な種類のフォーマットの読み書きが許されている。
325 しかし、小さすぎるセクター間ギャップでフォーマットされたフロッピーでは、
326 トラック全体のアクセスに数秒必要になるため、性能が低下することだろう。
327 これを防ぐためには、インターリーブド・フォーマット
328 (interleaved format) を用いればよい。
329
330 .\"O It is not possible to
331 .\"O read floppies which are formatted using GCR (group code recording),
332 .\"O which is used by Apple II and Macintosh computers (800k disks).
333 Apple II や Macintosh コンピュータで使用されている、
334 GCR (group code recording) を使ってフォーマットされたフロッピー
335 (800k ディスク) を読むことはできない。
336
337 .\"O Reading floppies which are hard sectored (one hole per sector, with
338 .\"O the index hole being a little skewed) is not supported.
339 .\"O This used to be common with older 8-inch floppies.
340 ハードセクター型のフロッピーの読み込みはサポートされていない
341 (ハードセクター型のフロッピーでは、セクター毎にホール (hole) が一つあり、
342 少しずれた位置にインデックスホールが存在する)。
343 これは、昔の 8 インチフロッピーで一般的に使われていた方式である。
344 .\"O .\" .SH AUTHORS
345 .\" .SH 著者
346 .\" Alain Knaff (Alain.Knaff@imag.fr), David Niemi
347 .\" (niemidc@clark.net), Bill Broadhurst (bbroad@netcom.com).
348 .\"O .SH "SEE ALSO"
349 .SH 関連項目
350 .BR chown (1),
351 .BR floppycontrol (1),
352 .BR getfdprm (1),
353 .BR mknod (1),
354 .BR superformat (1),
355 .BR mount (8),
356 .BR setfdprm (8)
357 .\" .SH 翻訳者
358 .\" 石川 睦 <ishikawa@linux.or.jp>