OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / util-linux / draft / man8 / rdev.8
1 .\" Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be distributed under the GNU General Public License
3 .\" Changes from sct@dcs.ed.ac.uk added Sat Oct  9 09:54:00 1993.
4 .\"
5 .\" Japanese Version Copyright (c) 1997 Koso Fukuba
6 .\"         all rights reserved.
7 .\" Translated Mon Jan 27 12:00:00 JST 1997
8 .\"         by Koso Fukuba <koso@ga2.so-net.or.jp>
9 .\" Updated and Modified Mon Feb 26 19:23:38 JST 2001
10 .\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
11 .\" Updated Sat Jun  9 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
12 .\" Updated Tue May 10 JST 2005 by Kentaro Shirakata <argrath@ub32.org>
13 .\"
14 .TH RDEV 8 "20 November 1993" "Linux 0.99" "Linux Programmer's Manual"
15 .\"O .SH NAME
16 .SH 名前
17 .\"O rdev \- query/set image root device, RAM disk size, or video mode
18 rdev \- ルートデバイス・RAM ディスクサイズ・ビデオモードの問い合わせと設定
19 .\"O .SH SYNOPSIS
20 .SH 書式
21 .nf
22 .BR "rdev [ \-rvh ] [ \-o " offset " ] [ " image " [ " value " [ " offset " ] ] ]"
23 .BR "rdev [ \-Rrvh ] [ \-o " offset " ] [ " image " [ " value " [ " offset " ] ] ]"
24 .BR "ramsize [ \-o " offset " ] [ " image " [ " size " [ " offset " ] ] ]"
25 .BR "vidmode [ \-o " offset " ] [ " image " [ " mode " [ " offset " ] ] ]"
26 .BR "rootflags [ \-o " offset " ] [ " image " [ " flags " [ " offset " ] ] ]"
27 .fi
28 .\"O .SH DESCRIPTION
29 .SH 説明
30 .\"O With no arguments,
31 .\"O .B rdev
32 .\"O outputs an
33 .\"O .I /etc/mtab
34 .\"O line for the current root file system.
35 .B rdev
36 を引数なしで起動すると、現在のルートファイルシステムに対応する
37 .I /etc/mtab
38 のエントリを表示する。
39 .\"O With no arguments,
40 .\"O .BR ramsize ", " vidmode ", and " rootflags
41 .\"O print usage information.
42 .BR ramsize ", " vidmode ", " rootflags
43 を引数なしで起動すると、使用方法が表示される。
44
45 .\"O In a bootable image for the Linux kernel on i386, there are several pairs
46 .\"O of bytes which specify the root device, the video mode, and the size of
47 .\"O the RAM disk.  These pairs of bytes, by default, begin
48 .\"O at offset 504 (decimal) in the kernel image:
49 i386 の Linux カーネルのブート可能なイメージには、ルートデバイス・ビデオモード・
50 RAM ディスクサイズを指定するための数バイトの領域がある。
51 デフォルトでは、これらの領域は
52 カーネルイメージのオフセット 504 (10 進) から始まる。
53
54 .nf
55 .RS
56 .\"O  498 Root flags
57 .\"O (500 and 502 Reserved)
58 .\"O  504 RAM Disk Size
59 .\"O  506 VGA Mode
60 .\"O  508 Root Device
61 .\"O  (510 Boot Signature)
62  498 ルートフラグ
63 (500 と 502 は予約されている)
64  504 RAM ディスクサイズ
65  506 VGA モード
66  508 ルートデバイス
67 (510 ブートシグネチャ)
68 .RE
69 .fi
70
71 .\"O .B rdev
72 .\"O will change these values.
73 .B rdev
74 は、これらの値を変更する。
75
76 .\"O Typical values for the
77 .\"O .I image
78 .\"O parameter, which is a bootable Linux kernel image, might be:
79 ブート可能な Linux カーネルイメージ
80 .I image
81 を指定する場合の典型的な値は、次のようなものである:
82
83 .nf
84 .RS
85 /vmlinux
86 /vmunix
87 /boot/bzImage-2.4.0
88 /dev/fd0
89 /dev/fd1
90 .RE
91 .fi
92
93 .\"O When using the
94 .\"O .B rdev
95 .\"O command, the
96 .\"O .I root_device
97 .\"O parameter might be something like:
98 .B rdev
99 コマンドを使用する場合、
100 .I root_device
101 パラメータは以下のようなものである:
102
103 .nf
104 .RS
105 /dev/hda1
106 /dev/hdf13
107 /dev/sda2
108 /dev/sdc4
109 /dev/ida/c0d0p1
110 .RE
111 .fi
112
113 .\"O One may also specify the device by a comma-separated pair
114 .\"O of decimal integers
115 .\"O .IR major , minor .
116 あるいは、デバイスをコンマで区切られた十進数の組
117 .IR major , minor
118 でデバイスを指定することもできる。
119
120 .\"O For the
121 .\"O .B ramsize
122 .\"O command, the
123 .\"O .B size
124 .\"O parameter specifies the size of the RAM disk in kilobytes.
125 .B ramsize
126 コマンドでは、
127 .B size
128 パラメータに RAM ディスクサイズをキロバイト(KB) 単位で指定する。
129
130 .\"O For the
131 .\"O .B rootflags
132 .\"O command, the
133 .\"O .B flags
134 .\"O parameter contains extra information used when mounting root.
135 .B rootflags
136 コマンドでは、
137 .B flags
138 パラメータに、
139 ルートディスクをマウントするときに使用されるオプション情報を指定する。
140 .\"O Currently the only effect of these flags is to force the kernel to
141 .\"O mount the root filesystem in readonly mode if 
142 .\"O .B flags
143 .\"O is non-zero.
144 今のところこれらのフラグの効果はひとつだけで、
145 .B flags
146 がゼロでないと、カーネルはルートファイルシステムを
147 リードオンリーモードでマウントする、というだけである。
148
149 .\"O For the
150 .\"O .B vidmode
151 .\"O command, the
152 .\"O .B mode
153 .\"O parameter specifies the video mode:
154 .B vidmode
155 コマンドでは、
156 .B mode
157 パラメータに以下のビデオモードを指定する:
158
159 .nf
160 .RS
161 .\"O -3 = Prompt
162 .\"O -2 = Extended VGA
163 .\"O -1 = Normal VGA
164 .\"O  0 = as if "0" was pressed at the prompt
165 .\"O  1 = as if "1" was pressed at the prompt
166 .\"O  2 = as if "2" was pressed at the prompt
167 .\"O  n = as if "n" was pressed at the prompt
168 -3 = プロンプト
169 -2 = Extended VGA
170 -1 = Normal VGA
171  0 = プロンプトで "0" が入力されたのと同じ働きをする。
172  1 = プロンプトで "1" が入力されたのと同じ働きをする。
173  2 = プロンプトで "2" が入力されたのと同じ働きをする。
174  n = プロンプトで "n" が入力されたのと同じ働きをする。
175 .RE
176 .fi
177
178 .\"O If the
179 .\"O .I value
180 .\"O is not specified, the
181 .\"O .I image
182 .\"O will be examined to determine the current settings.
183 .I value
184 が指定されない場合、現在の設定を決めるために
185 .I image
186 が調べられる。
187 .\"O .SH OPTIONS
188 .SH オプション
189 .TP
190 .B \-r
191 .\"O Causes
192 .\"O .B rdev
193 .\"O to act like
194 .\"O .BR ramsize .
195 .B rdev
196
197 .B ramsize
198 と同じ動作をさせる。
199 .TP
200 .B \-R
201 .\"O Causes
202 .\"O .B rdev
203 .\"O to act like
204 .\"O .BR rootflags .
205 .B rdev
206
207 .B rootflags
208 と同じ動作をさせる。
209 .TP
210 .B \-v
211 .\"O Causes
212 .\"O .B rdev
213 .\"O to act like
214 .\"O .BR vidmode .
215 .B rdev
216
217 .B vidmode
218 と同じ動作をさせる。
219 .TP
220 .B \-h
221 .\"O Provides help.
222 ヘルプメッセージを出力する。
223 .\"O .SH BUGS
224 .SH バグ
225 .\"O The
226 .\"O .B rdev
227 .\"O utility, when used other than to find a name for the current root device,
228 .\"O is an ancient hack that works by patching a kernel image at a magic offset
229 .\"O with magic numbers. It does not work on architectures other than i386.
230 .B rdev
231 ユーティリティの、現在のルートデバイス名を表示する以外の機能は、
232 カーネルイメージの決め打ちのオフセットに決め打ちの数値を書き込むことによって
233 動作する、いにしえのハックである。
234 これは i386 以外のアーキテクチャでは動作しない。
235 .\"O Its use is strongly discouraged. Use a boot loader like SysLinux or LILO
236 .\"O instead.
237 これの使用は全く推奨できない。
238 SysLinux や LILO のようなブートローダを代わりに使うこと。
239 .\"O .SH HISTORY
240 .SH 歴史
241 .\"O At offset 502 there used to be the device number of the swap device
242 .\"O (in Linux 0.12), and "rdev -s" or "swapdev" would set this.
243 オフセット 502 は以前 (Linux 0.12 の頃) スワップデバイスの
244 デバイス番号として使われており、
245 "rdev -s" や "swapdev" でそれを設定できた。
246 .\"O However, since Linux 0.95 this constant is not used any longer,
247 .\"O and the swap device is specified using the
248 .\"O .BR swapon (2)
249 .\"O system call.
250 しかし、 Linux 0.95 からはこの定数は使われなくなり、
251 スワップデバイスは
252 .BR swapon (2)
253 システムコールで指定するようになった。
254
255 .\"O At offset 504 there used to be the size of the ramdisk in kilobytes.
256 .\"O One would specify a size, and this much was grabbed off the top of memory.
257 ここでオフセット 504 はラムディスクの容量(キロバイト単位)として使われていた。
258 これは容量を指定し、メモリの先頭から取られていた。
259 .\"O In Linux 1.1.39 it became also possible to set this value on the kernel
260 .\"O command line.
261 Linux 1.1.39 で、この値をカーネルコマンドラインからも設定できるようになった。
262 .\"O In Linux 1.3.48 the ramdisk setup was changed. Ramdisk memory is now
263 .\"O taken from the buffer cache, so that the ramdisk can grow dynamically.
264 Linux 1.3.48 で、ラムディスクの設定方法が変更された。
265 ラムディスクのメモリはバッファキャッシュから取られるようになり、
266 そのため、ラムディスクの容量を動的に増加させることができるようになった。
267 .\"O The interpretation of the ramdisk word was changed to a word of which
268 .\"O the high order bit is a prompt flag (1: prompt for ramdisk:
269 .\"O "VFS: Insert ramdisk floppy and press ENTER" - this is needed with a
270 .\"O two-floppy boot), the next bit a load flag (1: load ramdisk),
271 .\"O and the low order 11 bits give the starting block number of the
272 .\"O root filesystem image (so that one can have a single floppy boot).
273 ラムディスクワードの解釈も変更され、最上位ビットはプロンプトフラグ
274 (1: ラムディスクのためのプロンプト
275 "VFS: Insert ramdisk floppy and press ENTER" を表示する - これは
276 フロッピー 2 枚によるブートに必要である)、次のビットはロードフラグ
277 (1: ラムディスクに読み込む)、そして下位の 11 ビットは(フロッピー 1 枚による
278 ブートのための)ルートファイルシステムイメージの開始ブロック番号となった。
279 .\"O See also
280 .\"O .IR linux/Documentation/ramdisk.txt .
281 .I linux/Documentation/ramdisk.txt
282 も参照のこと。
283 .\"O .SH AUTHORS
284 .SH 著者
285 .nf
286 .\"O Originally by Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
287 .\"O Modified by Peter MacDonald (pmacdona@sanjuan.UVic.CA)
288 .\"O rootflags support added by Stephen Tweedie (sct@dcs.ed.ac.uk)
289 初版、Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
290 変更、Peter MacDonald (pmacdona@sanjuan.UVic.CA)
291 rootflags サポートの追加、Stephen Tweedie (sct@dcs.ed.ac.uk)
292 .fi