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.
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>
14 .TH RDEV 8 "20 November 1993" "Linux 0.99" "Linux Programmer's Manual"
17 .\"O rdev \- query/set image root device, RAM disk size, or video mode
18 rdev \- ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¡¦RAM ¥Ç¥£¥¹¥¯¥µ¥¤¥º¡¦¥Ó¥Ç¥ª¥â¡¼¥É¤ÎÌ䤤¹ç¤ï¤»¤ÈÀßÄê
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 " ] ] ]"
30 .\"O With no arguments,
34 .\"O line for the current root file system.
36 ¤ò°ú¿ô¤Ê¤·¤Çµ¯Æ°¤¹¤ë¤È¡¢¸½ºß¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÂбþ¤¹¤ë
38 ¤Î¥¨¥ó¥È¥ê¤òɽ¼¨¤¹¤ë¡£
39 .\"O With no arguments,
40 .\"O .BR ramsize ", " vidmode ", and " rootflags
41 .\"O print usage information.
42 .BR ramsize ", " vidmode ", " rootflags
43 ¤ò°ú¿ô¤Ê¤·¤Çµ¯Æ°¤¹¤ë¤È¡¢»ÈÍÑÊýË¡¤¬É½¼¨¤µ¤ì¤ë¡£
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 ¿Ê) ¤«¤é»Ï¤Þ¤ë¡£
57 .\"O (500 and 502 Reserved)
58 .\"O 504 RAM Disk Size
61 .\"O (510 Boot Signature)
63 (500 ¤È 502 ¤ÏͽÌ󤵤ì¤Æ¤¤¤ë)
64 504 RAM ¥Ç¥£¥¹¥¯¥µ¥¤¥º
67 (510 ¥Ö¡¼¥È¥·¥°¥Í¥Á¥ã)
72 .\"O will change these values.
74 ¤Ï¡¢¤³¤ì¤é¤ÎÃͤòÊѹ¹¤¹¤ë¡£
76 .\"O Typical values for the
78 .\"O parameter, which is a bootable Linux kernel image, might be:
79 ¥Ö¡¼¥È²Äǽ¤Ê Linux ¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸
81 ¤ò»ØÄꤹ¤ë¾ì¹ç¤Îŵ·¿Åª¤ÊÃͤϡ¢¼¡¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë:
97 .\"O parameter might be something like:
99 ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢
101 ¥Ñ¥é¥á¡¼¥¿¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë:
113 .\"O One may also specify the device by a comma-separated pair
114 .\"O of decimal integers
115 .\"O .IR major , minor .
116 ¤¢¤ë¤¤¤Ï¡¢¥Ç¥Ð¥¤¥¹¤ò¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿½½¿Ê¿ô¤ÎÁÈ
118 ¤Ç¥Ç¥Ð¥¤¥¹¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë¡£
124 .\"O parameter specifies the size of the RAM disk in kilobytes.
128 ¥Ñ¥é¥á¡¼¥¿¤Ë RAM ¥Ç¥£¥¹¥¯¥µ¥¤¥º¤ò¥¥í¥Ð¥¤¥È(KB) ñ°Ì¤Ç»ØÄꤹ¤ë¡£
134 .\"O parameter contains extra information used when mounting root.
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
144 º£¤Î¤È¤³¤í¤³¤ì¤é¤Î¥Õ¥é¥°¤Î¸ú²Ì¤Ï¤Ò¤È¤Ä¤À¤±¤Ç¡¢
146 ¤¬¥¼¥í¤Ç¤Ê¤¤¤È¡¢¥«¡¼¥Í¥ë¤Ï¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
147 ¥ê¡¼¥É¥ª¥ó¥ê¡¼¥â¡¼¥É¤Ç¥Þ¥¦¥ó¥È¤¹¤ë¡¢¤È¤¤¤¦¤À¤±¤Ç¤¢¤ë¡£
153 .\"O parameter specifies the video mode:
157 ¥Ñ¥é¥á¡¼¥¿¤Ë°Ê²¼¤Î¥Ó¥Ç¥ª¥â¡¼¥É¤ò»ØÄꤹ¤ë:
162 .\"O -2 = Extended 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
171 0 = ¥×¥í¥ó¥×¥È¤Ç "0" ¤¬ÆþÎϤµ¤ì¤¿¤Î¤ÈƱ¤¸Æ¯¤¤ò¤¹¤ë¡£
172 1 = ¥×¥í¥ó¥×¥È¤Ç "1" ¤¬ÆþÎϤµ¤ì¤¿¤Î¤ÈƱ¤¸Æ¯¤¤ò¤¹¤ë¡£
173 2 = ¥×¥í¥ó¥×¥È¤Ç "2" ¤¬ÆþÎϤµ¤ì¤¿¤Î¤ÈƱ¤¸Æ¯¤¤ò¤¹¤ë¡£
174 n = ¥×¥í¥ó¥×¥È¤Ç "n" ¤¬ÆþÎϤµ¤ì¤¿¤Î¤ÈƱ¤¸Æ¯¤¤ò¤¹¤ë¡£
180 .\"O is not specified, the
182 .\"O will be examined to determine the current settings.
184 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¸½ºß¤ÎÀßÄê¤ò·è¤á¤ë¤¿¤á¤Ë
222 ¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ¹¤ë¡£
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.
231 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î¡¢¸½ºß¤Î¥ë¡¼¥È¥Ç¥Ð¥¤¥¹Ì¾¤òɽ¼¨¤¹¤ë°Ê³°¤Îµ¡Ç½¤Ï¡¢
232 ¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤Î·è¤áÂǤÁ¤Î¥ª¥Õ¥»¥Ã¥È¤Ë·è¤áÂǤÁ¤Î¿ôÃͤò½ñ¤¹þ¤à¤³¤È¤Ë¤è¤Ã¤Æ
233 Æ°ºî¤¹¤ë¡¢¤¤¤Ë¤·¤¨¤Î¥Ï¥Ã¥¯¤Ç¤¢¤ë¡£
234 ¤³¤ì¤Ï i386 °Ê³°¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ç¤ÏÆ°ºî¤·¤Ê¤¤¡£
235 .\"O Its use is strongly discouraged. Use a boot loader like SysLinux or LILO
237 ¤³¤ì¤Î»ÈÍѤÏÁ´¤¯¿ä¾©¤Ç¤¤Ê¤¤¡£
238 SysLinux ¤ä LILO ¤Î¤è¤¦¤Ê¥Ö¡¼¥È¥í¡¼¥À¤òÂå¤ï¤ê¤Ë»È¤¦¤³¤È¡£
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
250 ¤·¤«¤·¡¢ Linux 0.95 ¤«¤é¤Ï¤³¤ÎÄê¿ô¤Ï»È¤ï¤ì¤Ê¤¯¤Ê¤ê¡¢
253 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ç»ØÄꤹ¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£
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
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 ¥Ö¡¼¥È¤Î¤¿¤á¤Î)¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¤¥á¡¼¥¸¤Î³«»Ï¥Ö¥í¥Ã¥¯ÈÖ¹æ¤È¤Ê¤Ã¤¿¡£
280 .\"O .IR linux/Documentation/ramdisk.txt .
281 .I linux/Documentation/ramdisk.txt
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)