OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man4 / initrd.4
1 .\" -*- nroff -*-
2 .\" This man-page is Copyright (C) 1997 John S. Kallal
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and author(s) of this work.
23 .\"
24 .\" If the you wish to distribute versions of this work under other
25 .\" conditions than the above, please contact the author(s) at the following
26 .\" for permission:
27 .\"
28 .\"  John S. Kallal -
29 .\"     email: <kallal@voicenet.com>
30 .\"     mail: 518 Kerfoot Farm RD, Wilmington, DE 19803-2444, USA
31 .\"     phone: (302)654-5478
32 .\"
33 .\" $Id: initrd.4,v 1.1.1.1 1999/07/19 01:49:27 cvs Exp $
34 .\"
35 .\" Japanese Version Copyright (c) 1997,1998
36 .\"           ISHIKAWA Mutsumi, all rights reserved.
37 .\" Translated 1997-12-15, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
38 .\" Modified 1998-02-09, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
39 .\" Updated & Modified 2005-10-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\"
41 .TH INITRD 4 2010-09-04 "Linux" "Linux Programmer's Manual"
42 .\"O .SH NAME
43 .SH Ì¾Á°
44 .\"O initrd \- boot loader initialized RAM disk
45 initrd \- ¥Ö¡¼¥È¥í¡¼¥À¤Ë¤è¤Ã¤Æ½é´ü²½¤µ¤ì¤¿ RAM ¥Ç¥£¥¹¥¯
46 .\"O .SH CONFIGURATION
47 .SH ÀßÄê
48 .\"O The
49 .\"O .I /dev/initrd
50 .\"O is a read-only block device assigned
51 .\"O major number 1 and minor number 250.
52 .\"O Typically
53 .\"O .I /dev/initrd
54 .\"O is owned by
55 .\"O .I root.disk
56 .\"O with mode 0400 (read access by root only).
57 .\"O If the Linux system does not have
58 .\"O .I /dev/initrd
59 .\"O already created, it can be created with the following commands:
60 .I /dev/initrd
61 ¤Ï¡¢¥á¥¸¥ã¡¼ÈÖ¹æ 1¡¢¥Þ¥¤¥Ê¡¼ÈÖ¹æ 250 ¤¬³ä¤êÅö¤Æ¤é¤ì¤¿
62 Æɤ߹þ¤ßÀìÍѤΥ֥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Ç¤¢¤ë¡£
63 ÉáÄÌ¡¢
64 .I /dev/initrd
65 ¤Î½êÍ­¼Ô¤Ï
66 .I root.disk
67 ¤Ç¤¢¤ê¡¢¥â¡¼¥É¤Ï 400 (root ¤Î¤ß¤¬Æɤ߽Ф·²Äǽ) ¤Ç¤¢¤ë¡£
68 ¤â¤·¡¢Linux ¥·¥¹¥Æ¥à¤ËºîÀ®ºÑ¤Î
69 .I /dev/initrd
70 ¥Õ¥¡¥¤¥ë¤¬¤Ê¤«¤Ã¤¿¾ì¹ç¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ÇºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë:
71 .nf
72 \fB
73         mknod \-m 400 /dev/initrd b 1 250
74         chown root:disk /dev/initrd
75 \fP
76 .fi
77 .PP
78 .\"O Also, support for both "RAM disk" and "Initial RAM disk"
79 .\"O (e.g.
80 .\"O .BR CONFIG_BLK_DEV_RAM=y
81 .\"O and
82 .\"O .BR CONFIG_BLK_DEV_INITRD=y )
83 .\"O must be compiled directly into the Linux kernel to use
84 .\"O .IR /dev/initrd .
85 .\"O When using
86 .\"O .IR /dev/initrd ,
87 .\"O the RAM disk driver cannot be loaded as a module.
88 ¤Þ¤¿¡¢
89 .I /dev/initrd
90 ¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢
91 "RAM disk" ¤È "Initial RAM disk" ¤ÎξÊý¤Îµ¡Ç½¤¬
92 Linux ¥«¡¼¥Í¥ë¤ËľÀÜÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤
93 (Î㤨¤Ð¡¢¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÀßÄê¤Ç
94 .B CONFIG_BLK_DEV_RAM=y
95 ¤«¤Ä
96 .B CONFIG_BLK_DEV_INITRD=y
97 ¤È¤¹¤ë)¡£
98 .I /dev/initrd
99 ¤ò»ÈÍѤ¹¤ë¾ì¹ç¤Ë¤Ï¡¢RAM ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ð¤ò¥â¥¸¥å¡¼¥ë¤È¤·¤Æ
100 ¥í¡¼¥É¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
101 .\"
102 .\"
103 .\"
104 .\"O .SH DESCRIPTION
105 .SH ÀâÌÀ
106 .\"O The special file
107 .\"O .I /dev/initrd
108 .\"O is a read-only block device.
109 .\"O This device is a RAM disk that is initialized (e.g., loaded)
110 .\"O by the boot loader before the kernel is started.
111 .\"O The kernel then can use
112 .\"O .IR /dev/initrd "'s "
113 .\"O contents for a two-phase system boot-up.
114 .I /dev/initrd
115 ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤ÏÆɤ߹þ¤ßÀìÍѤΥ֥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Ç¤¢¤ë¡£
116 ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ï¥«¡¼¥Í¥ë¤¬µ¯Æ°¤µ¤ì¤ëÁ°¤Ë¥Ö¡¼¥È¥í¡¼¥À (boot loader)
117 ¤Ë¤è¤Ã¤Æ½é´ü²½ (Î㤨¤Ð¡¢¥í¡¼¥É) ¤µ¤ì¤ë RAM ¥Ç¥£¥¹¥¯¤Ç¤¢¤ë¡£
118 ¤½¤Î¸å¡¢¥«¡¼¥Í¥ë¤Ï
119 .I /dev/initrd
120 ¤ÎÆâÍƤòÆóÃʳ¬¤Î¥·¥¹¥Æ¥àµ¯Æ° (two-phase system boot-up)
121 ¤ÇÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
122 .PP
123 .\"O In the first boot-up phase, the kernel starts up
124 .\"O and mounts an initial root file-system from the contents of
125 .\"O .I /dev/initrd
126 .\"O (e.g., RAM disk initialized by the boot loader).
127 .\"O In the second phase, additional drivers or other modules
128 .\"O are loaded from the initial root device's contents.
129 .\"O After loading the additional modules, a new root file system
130 .\"O (i.e., the normal root file system) is mounted from a
131 .\"O different device.
132 ºÇ½é¤Î¥Ö¡¼¥È¥¢¥Ã¥×Ãʳ¬ (first boot-up phase) ¤Ç¤Ï¡¢¥«¡¼¥Í¥ë¤Ï
133 (Î㤨¤Ð¡¢¥Ö¡¼¥È¥í¡¼¥À¤Ë¤è¤Ã¤Æ½é´ü²½¤µ¤ì¤¿ RAM disk ¤Ç¤¢¤ë)
134 .I /dev/initrd
135 ¤ÎÆâÍƤò½é´ü¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à (root file-system) ¤È¤·¤Æ¥Þ¥¦¥ó¥È
136 ¤·¤Æµ¯Æ°¤¹¤ë¡£
137 ÂèÆóÃʳ¬¤Ç¤Ï½é´ü¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤â¤Î¤«¤é¡¢ÄɲäΥɥ饤
138 ¥Ð¤ä¤½¤Î¾¤Î¥â¥¸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤ë¡£
139 ÄɲäΥ⥸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤¿¸å¡¢¿·¤·¤¤¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
140 (¤¹¤Ê¤ï¤Á¡¢Ä̾ï»þ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à)
141 ¤¬Ê̤ΥǥХ¤¥¹¤«¤é¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
142 .\"
143 .\"
144 .\"
145 .\"O .SS "Boot-up Operation"
146 .SS ¥Ö¡¼¥È¥¢¥Ã¥×ºî¶È
147 .\"O When booting up with
148 .\"O .BR initrd ,
149 .\"O the system boots as follows:
150 .B initrd
151 ¤òÍøÍѤ·¤¿»þ¤Ï¡¢¥·¥¹¥Æ¥à¤Ï¼¡¤Î¤è¤¦¤Ë¥Ö¡¼¥È¤¹¤ë:
152 .IP 1. 3
153 .\"O The boot loader loads the kernel program and
154 .\"O .IR /dev/initrd 's
155 .\"O contents into memory.
156 ¥Ö¡¼¥È¥í¡¼¥À¤Ï¥«¡¼¥Í¥ë¥×¥í¥°¥é¥à¤È
157 .I /dev/initrd
158 ¤ÎÆâÍƤò¥á¥â¥ê¤Ë¥í¡¼¥É¤¹¤ë¡£
159 .IP 2.
160 .\"O On kernel startup,
161 .\"O the kernel uncompresses and copies the contents of the device
162 .\"O .I /dev/initrd
163 .\"O onto device
164 .\"O .I /dev/ram0
165 .\"O and then frees the memory used by
166 .\"O .IR /dev/initrd .
167 ¥«¡¼¥Í¥ëµ¯Æ°»þ¡¢¥«¡¼¥Í¥ë¤Ï
168 .I /dev/initrd
169 ¥Ç¥Ð¥¤¥¹¤ÎÆâÍƤòŸ³« (uncompress) ¤·¡¢
170 .I /dev/ram0
171 ¤Ë¥³¥Ô¡¼¤¹¤ë¡£¤µ¤é¤Ë¡¢
172 .I /dev/initrd
173 ¤Î»È¤Ã¤Æ¤¤¤¿¥á¥â¥ê¤ò²òÊü¤¹¤ë¡£
174 .IP 3.
175 .\"O The kernel then read-write mounts the device
176 .\"O .I /dev/ram0
177 .\"O as the initial root file system.
178 ¥«¡¼¥Í¥ë¤Ï
179 .I /dev/ram0
180 ¥Ç¥Ð¥¤¥¹¤ò½é´ü¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤ÆÆɤ߽ñ¤­²Äǽ¤Ê·Á¼°¤Ç¥Þ¥¦¥ó
181 ¥È¤¹¤ë¡£
182 .IP 4.
183 .\"O If the indicated normal root file system is also the initial
184 .\"O root file-system (e.g.
185 .\"O .IR /dev/ram0 )
186 .\"O then the kernel skips to the last step for the usual boot sequence.
187 »Ø¼¨¤µ¤ì¤¿¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬½é´ü¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
188 (Î㤨¤Ð
189 .IR /dev/ram0 )
190 ¤ÈƱ°ì¤Î¾ì¹ç¤Ï¡¢¥«¡¼¥Í¥ë¤ÏÉáÄ̤Υ֡¼¥È¥·¡¼¥±¥ó¥¹¤Î¤¿¤á¤ÎºÇ¸å¤Î¥¹¥Æ¥Ã¥×¤ò
191 ¾Êά¤¹¤ë¡£
192 .IP 5.
193 .\"O If the executable file
194 .\"O .IR /linuxrc
195 .\"O is present in the initial root file-system,
196 .\"O .I /linuxrc
197 .\"O is executed with UID 0.
198 .\"O (The file
199 .\"O .I /linuxrc
200 .\"O must have executable permission.
201 .\"O The file
202 .\"O .I /linuxrc
203 .\"O can be any valid executable, including a shell script.)
204 .I /linuxrc
205 ¤È¤¤¤¦¼Â¹Ô²Äǽ¤Ê¥Õ¥¡¥¤¥ë¤¬½é´ü¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ì¤Ð¡¢
206 .I /linuxrc
207 ¤ò UID 0 (¤¹¤Ê¤ï¤Á¡¢root) ¤Î¸¢¸Â¤Ç¼Â¹Ô¤¹¤ë¡£
208 .RI ( /linuxrc
209 ¥Õ¥¡¥¤¥ë¤Ï¼Â¹Ô²Äǽ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
210 .I /linuxrc
211 ¤ÏÀµÅö¤Ê¼Â¹Ô¥Õ¥¡¥¤¥ë¤Ç¤¢¤ì¤Ð¤è¤¯¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤â¹½¤ï¤Ê¤¤¡£)
212 .IP 6.
213 .\"O If
214 .\"O .I /linuxrc
215 .\"O is not executed or when
216 .\"O .I /linuxrc
217 .\"O terminates, the normal root file system is mounted.
218 .\"O (If
219 .\"O .I /linuxrc
220 .\"O exits with any file-systems mounted on the initial root
221 .\"O file-system, then the behavior of the kernel is
222 .\"O .BR UNSPECIFIED .
223 .\"O See the NOTES section for the current kernel behavior.)
224 .I /linuxrc
225 ¤¬¼Â¹Ô¤µ¤ì¤Ê¤¤¡¢¤Þ¤¿¤Ï¡¢
226 .I /linuxrc
227 ¤Î¼Â¹Ô¤¬½ªÎ»¤·¤¿»þ¤Ï¡¢Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
228 .RI ( /linuxrc
229 ¤ò½ªÎ»¤·¤¿»þ¡¢²¿¤é¤«¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬½é´ü¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë
230 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¥«¡¼¥Í¥ë¤ÎÆ°ºî¤Ï
231 \fB·è¤á¤é¤ì¤Æ¤¤¤Ê¤¤ (ÉÔÄê¤Ç¤¢¤ë)\fR¡£
232 ¸½ºß¤Î¥«¡¼¥Í¥ë¤¬¤É¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¤«¤Ï¡¢
233 ¡ÖÃí°Õ¡×¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤Î¤³¤È¡£)
234 .IP 7.
235 .\"O If the normal root file system has a directory
236 .\"O .IR /initrd ,
237 .\"O the device
238 .\"O .I /dev/ram0
239 .\"O is moved from
240 .\"O .IR /
241 .\"O to
242 .\"O .IR /initrd .
243 .\"O Otherwise if the directory
244 .\"O .IR /initrd
245 .\"O does not exist, the device
246 .\"O .I /dev/ram0
247 .\"O is unmounted.
248 .\"O (When moved from
249 .\"O .IR /
250 .\"O to
251 .\"O .IR /initrd ,
252 .\"O .I /dev/ram0
253 .\"O is not unmounted and therefore processes can remain running from
254 .\"O .IR /dev/ram0 .
255 .\"O If directory
256 .\"O .I /initrd
257 .\"O does not exist on the normal root file system
258 .\"O and any processes remain running from
259 .\"O .IR /dev/ram0
260 .\"O when
261 .\"O .I /linuxrc
262 .\"O \"O exits, the behavior of the kernel is
263 .\"O .BR UNSPECIFIED .
264 .\"O See the NOTES section for the current kernel behavior.)
265 Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë
266 ¥Ç¥£¥ì¥¯¥È¥ê
267 .I /initrd
268 ¤¬¤¢¤ì¤Ð¡¢
269 .I /dev/ram0
270 ¥Ç¥Ð¥¤¥¹¤Ï
271 .I /
272 ¤«¤é
273 .I /initrd
274 ¤Ë°ÜÆ°¤µ¤ì¤ë¡£
275 .I /initrd
276 ¥Ç¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢
277 .I /dev/ram0
278 ¤Ï¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
279 .RI ( /
280 ¤¬
281 .I /initrd
282 ¤Ë°ÜÆ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
283 .I /dev/ram0
284 ¤Ï¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤º¡¢¤½¤Î·ë²Ì¡¢
285 .I /dev/ram0
286 ¤ÇÁö¤ê»Ï¤á¤¿¥×¥í¥»¥¹¤Ï¤½¤Î¤Þ¤Þ»Ä¤ë»ö¤¬¤Ç¤­¤ë¡£
287 ¤â¤·¡¢
288 .I /initrd
289 ¥Ç¥£¥ì¥¯¥È¥ê¤¬Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¸ºß¤»¤º¡¢
290 .I /linuxrc
291 ¤¬½ªÎ»¤·¤¿»þ¤Ë
292 .I /dev/ram0
293 ¾å¤Ç¼Â¹Ô¤µ¤ì¤¿¡¢¤Ê¤ó¤é¤«¤Î¥×¥í¥»¥¹¤¬Áö¤ê³¤±¤Æ¤¤¤¿¾ì¹ç¤Î
294 ¥«¡¼¥Í¥ë¤ÎÆ°ºî¤Ï
295 .BR "·è¤á¤é¤ì¤Æ¤¤¤Ê¤¤ (ÉÔÄê¤Ç¤¢¤ë)" ¡£
296 ¸½ºß¤Î¥«¡¼¥Í¥ë¤¬¡¢¤³¤Î»þ¤É¤Î¤è¤¦¤ÊÆ°ºî¤ò¤¹¤ë¤«¤Ë¤Ä¤¤¤Æ¤Ï¡¢
297 ¡ÖÃí°Õ¡×¤ò»²¾È¤Î¤³¤È¡£)
298 .IP 8.
299 .\"O The usual boot sequence (e.g., invocation of
300 .\"O .IR /sbin/init )
301 .\"O is performed on the normal root file system.
302 ÉáÄ̤Υ֡¼¥È¥·¡¼¥±¥ó¥¹ (Î㤨¤Ð¡¢
303 .I /sbin/init
304 ¤Îµ¯Æ°) ¤¬Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ç¹Ô¤ï¤ì¤ë¡£
305 .\"
306 .\"
307 .\"
308 .\"O .SS Options
309 .SS ¥ª¥×¥·¥ç¥ó
310 .\"O The following boot loader options, when used with
311 .\"O .BR initrd ,
312 .\"O affect the kernel's boot-up operation:
313 .B initrd
314 ¤òÍѤ¤¤ë¾ì¹ç¤Ë¡¢¥«¡¼¥Í¥ë¤Î¥Ö¡¼¥È¥¢¥Ã¥×Áàºî¤Ë±Æ¶Á¤òÍ¿¤¨¤ë
315 ¥Ö¡¼¥È¥í¡¼¥À¡¦¥ª¥×¥·¥ç¥ó¤Ï¼¡¤Î¤è¤¦¤Ê¤â¤Î¤¬¤¢¤ë¡¢
316 .TP
317 .\"O .BI initrd= "filename"
318 .\"O Specifies the file to load as the contents of
319 .\"O .IR /dev/initrd .
320 .\"O For
321 .\"O .B LOADLIN
322 .\"O this is a command-line option.
323 .\"O For
324 .\"O .B LILO
325 .\"O you have to use this command in the
326 .\"O .B LILO
327 .\"O configuration file
328 .\"O .IR /etc/lilo.config .
329 .\"O The filename specified with this
330 .\"O option will typically be a gzipped file-system image.
331 .BI initrd= "filename"
332 .I /dev/initrd
333 ¤ÎÆâÍƤȤ·¤Æ¥í¡¼¥É¤¹¤ë¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë¡£
334 .B LOADLIN
335 ¤Ç¤Ï¡¢¤³¤ì¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ë¡£
336 .B LILO
337 ¤Ç¤Ï¡¢
338 .B LILO
339 ¤ÎÀßÄê¥Õ¥¡¥¤¥ë
340 .I /etc/lilo.config
341 Æâ¤Ç¥³¥Þ¥ó¥É¤È¤·¤Æ»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
342 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤵ¤ì¤ë¥Õ¥¡¥¤¥ë¤Ï¡¢Â¿¤¯¤Î¾ì¹ç gzip °µ½Ì¤µ¤ì¤¿
343 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¤¥á¡¼¥¸¤Ç¤¢¤ë¡£
344 .TP
345 .\"O .I noinitrd
346 .\"O This boot option disables the two-phase boot-up operation.
347 .\"O The kernel performs the usual boot sequence as if
348 .\"O .I /dev/initrd
349 .\"O was not initialized.
350 .\"O With this option, any contents of
351 .\"O .I /dev/initrd
352 .\"O loaded into memory by the boot loader contents are preserved.
353 .\"O This option permits the contents of
354 .\"O .I /dev/initrd
355 .\"O to be any data and need not be limited to a file system image.
356 .\"O However, device
357 .\"O .I /dev/initrd
358 .\"O is read-only and can be read only one time after system startup.
359 .B noinitrd
360 ¤³¤Îµ¯Æ°¥ª¥×¥·¥ç¥ó¤ÏÆóÃʳ¬¤Îµ¯Æ°Áàºî¤ò̵¸ú¤Ë¤¹¤ë¡£
361 ¥«¡¼¥Í¥ë¤Ï
362 .I /dev/initrd
363 ¤¬½é´ü²½¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤ÈƱÍͤΡ¢Ä̾ï¤Î¥Ö¡¼¥È¥¢¥Ã¥×Æ°ºî¤ò¹Ô¤¦¡£
364 ¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢¥Ö¡¼¥È¥í¡¼¥À¤Ë¤è¤Ã¤Æ¥á¥â¥ê¾å¤Ë¥í¡¼¥É¤µ¤ì¤¿
365 .I /dev/initrd
366 ¤ÎÆâÍƤϤ½¤Î¤Þ¤ÞÊݸ¤µ¤ì¤ë¡£
367 ¤Ä¤Þ¤ê¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢
368 .I /dev/initrd
369 ¤ÎÆâÍƤò (¥Ö¡¼¥È°Ê³°¤ÎÌÜŪ¤Ë) ÍøÍѤ¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ë¡£¤Þ¤¿¡¢¤½¤ÎÆâÍƤÏ
370 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¤¥á¡¼¥¸¤Ë¸ÂÄꤵ¤ì¤Ê¤¤¡£
371 ¤·¤«¤·¡¢
372 .I /dev/initrd
373 ¥Ç¥Ð¥¤¥¹¤ÏÆɤߤÀ¤·¤Î¤ß²Äǽ¤Ç¤¢¤ê¡¢¥·¥¹¥Æ¥à¤Îµ¯Æ°¸å 1 ÅÙ¤·¤«Æɤ߽Ф¹»ö
374 ¤¬¤Ç¤­¤Ê¤¤¡£
375 .TP
376 .\"O .BI root= "device-name"
377 .\"O Specifies the device to be used as the normal root file system.
378 .\"O .RB "For " LOADLIN
379 .\"O this is a command-line option.
380 .\"O .RB "For " LILO " this is a boot time option or
381 .\"O can be used as an option line in the
382 .\"O .B LILO
383 .\"O configuration file
384 .\"O .IR /etc/lilo.config .
385 .\"O The device specified by the this option must be a mountable
386 .\"O device having a suitable root file-system.
387 .BI root= "device-name"
388 Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æ»È¤ï¤ì¤ë¥Ç¥Ð¥¤¥¹¤ò»ØÄꤹ¤ë¡£
389 .B LOADLIN
390 ¤Ç¤Ï¡¢¤³¤ì¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ë¡£
391 .B LILO
392 ¤Ç¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¡¢¤Þ¤¿¤Ï¡¢
393 .B LILO
394 ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë
395 .I /etc/lilo.config
396 ¤Î¥ª¥×¥·¥ç¥ó¥é¥¤¥ó¤È¤·¤Æ»ÈÍѤ¹¤ë¡£
397 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤵ¤ì¤ë¥Ç¥Ð¥¤¥¹¤Ï¡¢Å¬Àڤʥ롼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·
398 ¤Æ¥Þ¥¦¥ó¥È²Äǽ¤Ê¥Ç¥Ð¥¤¥¹¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
399 .\"
400 .\"
401 .\"
402 .\"O .SS "Changing the Normal Root File System"
403 .SS Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÊѹ¹
404 .\"O By default,
405 .\"O the kernel's settings
406 .\"O (e.g., set in the kernel file with
407 .\"O .BR rdev (8)
408 .\"O or compiled into the kernel file),
409 .\"O or the boot loader option setting
410 .\"O is used for the normal root file systems.
411 .\"O For an NFS-mounted normal root file system, one has to use the
412 .\"O .B nfs_root_name
413 .\"O and
414 .\"O .B nfs_root_addrs
415 .\"O boot options to give the NFS settings.
416 .\"O For more information on NFS-mounted root see the kernel documentation file
417 .\"O .BR Documentation/filesystems/nfsroot.txt .
418 .\"O For more information on setting the root file system see also the
419 .\"O .BR LILO
420 .\"O and
421 .\"O .BR LOADLIN
422 .\"O documentation.
423 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥«¡¼¥Í¥ë¤ÎÀßÄê
424 (Î㤨¤Ð¡¢
425 .BR rdev (8)
426 ¤òÍѤ¤¤Æ¥«¡¼¥Í¥ë¥Õ¥¡¥¤¥ëÆâ¤Ë¥»¥Ã¥È¤µ¤ì¤¿¤â¤Î¡¢¤Þ¤¿¤Ï¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¥«¡¼
427 ¥Í¥ë¥Õ¥¡¥¤¥ëÆâ¤ËËä¤á¹þ¤Þ¤ì¤¿¤â¤Î)¡¢
428 ¤Þ¤¿¤Ï¡¢¥Ö¡¼¥È¥í¡¼¥À¤Î¥ª¥×¥·¥ç¥óÀßÄê¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¤â¤Î¤¬Ä̾ï»þ¥ë¡¼
429 ¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æ»È¤ï¤ì¤ë¡£
430 NFS ¥Þ¥¦¥ó¥È¤µ¤ì¤¿Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÍøÍѤ¹¤ë¾ì¹ç¡¢
431 .B nfs_root_name
432 ¤È
433 .B nfs_root_addrs
434 ¥Ö¡¼¥È¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ NFS ¤ÎÀßÄê¤òÍ¿¤¨¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
435 NFS ¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥ë¡¼¥È (¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à) ¤Ë¤Ä¤¤¤Æ¤Î
436 ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï¡¢¥«¡¼¥Í¥ë¤Î¥É¥­¥å¥á¥ó¥È¥Õ¥¡¥¤¥ë
437 .B Documentation/filesystems/nfsroot.txt
438 ¤ò»²¾È¤Î¤³¤È¡£
439 ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Î¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï¡¢
440 .B LILO
441 ¤È
442 .B LOADLIN
443 ¤Î¥É¥­¥å¥á¥ó¥È¤â»²¾È¤Î¤³¤È¡£
444 .PP
445 .\"O It is also possible for the
446 .\"O .I /linuxrc
447 .\"O executable to change the normal root device.
448 ¤Þ¤¿¡¢
449 .I /linuxrc
450 ¤òÍѤ¤¤ë»ö¤Ë¤è¤Ã¤Æ¤âÄ̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ç¥Ð¥¤¥¹¤òÊѹ¹¤¹¤ë¤³¤È
451 ¤¬¤Ç¤­¤ë¡£
452 .\"O For
453 .\"O .I /linuxrc
454 .\"O to change the normal root device,
455 .\"O .IR /proc
456 .\"O must be mounted.
457 .I /linuxrc
458 ¤òÍѤ¤¤Æ¡¢Ä̾ï»þ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤òÊѹ¹¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
459 .I /proc
460 ¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
461 .\"O After mounting
462 .\"O .IR /proc ,
463 .\"O .I /linuxrc
464 .\"O changes the normal root device by writing into the proc files
465 .\"O .IR /proc/sys/kernel/real-root-dev ,
466 .\"O .IR /proc/sys/kernel/nfs-root-name ,
467 .\"O and
468 .\"O .IR /proc/sys/kernel/nfs-root-addrs .
469 .I /proc
470 ¤ò¥Þ¥¦¥ó¥È¤·¤¿¸å¤Ç¡¢
471 .I /linuxrc
472 ¤Ï proc ¥Õ¥¡¥¤¥ë
473 .IR /proc/sys/kernel/real-root-dev ,
474 .IR /proc/sys/kernel/nfs-root-name ,
475 .I /proc/sys/kernel/nfs-root-addrs
476 ¤Ë½ñ¤­¹þ¤ß¤ò¹Ô¤¤¡¢Ä̾ï»þ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤òÊѹ¹¤¹¤ë¡£
477 .\"O For a physical root device, the root device is changed by having
478 .\"O .I /linuxrc
479 .\"O write the new root file system device number into
480 .\"O .IR /proc/sys/kernel/real-root-dev .
481 (NFS ¤Ç¤Ï¤Ê¤¤) ÊªÍýŪ¤Ê¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤Î¾ì¹ç¡¢
482 .I /linuxrc
483 ¤¬¿·¤·¤¤¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ò
484 .I /proc/sys/kernel/real-root-dev
485 ¤Ë½ñ¤­¹þ¤à¤³¤È¤Ç¡¢¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤¬Êѹ¹¤µ¤ì¤ë¡£
486 .\"O For an NFS root file system, the root device is changed by having
487 .\"O .I /linuxrc
488 .\"O write the NFS setting into files
489 .\"O .IR /proc/sys/kernel/nfs-root-name
490 .\"O and
491 .\"O .I /proc/sys/kernel/nfs-root-addrs
492 .\"O and then writing 0xff (e.g., the pseudo-NFS-device number) into file
493 .\"O .IR /proc/sys/kernel/real-root-dev .
494 NFS ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¾ì¹ç¡¢
495 .I /linuxrc
496 ¤¬ NFS ¤ÎÀßÄê¤ò
497 .I /proc/sys/kernel/nfs-root-name
498 ¤È
499 .I /proc/sys/kernel/nfs-root-addrs
500 ¤Ë½ñ¤­¹þ¤ß¡¢¤½¤ì¤«¤é
501 .I /proc/sys/kernel/real-root-dev
502 ¤Ë (µ¿»÷ NFS ¥Ç¥Ð¥¤¥¹¥Ê¥ó¥Ð¡¼¤Ç¤¢¤ë) 0xff ¤ò½ñ¤­¹þ¤à¤³¤È¤Ç¡¢
503 ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤¬Êѹ¹¤µ¤ì¤ë¡£
504 .\"O For example, the following shell command line would change
505 .\"O the normal root device to
506 .\"O .IR /dev/hdb1 :
507 Î㤨¤Ð¡¢¼¡¤Î¥·¥§¥ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë¤è¤ê¡¢Ä̾ï»þ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤ò
508 .I /dev/hdb1
509 ¤ËÊѹ¹¤Ç¤­¤ë¤À¤í¤¦:
510 .nf
511
512     echo 0x365 >/proc/sys/kernel/real-root-dev
513
514 .fi
515 .\"O For an NFS example, the following shell command lines would change the
516 .\"O normal root device to the NFS directory
517 .\"O .I /var/nfsroot
518 .\"O on a local networked NFS server with IP number 193.8.232.7 for a system with
519 .\"O IP number 193.8.232.2 and named "idefix":
520 ¤Þ¤¿¡¢NFS ¤Î¾ì¹ç¡¢¼¡¤Î¤è¤¦¤Ê¥·¥§¥ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë¤è¤ê¡¢
521 193.8.232.2 ¤È¤¤¤¦ IP ¥¢¥É¥ì¥¹¤ò»ý¤Ä "idefix" ¤È¤¤¤¦Ì¾Á°¤Î
522 ¥·¥¹¥Æ¥à¤Î¡¢Ä̾ï»þ¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤È¤·¤Æ¡¢
523 ¥í¡¼¥«¥ë¥Í¥Ã¥È¥ï¡¼¥¯¤Î 193.8.232.2 ¤È¤¤¤¦ IP ¥¢¥É¥ì¥¹¤ò»ý¤Ä NFS ¥µ¡¼¥Ð¤Î
524 NFS ¥Ç¥£¥ì¥¯¥È¥ê
525 .I /var/nfsroot
526 ¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤è¤¦¤ËÊѹ¹¤Ç¤­¤ë:
527 .nf
528
529     echo /var/nfsroot >/proc/sys/kernel/nfs-root-name
530     echo 193.8.232.2:193.8.232.7::255.255.255.0:idefix \\
531         >/proc/sys/kernel/nfs-root-addrs
532     echo 255 >/proc/sys/kernel/real-root-dev
533 .fi
534
535 .\"O .BR Note :
536 .BR Ãí°Õ :
537 .\"O The use of
538 .\"O .I /proc/sys/kernel/real-root-dev
539 .\"O to change the root file system is obsolete.
540 ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÊѹ¹¤¹¤ë¤¿¤á¤Ë
541 .I /proc/sys/kernel/real-root-dev
542 ¤ò»È¤¦¤Î¤Ï°ÊÁ°¤ÎÊýË¡¤Ç¤¢¤ë¡£
543 .\"O See the kernel source file
544 .\"O .I Documentation/initrd.txt
545 .\"O as well as
546 .\"O .BR pivot_root (2)
547 .\"O and
548 .\"O .BR pivot_root (8)
549 .\"O for information on the modern method of changing the root file system.
550 .\"O .\" FIXME the manual page should describe the pivot_root mechanism.
551 ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÊѹ¹¤¹¤ë¿·¤·¤¤ÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï¡¢
552 ¥«¡¼¥Í¥ë¥½¡¼¥¹¤Ë´Þ¤Þ¤ì¤ë
553 .I Documentation/initrd.txt
554 ¥Õ¥¡¥¤¥ë¤ä¡¢
555 .BR pivot_root (2)
556 ¤ä
557 .BR pivot_root (8)
558 ¤ò»²¾È¤·¤Æ¤Û¤·¤¤¡£
559 .\" FIXME ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ç pivot_root ¤Î»ÅÁȤߤòÀâÌÀ¤¹¤ëɬÍפ¬¤¢¤ë¡£
560 .\"
561 .\"
562 .\"
563 .\"O .SS Usage
564 .SS »È¤¤Êý
565 .\"O The main motivation for implementing
566 .\"O .B initrd
567 .\"O was to allow for modular kernel configuration at system installation.
568 .B initrd
569 ¤¬¼ÂÁõ¤µ¤ì¤¿¼ç¤ÊÌÜŪ¤Ï¡¢¥·¥¹¥Æ¥à¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¡¢¥â¥¸¥å¡¼¥ë²½¤µ¤ì¤¿¥«¡¼
570 ¥Í¥ë¤ÎÀßÄê¤ò²Äǽ¤Ë¤¹¤ë¤³¤È¤Ç¤¢¤Ã¤¿¡£
571 .PP
572 .\"O A possible system installation scenario is as follows:
573 ¼¡¤Î¤è¤¦¤Êή¤ì¤Î¥·¥¹¥Æ¥à¥¤¥ó¥¹¥È¡¼¥ë¤¬²Äǽ¤Ë¤Ê¤ë:
574 .IP 1. 3
575 .\"O The loader program boots from floppy or other media with a minimal kernel
576 .\"O (e.g., support for
577 .\"O .IR /dev/ram ,
578 .\"O .IR /dev/initrd ,
579 .\"O and the ext2 file-system) and loads
580 .\"O .IR /dev/initrd
581 .\"O with a gzipped version of the initial file-system.
582 ¥í¡¼¥À¥×¥í¥°¥é¥à¤Ï¡¢¥Õ¥í¥Ã¥Ô¡¼¤ä¤½¤Î¾¤Î¥á¥Ç¥£¥¢¤«¤é¡¢
583 ºÇ¾®¸Â¤Î¥«¡¼¥Í¥ë (Î㤨¤Ð¡¢
584 .IR /dev/ram ,
585 .IR /dev/initrd ,
586 ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¤ß¤Î¥µ¥Ý¡¼¥È¤·¤¿¥«¡¼¥Í¥ë) ¤ò¥Ö¡¼¥È¤·¡¢
587 gzip °µ½Ì¤µ¤ì¤¿½é´ü¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¤¥á¡¼¥¸¤ò
588 .I /dev/initrd
589 ¤Ë¥í¡¼¥É¤¹¤ë¡£
590 .IP 2.
591 .\"O The executable
592 .\"O .I /linuxrc
593 .\"O determines what is needed to (1) mount the normal root file-system
594 .\"O (i.e., device type, device drivers, file system) and (2) the
595 .\"O distribution media (e.g., CD-ROM, network, tape, ...).
596 .\"O This can be done by asking the user, by auto-probing,
597 .\"O or by using a hybrid approach.
598 ¼Â¹Ô¥Õ¥¡¥¤¥ë
599 .I /linuxrc
600 ¤Ï¡¢(1) Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Þ¥¦¥ó¥È¤Ë²¿¤¬É¬Íפ«
601 (¤¹¤Ê¤ï¤Á¡¢¥Ç¥Ð¥¤¥¹¥¿¥¤¥×¡¢¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à)¡¢
602 (2) ÇÛÉÛ¥á¥Ç¥£¥¢¤Ë²¿¤¬É¬Íפ« (Î㤨¤Ð¡¢CD-ROM, ¥Í¥Ã¥È¥ï¡¼¥¯¡¢¥Æ¡¼¥×¤Ê¤É)
603 ¤ò·èÄꤹ¤ë¡£·èÄê¤Ï¡¢¥æ¡¼¥¶¤Ø¤ÎÌ䤤¹ç¤ï¤»¡¢¼«Æ°¸¡½Ð¡¢¤¢¤ë¤¤¤Ï¤½¤Îξ¼Ô¤Î
604 ÊýË¡¤òÁȤ߹ç¤ï¤»¤Æ¹Ô¤ï¤ì¤ë¡£
605 .IP 3.
606 .\"O The executable
607 .\"O .I /linuxrc
608 .\"O loads the necessary modules from the initial root file-system.
609 ¼Â¹Ô¥Õ¥¡¥¤¥ë
610 .I /linuxrc
611 ¤Ï¡¢½é´ü¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤«¤éɬÍפʥ⥸¥å¡¼¥ë¤ò¥í¡¼¥É¤¹¤ë¡£
612 .IP 4.
613 .\"O The executable
614 .\"O .I /linuxrc
615 .\"O creates and populates the root file system.  (At this stage the normal
616 .\"O root file system does not have to be a
617 .\"O completed system yet.)
618 ¼Â¹Ô¥Õ¥¡¥¤¥ë
619 .I /linuxrc
620 ¤Ï¡¢¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤·¡¢ÇÛÃÖ¤¹¤ë (¤³¤ÎÃʳ¬¤Ç¤Ï¡¢Ä̾ï»þ¥ë¡¼
621 ¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï´°Á´¤Ê¥·¥¹¥Æ¥à¤Ç¤¢¤ëɬÍפϤʤ¤)¡£
622 .IP 5.
623 .\"O The executable
624 .\"O .IR /linuxrc
625 .\"O sets
626 .\"O .IR /proc/sys/kernel/real-root-dev ,
627 .\"O unmount
628 .\"O .IR /proc ,
629 .\"O the normal root file system and any other file
630 .\"O systems it has mounted, and then terminates.
631 ¼Â¹Ô¥Õ¥¡¥¤¥ë
632 .I /linuxrc
633 ¤Ï¡¢
634 .I /proc/sys/kernel/real-root-dev
635 ¤òÀßÄꤷ¡¢
636 .IR /proc "¡¢"
637 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ëÄ̾ï»þ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àµÚ¤Ó¤½¤Î¾¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
638 ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤·¡¢
639 ¼Â¹Ô¤ò½ªÎ»¤¹¤ë¡£
640 .IP 6.
641 .\"O The kernel then mounts the normal root file system.
642 ¼¡¤Ë¡¢¥«¡¼¥Í¥ë¤Ï¡¢Ä̾ï»þ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë¡£
643 .IP 7.
644 .\"O Now that the file system is accessible and intact,
645 .\"O the boot loader can be installed.
646 ¤³¤ÎÃʳ¬¤Ç¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÏÁ´¤¯Êѹ¹¤¬¹Ô¤ï¤ì¤Æ¤¤¤Ê¤¤¾õÂ֤ǡ¢
647 ¥¢¥¯¥»¥¹¤Ç¤­¤ë¾õÂ֤ˤʤ롣
648 ¤Þ¤¿¡¢¥Ö¡¼¥È¥í¡¼¥À¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
649 .IP 8.
650 .\"O The boot loader is configured to load into
651 .\"O .I /dev/initrd
652 .\"O a file system with the set of modules that was used to bring up the system.
653 .\"O (e.g., Device
654 .\"O .I /dev/ram0
655 .\"O can be modified, then unmounted, and finally, the image is written from
656 .\"O .I /dev/ram0
657 .\"O to a file.)
658 ¥Ö¡¼¥È¥í¡¼¥À¤òÀßÄꤷ¡¢¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë»ÈÍѤµ¤ì¤ë¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤Î¥»¥Ã
659 ¥È¤ò´Þ¤ó¤À¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
660 .I /dev/initrd
661 ¤Ë¥í¡¼¥É¤¹¤ë (Î㤨¤Ð¡¢
662 .I /dev/ram0
663 ¥Ç¥Ð¥¤¥¹¤ÎÆâÍƤò½¤Àµ¤·¡¢¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë¡£ºÇ¸å¤Ë¡¢
664 .I /dev/ram0
665 ¤Î¥¤¥á¡¼¥¸¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹)¡£
666 .IP 9.
667 .\"O The system is now bootable and additional installation tasks can be
668 .\"O performed.
669 ¤³¤ì¤Ç¡¢¥·¥¹¥Æ¥à¤¬¥Ö¡¼¥È²Äǽ¤Ë¤Ê¤ë¡£¤³¤Î¸å¡¢¤µ¤é¤Ë¤½¤Î¾¤Î¥¤¥ó¥¹¥È¡¼¥ë
670 ¤Îºî¶È¤ò¼Â¹Ô¤Ç¤­¤ë¡£
671 .PP
672 .\"O The key role of
673 .\"O .I /dev/initrd
674 .\"O in the above is to reuse the configuration data during normal system operation
675 .\"O without requiring initial kernel selection, a large generic kernel or,
676 .\"O recompiling the kernel.
677 ¾åµ­¤ÎÆ°ºî¤Ç¤Î
678 .I /dev/initrd
679 ¤ÎÌò³ä¤Î¥­¡¼¥Ý¥¤¥ó¥È¤Ï¡¢½é´ü¥«¡¼¥Í¥ë¤ÎÁªÂò¤äÂ礭¤Ê¥¸¥§¥Í¥ê¥Ã¥¯¥«¡¼¥Í¥ë¡¢
680 ¥«¡¼¥Í¥ë¤ÎºÆ¹½Ãۤʤ·¤Ë¡¢Ä̾ï¤Î¥·¥¹¥Æ¥àÁàºî¤ÇºÆÍøÍѲÄǽ¤ÊÀßÄê¥Ç¡¼¥¿¤òÍø
681 ÍѤ¹¤ë¤³¤È¤Ë¤¢¤ë¡£
682 .PP
683 .\"O A second scenario is for installations where Linux runs on systems with
684 .\"O different hardware configurations in a single administrative network.
685 .\"O In such cases, it may be desirable to use only a small set of kernels
686 .\"O (ideally only one) and to keep the system-specific part of configuration
687 .\"O information as small as possible.
688 .\"O In this case, create a common file
689 .\"O with all needed modules.
690 .\"O Then, only the
691 .\"O .I /linuxrc
692 .\"O file or a file executed by
693 .\"O .I /linuxrc
694 .\"O would be different.
695 2 ÈÖÌܤΥ±¡¼¥¹¤Ï¡¢°ì¤Ä¤Î´ÉÍý¾å¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¤ª¤¤¤Æ¡¢°Û¤Ê¤ëÀßÄê¤Î¥Ï¡¼
696 ¥É¥¦¥§¥¢¤Î¥·¥¹¥Æ¥à¾å¤Ç Linux ¤òÆ°ºî¤µ¤»¤ë¤¿¤á¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦¾ì¹ç
697 ¤Ç¤¢¤ë¡£
698 ¤³¤Î¤è¤¦¤Ê¥±¡¼¥¹¤Î¾ì¹ç¡¢¤´¤¯¾®¿ô¤Î¥«¡¼¥Í¥ë¤Î¥»¥Ã¥È (ÍýÁÛŪ¤Ë¤Ï¤¿¤Ã¤¿°ì
699 ¤Ä¤Î¥«¡¼¥Í¥ë) ¤Î¤ß¤òÍøÍѤ·¡¢¥·¥¹¥Æ¥à¸ÇÍ­¤ÎÀßÄê¾ðÊó¤Ï²Äǽ¤Ê¸Â¤ê¾®¤µ¤¯¤¹
700 ¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤¤Ç¤¢¤í¤¦¡£
701 ¤³¤Î¾ì¹ç¡¢Á´¤Æ¤ÎɬÍפʥ⥸¥å¡¼¥ë¤¬Æþ¤Ã¤¿¶¦ÄÌ¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¡£
702 ¤½¤·¤Æ¡¢
703 .I /linuxrc
704 ¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¡¢
705 .I /linuxrc
706 ¤«¤é¼Â¹Ô¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î¤ß¤ò°Û¤Ê¤Ã¤¿¤â¤Î¤Ë¤·¤Æ¤ª¤¯¡£
707 .PP
708 .\"O A third scenario is more convenient recovery disks.
709 .\"O Because information like the location of the root file-system
710 .\"O partition is not needed at boot time, the system loaded from
711 .\"O .I /dev/initrd
712 .\"O can use a dialog and/or auto-detection followed by a
713 .\"O possible sanity check.
714 3 ÈÖÌܤΥ±¡¼¥¹¤Ï¡¢¤è¤êÊØÍø¤ÊÉüµìÍѥǥ£¥¹¥¯¤òºî¤ë¾ì¹ç¤Ç¤¢¤ë¡£
715 ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î°ÌÃ֤Ȥ¤¤Ã¤¿¾ðÊó¤Ï
716 ¥Ö¡¼¥È»þ¤ËɬÍפʤ¤¤¿¤á¡¢
717 .I /dev/initrd
718 ¤«¤é¥í¡¼¥É¤µ¤ì¤¿¥·¥¹¥Æ¥à¤Ï¡¢
719 ɬÍפÊÀµ¾ïÀ­¥Á¥§¥Ã¥¯¤ò¹Ô¤Ã¤¿¸å¤Ç¡¢¥æ¡¼¥¶¤Ø¤ÎÌ䤤¹ç¤ï¤»¤ä¼«Æ°¸¡½Ð
720 (¤â¤·¤¯¤Ï¤½¤ÎξÊý) ¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¡£
721 .PP
722 .\"O Last but not least, Linux distributions on CD-ROM may use
723 .\"O .B initrd
724 .\"O for easy installation from the CD-ROM.
725 .\"O The distribution can use
726 .\"O .B LOADLIN
727 .\"O to directly load
728 .\"O .I /dev/initrd
729 .\"O from CD-ROM without the need of any floppies.
730 .\"O The distribution could also use a
731 .\"O .B LILO
732 .\"O boot floppy and then bootstrap a bigger RAM disk via
733 .\"O .IR /dev/initrd
734 .\"O from the CD-ROM.
735 (¾¤Ë¤â¤¿¤¯¤µ¤óÎ㤬¤¢¤ë¤À¤í¤¦¤¬) ºÇ¸å¤ÎÎã¤È¤·¤Æ¤Ï¡¢
736 .B initrd
737 ¤òÍøÍѤ¹¤ë¤È¡¢CD-ROM ¾å¤Î Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤ò
738 ¤è¤ê´Êñ¤Ë CD-ROM ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤À¤í¤¦¡£
739 ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ï¡¢
740 .B LOADLIN
741 ¤ò»È¤Ã¤Æ¡¢¥Õ¥í¥Ã¥Ô¡¼¤òÁ´¤¯ÍøÍѤ»¤º¤Ë CD-ROM ¤«¤é
742 .I /dev/initrd
743 ¤òľÀÜ¥í¡¼¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
744 ¤Þ¤¿¡¢
745 .B LILO
746 ¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¤ò»È¤Ã¤Æ¥Ö¡¼¥È¤ò¹Ô¤¤¡¢
747 .I /dev/initrd
748 ¤òÄ̤·¤Æ CD-ROM ¤«¤é¤è¤êÂ礭¤Ê RAM ¥Ç¥£¥¹¥¯¤òµ¯Æ°¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
749 .\"
750 .\"
751 .\"
752 .\"O .SH FILES
753 .SH ¥Õ¥¡¥¤¥ë
754 .I /dev/initrd
755 .br
756 .I /dev/ram0
757 .br
758 .I /linuxrc
759 .br
760 .I /initrd
761 .\"
762 .\"
763 .\"
764 .\"O .SH NOTES
765 .SH Ãí°Õ
766 .IP 1. 3
767 .\"O With the current kernel, any file systems that remain mounted when
768 .\"O .I /dev/ram0
769 .\"O is moved from
770 .\"O .I /
771 .\"O to
772 .\"O .I /initrd
773 .\"O continue to be accessible.
774 .\"O However, the
775 .\"O .I /proc/mounts
776 .\"O entries are not updated.
777 ¸½ºß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
778 .I /dev/ram0
779 ¤¬
780 .I /
781 ¤«¤é
782 .I /initrd
783 ¤Ë°ÜÆ°¤µ¤ì¤¿ºÝ¤Ë¡¢°ÜÆ°»þ¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢
784 ¤½¤Î¸å¤â·Ñ³Ū¤Ë¥¢¥¯¥»¥¹²Äǽ¤Ç¤¢¤ë¡£¤·¤«¤·¡¢
785 .I /proc/mounts
786 ¤Î¥¨¥ó¥È¥ê¤Ï¹¹¿·¤µ¤ì¤Ê¤¤¡£
787 .IP 2.
788 .\"O With the current kernel, if directory
789 .\"O .I /initrd
790 .\"O does not exist, then
791 .\"O .I /dev/ram0
792 .\"O will
793 .\"O .B not
794 .\"O be fully unmounted if
795 .\"O .I /dev/ram0
796 .\"O is used by any process or has any file-system mounted on it.
797 .\"O If
798 .\"O .IR /dev/ram0
799 .\"O is
800 .\"O .B not
801 .\"O fully unmounted, then
802 .\"O .I /dev/ram0
803 .\"O will remain in memory.
804 ¸½ºß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê
805 .I /initrd
806 ¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢
807 .I /dev/ram0
808 ¤ò²¿¤é¤«¤Î¥×¥í¥»¥¹¤¬ÍøÍѤ·¤Æ¤¤¤¿¤ê¡¢²¿¤é¤«¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬
809 .I /dev/ram0
810 ¾å¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¤È¡¢
811 .I /dev/ram0
812 ¤Ï´°Á´¤Ë¤Ï¥¢¥ó¥Þ¥¦¥ó¥È¡Ö¤µ¤ì¤Ê¤¤¡×¡£
813 .I /dev/ram0
814 ¤¬¡¢´°Á´¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¡Ö¤µ¤ì¤Ê¤±¤ì¤Ð¡×¡¢
815 .I /dev/ram0
816 ¤Ï¥á¥â¥ê¾å¤Ë»Ä¤Ã¤Æ¤·¤Þ¤¦¤Ï¤º¤Ç¤¢¤ë¡£
817 .IP 3.
818 .\"O Users of
819 .\"O .I /dev/initrd
820 .\"O should not depend on the behavior give in the above notes.
821 .\"O The behavior may change in future versions of the Linux kernel.
822 .I /dev/initrd
823 ¤ÎÍøÍѼԤϡ¢¾åµ­¤ÎÃí°Õ»ö¹à¤Ç½Ò¤Ù¤¿Æ°ºî¤Ë°Í¸¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤Ù¤­¤Ç¤¢¤ë¡£
824 ¤³¤ì¤é¤ÎÆ°ºî¤Ï Linux ¥«¡¼¥Í¥ë¤Î¾­Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤ÏÊѹ¹¤µ¤ì¤ë
825 ¤«¤â¤·¤ì¤Ê¤¤¤«¤é¤À¡£
826 .\"
827 .\"
828 .\"
829 .\"O .\" .SH AUTHOR
830 .\" .SH Ãø¼Ô
831 .\"O .\" The kernel code for device
832 .\"O .\" .BR initrd
833 .\"O .\" was written by Werner Almesberger <almesber@lrc.epfl.ch> and
834 .\"O .\" Hans Lermen <lermen@elserv.ffm.fgan.de>.
835 .\" .BR initrd
836 .\" ¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Î¥«¡¼¥Í¥ë¥³¡¼¥É¤Ï Werner Almesberger <almesber@lrc.epfl.ch>
837 .\" ¤È Hans Lermen <lermen@elserv.ffm.fgan.de> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£
838 .\"O .\" The code for
839 .\"O .\" .BR initrd
840 .\"O .\" was added to the baseline Linux kernel in development version 1.3.73.
841 .\" .BR initrd
842 .\" ¤Î¤¿¤á¤Î¥³¡¼¥É¤Ï¡¢³«È¯¼Ô¸þ¤±¥Ð¡¼¥¸¥ç¥ó¤Î 1.3.73 ¤Ç
843 .\" ¥á¥¤¥ó¤Î Linux ¥«¡¼¥Í¥ë¤ËÁȤ߹þ¤Þ¤ì¤¿¡£
844 .\"O .SH "SEE ALSO"
845 .SH ´ØÏ¢¹àÌÜ
846 .BR chown (1),
847 .BR mknod (1),
848 .BR ram (4),
849 .BR freeramdisk (8),
850 .BR rdev (8)
851
852 .\"O The documentation file
853 .\"O .I initrd.txt
854 .\"O in the kernel source package, the LILO documentation,
855 .\"O the LOADLIN documentation, the SYSLINUX documentation.
856 ¥«¡¼¥Í¥ë¥½¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤ë¥É¥­¥å¥á¥ó¥È¥Õ¥¡¥¤¥ë
857 .IR initrd.txt "¡¢"
858 LILO ¤Î¥É¥­¥å¥á¥ó¥È¡¢LOADLIN ¤Î¥É¥­¥å¥á¥ó¥È¡¢SYSLINUX ¤Î¥É¥­¥å¥á¥ó¥È¡£