3 .\" Japanese Version Copyright 1998 by MATSUMOTO Shoji. All Rights Reserved.
4 .\" Translated Fri Mar 13 02:58:01 JST 1998 by MATSUMOTO Shoji.
5 .\" Updated Sat 23 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
6 .\" Updated Tue 16 Nov 1999 by NAKANO Takeo
7 .\" Updated & Modified Fri Aug 17 10:17:07 JST 2001
8 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
9 .\" Updated Tue 3 Oct 2002 by NAKANO Takeo
10 .\" Updated & Modified Sat Apr 17 11:53:16 JST 2004
11 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
12 .\" Updated & Modified Sat Apr 30 06:46:50 JST 2005 by Yuichi SATO
14 .\"WORD: bad blocks 不良ブロック
16 .TH BADBLOCKS 8 "May 2006" "E2fsprogs version 1.39"
18 .\"O badblocks \- search a device for bad blocks
20 badblocks \- デバイス上の不良ブロックを探す
60 .\"O is used to search for bad blocks on a device (usually a disk partition).
62 はデバイス (通常はディスクパーティション) 上の
65 .\"O is the special file corresponding to the device (e.g
68 はデバイスに対応するスペシャルファイルである (例:
71 .\"O is the last block to be checked; if it is not specified, the last block
72 .\"O on the device is used as a default.
75 指定されない場合、デフォルトではデバイスの最終ブロックが使われる。
77 .\"O is an optional parameter specifying the starting block number
78 .\"O for the test, which allows the testing to start in the middle of the
79 .\"O disk. If it is not specified the first block on the disk is used as a default.
81 は、テストを開始するブロックを指定するパラメータである (省略可能)。
82 これを用いると、ディスクの途中からテストを開始できる。
83 指定されない場合、デフォルトではディスクの開始ブロックが使われる。
85 .\"O .B Important note:
88 .\"O is going to be fed to the
92 .\"O programs, it is important that the block size is properly specified,
93 .\"O since the block numbers which are generated are very dependent on the
94 .\"O block size in use by the filesystem.
102 ブロックサイズを正しく指定することが大切である。
103 生成されたブロック番号は、ファイルシステムにおいて、
104 どのようなブロックサイズを用いるかに大きく依存するからである。
105 .\"O For this reason, it is strongly recommended that
110 .\"O directly, but rather use the
119 を直接ユーザが利用することはできるだけ避けるほうがよい。
126 オプションを用いるようにすることを強く勧める。
131 .\"O Specify the size of blocks in bytes. The default is 1024.
135 .BI \-c " number of blocks"
136 .\"O is the number of blocks which are tested at a time. The default is 64.
137 ブロックをまとめて何個ずつテストするかを指定する。
141 .\"O Normally, badblocks will refuse to do a read/write or a non-destructive
142 .\"O test on a device which is mounted, since either can cause the system to
143 .\"O potentially crash and/or damage the filesystem even if it is mounted
144 .\"O read-only. This can be overridden using the
146 .\"O flag, but should almost never be used --- if you think you're smarter
149 .\"O program, you almost certainly aren't. The only time when this option
150 .\"O might be safe to use is if the /etc/mtab file is incorrect, and the device
151 .\"O really isn't mounted.
152 通常 badblocks は、マウントされているデバイスに対しては、
153 読み出し/書き込みテストや非破壊テストを行わない。
154 このいずれもシステムをクラッシュさせたり、
155 (たとえリードオンリーでマウントされていても)
156 ファイルシステムを壊す可能性があるからである。
164 このオプションが唯一安全なのは、/etc/mtab が間違っていて、
165 デバイスが実際にはマウントされていない場合だけである。
167 .BI \-i " input_file"
168 .\"O Read a list of already existing known bad blocks.
170 .\"O will skip testing these blocks since they are known to be bad. If
172 .\"O is specified as "-", the list will be read from the standard input.
173 .\"O Blocks listed in this list will be omitted from the list of
175 .\"O bad blocks produced on the standard output or in the output file.
177 不良ブロックであることが分かっているため、
181 が "-" と指定された場合、リストを標準入力から読み込む。
184 \fI新たに見つかった\fP不良ブロックのリストからは除かれる。
188 .\"O .BR dumpe2fs (8)
189 .\"O can be used to retrieve the list of blocks currently marked bad on
190 .\"O an existing filesystem, in a format suitable for use with this option.
195 既存のファイルシステム上で不良ブロックとして
197 このオプションで使用するのに適した形式で取り出すことができる。
199 .BI -o " output_file"
200 .\"O Write the list of bad blocks to the specified file. Without this option,
202 .\"O displays the list on its standard output. The format of this file is suitable
209 指定されたファイルに不良ブロックのリストを書き出す。
212 は標準出力にリストを表示する。このファイルのフォーマットは、
220 .BI \-p " num_passes"
221 .\"O Repeat scanning the disk until there are no new blocks discovered in
222 .\"O num_passes consecutive scans of the disk.
223 .\"O Default is 0, meaning
225 .\"O will exit after the first pass.
226 新たな不良ブロックが見つからなくなるまで、
227 num_passes 回連続でディスクのスキャンを繰り返す。
232 .BI \-t " test_pattern"
233 .\"O Specify a test pattern to be read (and written) to disk blocks. The
235 .\"O may either be a numeric value between 0 and ULONG_MAX-1 inclusive, or the word
236 .\"O "random", which specifies that the block should be filled with a random
238 ディスクブロックから読み出す (ディスクブロックに書き込む)
241 は 0 以上 ULONG_MAX-1 以下の数値でも文字列 "random" でもよい。
242 "random" はブロックをランダムなビットパターンで埋めることを表す。
243 .\"O For read/write (\fB-w\fR) and non-destructive (\fB-n\fR) modes,
244 .\"O one or more test patterns may be specified by specifying the
246 .\"O option for each test pattern desired. For
247 .\"O read-only mode only a single pattern may be specified and it may not be
248 .\"O "random". Read-only testing with a pattern assumes that the
249 .\"O specified pattern has previously been written to the disk - if not, large
250 .\"O numbers of blocks will fail verification.
251 読み出し/書き込み (\fB-w\fR) モードと非破壊 (\fB-n\fR) モードでは、
254 を指定することで、複数のテストパターンを指定することができる。
255 読み出しだけのモードでは 1 つのパターンしか指定することができず、
257 1 つのパターンを指定した読み出しだけのテストでは、
258 指定されたパターンが前もってディスクに書き込まれていると仮定する。
259 指定されたパターンが書き込まれていない場合は、
261 .\"O If multiple patterns
262 .\"O are specified then all blocks will be tested with one pattern
263 .\"O before proceeding to the next pattern.
265 (1 つのブロックに対して) 1 つのパターンをテストした後に
270 .\"O Use non-destructive read-write mode. By default only a non-destructive
271 .\"O read-only test is done. This option must not be combined with the
273 .\"O option, as they are mutually exclusive.
275 デフォルトでは、非破壊読み出しテストだけが行われる。
278 オプションは一方しか指定できないので、同時に指定してはならない。
281 .\"O Show the progress of the scan by writing out the block numbers as they
283 スキャンの進行状況を表示する。ブロックがチェックされるごとに
291 .\"O Use write-mode test. With this option,
293 .\"O scans for bad blocks by writing some patterns (0xaa, 0x55, 0xff, 0x00) on
294 .\"O every block of the device, reading every block and comparing the contents.
295 .\"O This option may not be combined with the
297 .\"O option, as they are mutually exclusive.
298 書き込みモードでテストする。このオプションを指定すると、
300 はデバイスの各ブロックに、あるパターン (0xaa, 0x55, 0xff, 0x00) を書き込み、
301 またそれを読み出して比べることにより、不良ブロックを探索する。
304 オプションと組み合わせて使うことはできない。
305 この 2 つのオプションはどちらか一方しか指定できない。
310 .\"O option on a device containing an existing file system.
311 .\"O This option erases data! If you want to do write-mode testing on
312 .\"O an existing file system, use the
314 .\"O option instead. It is slower, but it will preserve your data.
315 ファイルシステムが存在するデバイスに対して
319 既存のファイルシステムに書き込みモードテストをする場合は、
324 オプションでのテストは遅いが、データは保存される。
328 .\"O was written by Remy Card <Remy.Card@linux.org>. Current maintainer is
329 .\"O Theodore Ts'o <tytso@alum.mit.edu>. Non-destructive read/write test
330 .\"O implemented by David Beattie <dbeattie@softhome.net>.
332 は Remy Card <Remy.Card@linux.org> によって作成された。
333 現在のメンテナは Theodore Ts'o <tytso@alum.mit.edu> である。
335 David Beattie <dbeattie@softhome.net> が実装した。
336 .\"O .SH AVAILABILITY
339 .\"O is part of the e2fsprogs package and is available from
340 .\"O http://e2fsprogs.sourceforge.net.
342 は e2fsprogs パッケージの一部であり、
343 http://e2fsprogs.sourceforge.net で入手できる。