OSDN Git Service

Import translated manuals from JM CVS Repository.
[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