This file is indexed.

/usr/share/doc/HOWTO/ja-html/ext-root-mini-HOWTO-6.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Ext-Rootfs-mini-HOWTO: all-in-one package ¤Îºî¤êÊý</TITLE>
 <LINK HREF="ext-root-mini-HOWTO-7.html" REL=next>
 <LINK HREF="ext-root-mini-HOWTO-5.html" REL=previous>
 <LINK HREF="ext-root-mini-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="ext-root-mini-HOWTO-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc6">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s6">6. all-in-one package ¤Îºî¤êÊý</A></H2>

<P>
<P>Slackware¤Ç¤Ï¿§¡¹¤Ê¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤òÁȤߤ³¤ó¤À¥«¡¼¥Í¥ë¤òÍÑ°Õ¤·¤¿¥Õ¥¡
¥¤¥ë¥·¥¹¥Æ¥à(¥Ö¡¼¥È¥Ç¥¤¥¹¥¯)¤È¥¤¥ó¥¹¥È¡¼¥ëÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à(¥ë¡¼¥È
¥Ç¥£¥¹¥¯) 2 ËçÁȤǥ¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£¤Þ¤¿¡¢¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¥È
¥é¥Ö¥ë¤¬È¯À¸¤·¤¿¾ì¹ç¤Ê¤É¤ËÈó¾ïÍѤΥġ¼¥ë°ì¼°¤òÁȤߤ³¤ó¤À¥ë¡¼¥È¥Õ¥¡¥¤¥ë
¥·¥¹¥Æ¥à(¥ì¥¹¥­¥å¡¼¥Ç¥£¥¹¥¯)¤âÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
<P>¤·¤«¤·¡¢2 Ëç¤Î¥Ç¥£¥¹¥¯¤¬É¬Íפʾì¹ç¡¢¥Þ¡¼¥Õ¥£¤Îˡ§¤Îŵ·¿Îã¤È¤·¤Æ¡¢É¬Í×
¤Ê¾ì¹ç¤Ë¤Ï¤É¤Á¤é¤«¤Î¥Ç¥£¥¹¥¯¤¬¸«Åö¤¿¤é¤Ê¤¯¤Ê¤ë¤Î¤Ç(ñ¤Ë»ä¤ËÀ°ÍýǽÎϤ¬
̵¤¤¤¿¤á¤À¤í¤¦¤±¤É¡¢¡¢)¡¢¤³¤ì¤é¤Î 2 Ëçʬ¤Î¥Ç¡¼¥¿¤ò 1 Ëç¤Î¥Õ¥í¥Ã¥Ô¡¼¤Ë
µÍ¤á¤³¤ó¤Ç¤·¤Þ¤¤¤¿¤¯¤Ê¤ê¤Þ¤¹¡£ËÜÀá¤Ç¤Ï 1 Ëç¤Î FD ¤«¤é Linux ¤òµ¯Æ°¤·¡¢
ºÇ¾®¸Â¤Î¥·¥¹¥Æ¥à¤¬Æ°¤¯´Ä¶­¤ò¹½ÃÛ¤¹¤ëÊýË¡(all-in-one package)¤Ë¤Ä¤¤¤ÆÀâ
ÌÀ¤·¤Þ¤¹¡£
<P>all-in-one package ¤òºî¤ëÊýË¡¤È¤·¤Æ¤Ï¡¢Ä̾ï¤Î ramdisk ¤ò»È¤¦ÊýË¡¤È 
initrd ¤ò»È¤¦ÊýË¡¤Î 2 ¤Ä¤¬¤¢¤ê¤Þ¤¹¡£ramdisk ¤ò»È¤¦¾ì¹ç¤Ë¤Ï¤µ¤é¤Ë lilo 
¤ò·Ðͳ¤¹¤ëÊýË¡¤È·Ðͳ¤·¤Ê¤¤ÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÊýË¡¤ò½ç¤ËÀâÌÀ¤·¤Þ¤¹¡£
<P>
<H2><A NAME="ss6.1">6.1 lilo ·Ðͳ¤Ç ramdisk ¤ò»È¤¦ÊýË¡</A>
</H2>

<P>
<P>ramdisk ¤ò»È¤¦¾ì¹ç¡¢µ¯Æ°ÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à¤ò½ñ¤­¤³¤ó¤À FD ¤Î¶õ¤¤¤Æ¤¤
¤ëÉôʬ¤Ë ramdisk ¤ËÁȤߤ³¤à¤¿¤á¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¤¥á¡¼¥¸¤ò½ñ
¤­¤³¤à¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á¤Ë¤Ï ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò°µ½Ì¤·¤¿¥¤
¥á¡¼¥¸¤ò <CODE>/dev/fd0</CODE> ¤Ë½ñ¤­¤³¤àºÝ¤Ë¡¢dd ¤Î seek ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã
¤Æ¥Ö¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Îʬ¤À¤±¸å¤í¤Ë¤º¤é¤·¤Æ¤ä¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
<P>¤³¤ÎÊýË¡¤ÎÍøÅÀ¤Ï lilo ·Ðͳ¤Çµ¯Æ°¤¹¤ë¤¿¤á¤Ë¥«¡¼¥Í¥ë¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×
¥·¥ç¥ó¤ò»ØÄꤷ¤¿¤ê¡¢Ê£¿ô¤ÎÀßÄê¤òÀڤ꤫¤¨¤Æ»È¤¨¤ë¤³¤È¤Ç¤¹¡£°ìÊý¡¢·çÅÀ¤È
¤·¤Æ¤Ï mount ¤·¤Æ¥Ç¥£¥¹¥¯¤ÎÃæ¿È¤ò³Îǧ¤¹¤ëºÝ¤Ë root fs ¤Îʬ¤·¤«ÆâÍƤ¬É½
¼¨¤µ¤ì¤º¡¢root fs ¤È¤·¤Æ²¿¤¬Æþ¤Ã¤Æ¤¤¤ë¤«¤ò³Îǧ¤¹¤ë¤Ë¤Ïµ¯Æ°¤·¤Æ¤ß¤ë¤·¤«
¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
<P>¤³¤³¤Ç¤Ï Slackware 3.1 ¤ËÉÕ°¤Î AHA-1542 Íѥɥ饤¥Ð¤òÁȤߤ³¤ó¤À¥«¡¼¥Í
¥ë¤Ë rescue disk ¤Î¥¤¥á¡¼¥¸(rescue.gz)¤ò½ñ¤­¤³¤ó¤Ç¡¢Èó¾ïÍѤΠroot/boot 
¥Õ¥í¥Ã¥Ô¡¼¤òºî¤Ã¤Æ¤ß¤Þ¤¹¡£
<P>
<OL>
<LI> AHA-1542 ÍѤε¯Æ°Íѥǥ£¥¹¥¯¥¤¥á¡¼¥¸¤ò dd ¤ò»È¤Ã¤Æ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£
¥¹¥¯¤Ë½ñ¤­¤À¤·¤Þ¤¹¡£

<HR>
<PRE>
# dd if=/cdrom/slackware/bootdsks.144/aha1542.s of=/dev/fd0 bs=1k
556+0 records in
556+0 records out
</PRE>
<HR>


rescue disk ¤Î¥¤¥á¡¼¥¸¤ò boot disk ¤Î¥¤¥á¡¼¥¸¤Î¸å¤í¤Ë½ñ¤­¤³¤ß¤¿¤¤¤¿¤á¡¢
"bs=1k" ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ¡¢boot disk ¤Î¥¤¥á¡¼¥¸¤¬¥Õ¥í¥Ã¥Ô¡¼¤Î¤É¤³¤Þ
¤Ç¤òÀê¤á¤ë¤«¤ò³Îǧ¤·¤Æ¤ª¤­¤Þ¤¹¡£¤³¤ÎÎã¤Ç¤Ï 1 ¥Ö¥í¥Ã¥¯ 1k ¤È¤·¤Æ 556 ¥Ö
¥í¥Ã¥¯¤Þ¤ÇÀê¤á¤Æ¤¤¤Þ¤¹¡£
</LI>
<LI> recue disk ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¤¥á¡¼¥¸¤ò¥Õ¥í¥Ã¥Ô¡¼¤ËÄɲä¹
¤ë¡£

dd ¤Î seek ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤Î¥¤¥á¡¼¥¸¤È½Å¤Ê¤é¤Ê¤¤¤è¤¦ 
560 ¥Ö¥í¥Ã¥¯°Ê¹ß¤Ë rescue disk ¤Î¥¤¥á¡¼¥¸(rescue.gz)¤òÄɵ­¤·¤Þ¤¹¡£

<HR>
<PRE>
# dd if=/cdrom/slackware/rootdsks/rescue.gz of=/dev/fd0 bs=1k seek=560
529+1 records in
529+1 records out
</PRE>
<HR>


¤³¤ì¤Ç 1 Ëç¤Î FD ¤Ë¥Ö¡¼¥ÈÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à¤È¥ë¡¼¥ÈÍѤΥե¡¥¤¥ë¥·¥¹
¥Æ¥à¤¬Æþ¤ê¤Þ¤·¤¿¡£
</LI>
<LI> boot disk ¤Î /etc/lilo.conf ¤Î½¤Àµ

¼¡¤Ë¡¢µ¯Æ°»þ¤Ë ramdisk ¤òÆɤߤ³¤à¤è¤¦¤Ë boot disk ¤Î 
<CODE>/etc/lilo.conf</CODE> ¤ò½¤Àµ¤·¤Þ¤¹¡£¤³¤Î¤¿¤á¤Ë¤Ï <CODE>/dev/fd0</CODE> 
¤ò¤É¤³¤«Å¬Åö¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤Ë mount ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤Ç¤Ï 
/workdir ¤Ë¥Þ¥¦¥ó¥È¤·¤Æ¤¤¤Þ¤¹¡£

<HR>
<PRE>
# mount /dev/fd0 /workdir
# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda3             944303  747325   148191     83%   /
/dev/hda1             308248  267832    40416     87%   /dos
/dev/fd0                 539     490       49     91%   /workdir
#
</PRE>
<HR>


¤³¤ÎÊý¼°¤Çºî¤Ã¤¿ all-in-one ¥Ç¥£¥¹¥¯¤ò¥Þ¥¦¥ó¥È¤·¤¿¾ì¹ç¡¢Ç§¼±¤µ¤ì¤ë¤Î¤Ï
¤³¤Î¤è¤¦¤Ë¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤ÎÉôʬ¤À¤±¤Ç¤¹¡£

¤â¤È¤â¤È¤Î lilo.conf ¤Ï¤³¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£

<HR>
<PRE>
# cat /workdir/etc/lilo.conf 
boot = /dev/fd0
message=/boot/message
prompt
image = /vmlinuz
        label = ramdisk
        ramdisk = 49152
        root = /dev/fd0u1440
        vga = normal
image = /vmlinuz
(¸åά)
#
</PRE>
<HR>


¤³¤Î /workdir/etc/lilo.conf ¤ò½¤Àµ¤·¤Æ¡¢µ¯Æ°»þ¤Ë¼«Æ°Åª¤Ë ramdisk ¤òÆÉ
¤ß¤³¤à¤è¤¦¤Ë¤·¤Þ¤¹¡£ramdisk ÍѤ˥«¡¼¥Í¥ë¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤È¤·¤Æ°Ê²¼¤Î¤è
¤¦¤Ê¥Ñ¥é¥á¡¼¥¿¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

<UL>
<LI>ramdisk_start

FD ¾å¤Ç ramdisk ¤¬³«»Ï¤¹¤ë¥Ö¥í¥Ã¥¯¤ò»ØÄꤷ¤Þ¤¹¡£º£²ó¤ÎÎã¤Ç¤Ï 560 ¤Ç¤¹¡£
</LI>
<LI>load_ramdisk

ramdisk ¤ò¥í¡¼¥É¤¹¤ë(1)¤«¤·¤Ê¤¤(0)¤«¤Î»ØÄê¤Ç¤¹¡£º£²ó¤Ï 1 ¤ò»ØÄꤷ¤Æ¡¢
ramdisk ¤ò¥í¡¼¥É¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
</LI>
<LI>ramdisk_prompt

ramdisk ¤ò¥í¡¼¥É¤¹¤ëºÝ¤Ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹(1)¤«½Ð¤µ¤Ê¤¤(0)¤«¤Î»ØÄê¤Ç¤¹¡£
FD ¤¬ 2 ËçÁȤˤʤäƤ¤¤ë¾ì¹ç¤Ï FD ¤òÆþ¤ì¤«¤¨¤ë¤¿¤á¤Ë¥×¥í¥ó¥×¥È¤ò½Ð¤·¤Þ
¤¹¤¬¡¢all-in-one ¤Î¾ì¹ç¤Ï¥×¥í¥ó¥×¥È¤ò½Ð¤¹É¬ÍפϤʤ¤¤Î¤Ç 0 ¤ò»ØÄꤷ¤Þ¤¹¡£
</LI>
<LI>ramdisk_size

ɬÍ×¤Ê ramdisk ¤Î¥µ¥¤¥º¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 4096k ¤Ë¤Ê¤Ã¤Æ¤ª¤ê¡¢¤³¤Î¥µ
¥¤¥º¤òĶ¤¨¤ë ramdisk ¤ò³ÎÊݤ·¤¿¤¤¾ì¹ç¤ä¥á¥â¥ê¤Î¾¯¤Ê¤¤¥Þ¥·¥ó¤Ç ramdisk 
¤Î¥µ¥¤¥º¤òÀÚ¤êµÍ¤á¤¿¤¤¾ì¹ç¤Ë»ØÄꤷ¤Þ¤¹¡£º£²ó¤ÏÆä˻ØÄꤹ¤ëɬÍפϤ¢¤ê¤Þ
¤»¤ó¡£
</LI>
</UL>


°Ê¾å¤Î¤³¤È¤«¤é¡¢º£²ó¤Ï lilo.conf ¤Ë &quot;ramdisk_start=560
load_ramdisk=1 prompt_ramdisk=1&quot; ¤È¤¤¤¦»ØÄê¤òÄɲ乤ì¤Ð¤¤¤¤¤³¤È
¤¬Ê¬¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï lilo.conf ¤Ë &quot;append = &quot;
¤È¤¤¤¦·Á¤Çµ­½Ò¤·¤Þ¤¹¡£

<HR>
<PRE>
boot = /dev/fd0
message=/boot/message
append="ramdisk_start=560 load_ramdisk=1 prompt_ramdisk=0"
prompt
image = /vmlinuz
        label = ramdisk
        root = /dev/fd0u1440
        vga = normal
</PRE>
<HR>


</LI>
<LI> /sbin/lilo ¤ò¼Â¹Ô¤·¤Æ¡¢MBR ¤ÎÀßÄê

lilo.conf ¤ò½¤Àµ¤¹¤ë¤È¡¢°ìÅÙ <CODE>/sbin/lilo </CODE>¤ò¼Â¹Ô¤·¤Æ¡¢ÀßÄê¾ðÊó
¤ò MBR ¤ËÈ¿±Ç¤µ¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£lilo ¤Ï -r ¥ª¥×¥·¥ç¥ó¤Ç¥Ç¥£¥ì¥¯¥È¥ê
¤ò»ØÄꤹ¤ë¤È¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë chroot ¤·¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£º£²ó¤ÎÎã¤Ç¤Ï 
<CODE>/workdir</CODE> ¤Ë <CODE>/dev/fd0</CODE> ¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢
<CODE>/workdir</CODE> ¤ò»ØÄꤷ¤Æ <CODE>/workdir/etc/lilo.conf</CODE> ¤ÎÀßÄê¤ò
È¿±Ç¤¹¤ë¤è¤¦¤Ë lilo ¤ò¼Â¹Ô¤·¤Þ¤¹¡£

<HR>
<PRE>
# /sbin/lilo -r /workdir
Added ramdisk *
Added big2
Added small2
Added drive2
Added mount
#
</PRE>
<HR>


¤³¤ì¤Ç all-in-one ¤Î boot/rescue ¥Ç¥£¥¹¥¯¤¬¤Ç¤­¤Þ¤·¤¿¡£¥·¥¹¥Æ¥à¤ò FD 
¤«¤éΩ¤Á¤¢¤²¤Æ¡¢¼«Æ°Åª¤Ë ramdisk ¤¬¥í¡¼¥É¤µ¤ì¡¢rescue disk ¤¬µ¯Æ°¤¹¤ë
¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
</LI>
</OL>
<H2><A NAME="ss6.2">6.2 zdisk ¤Ç ramdisk ¤ò»È¤¦ÊýË¡</A>
</H2>

<P>
<P>lilo ¤ò»È¤Ã¤Æµ¯Æ°¤¹¤ë¾ì¹ç¡¢lilo ¤Î½Ð¤¹ boot: ¥×¥í¥ó¥×¥È¤ËÂФ·¤ÆɬÍפÊ
¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¤Î¤Ç¡¢¤µ¤Þ¤¶¤Þ¤Ê¾õ¶·¤ËÂбþ¤¹¤ë¤³¤È¤¬¤Ç
¤­¤Þ¤¹¡£°ìÊý¡¢¤³¤ÎÊýË¡¤Ç¤Ï¡¢µ¯Æ°ÍѤ˥ե¡¥¤¥ë¥·¥¹¥Æ¥à¤¬É¬ÍפȤʤꡢ»ÈÍÑ
¤¹¤ë¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤âÂ礭¤á¤Ë¤Ê¤ê¤Þ¤¹¡£
<P>°ìÊý¡¢Linux ¤Î make zImage ¤ÇºîÀ®¤µ¤ì¤ë¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤Ë¤Ï FD ¤«¤é¼«
ʬ¼«¿È¤òµ¯Æ°¤¹¤ë¤¿¤á¤Î¥³¡¼¥É¤¬ÉÕ¤¤¤Æ¤¤¤ë¤Î¤Ç¡¢lilo ¤Î¥ª¥×¥·¥ç¥ó»ØÄê¤ò
¤¹¤ëɬÍפ¬¤Ê¤¤´Ä¶­¤Ç¤Ï lilo ¤ò»È¤ï¤º¤ËľÀÜ FD ¤«¤é¥«¡¼¥Í¥ë¤òµ¯Æ°¤¹¤ë¤³
¤È¤â²Äǽ¤Ç¤¹¡£¤¿¤À¤·¡¢¤³¤Îµ¡Ç½¤ò»È¤Ã¤Æ ramdisk ¤ò¥í¡¼¥É¤¹¤ë¤¿¤á¤Ë¤Ï 
rdev ¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥«¡¼¥Í¥ë¼«¿È¤Ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð
¥¤¥¹Ì¾¤ä ramdisk ¤Î°ÌÃÖ¡¢ ramdisk ¤Î¥í¡¼¥É¤Î̵ͭ¤ò½ñ¤­¤³¤ó¤Ç¤ª¤¯É¬Íפ¬
¤¢¤ê¤Þ¤¹¡£
<P>¤³¤ÎÊýË¡¤ÎÍøÅÀ¤Ï boot disk ¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ÉÔÍפǥ«¡¼¥Í¥ë¥¤¥á¡¼¥¸
¤òľ½ñ¤­¤¹¤ì¤Ð¤¤¤¤¤À¤±¤Ë¤Ê¤ë¤Î¤Ç¡¢FD ¤Î»ÈÍÑÎ̤¬¾¯¤Ê¤¯¤Ç¤­¤ë¤³¤È¤Ç¤¹¡£
°ìÊý¡¢·çÅÀ¤È¤·¤Æ¤Ï¡¢¥«¡¼¥Í¥ë¤¬Ä¾Àܵ¯Æ°¤·¤Æ¤·¤Þ¤¦¤Î¤Ç¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×
¥·¥ç¥ó¤ò»ØÄê¤Ç¤­¤Ê¤¤¤³¤È¤Ç¤¹¡£¤½¤Î¤¿¤á¤³¤ÎÊýË¡¤Ç 1FD router ¤òºî¤ë¤³¤È
¤Ï¤Ç¤­¤Þ¤»¤ó(¥ë¡¼¥¿¤òºî¤ë¾ì¹ç¡¢Ê£¿ô¤Î ethernet ¥«¡¼¥É¤òǧ¼±¤µ¤»¤ëɬÍ×
¤¬¤¢¤ë¤Î¤Ç¡¢¥«¡¼¥Í¥ë¥ª¥×¥·¥ç¥ó¤¬É¬¿Ü¤Ç¤¹)
<P>¤Þ¤¿ºîÀ®¤·¤¿¥Õ¥í¥Ã¥Ô¡¼¤ÎÃæ¿È¤ò³Îǧ¤¹¤ëÊýË¡¤¬¤Ê¤¤(¤³¤ì¤Çºî¤Ã¤¿ 
<CODE>/dev/fd0</CODE> ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤·¤Æ¥Þ¥¦¥ó¥È¤Ç¤­¤Þ¤»¤ó)¤³¤È¤â·ç
ÅÀ¤È¸À¤¨¤ë¤Ç¤·¤ç¤¦¡£
<P>
<OL>
<LI> AHA-1542 ÍѤΥ«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤ò FD ¤Ë½ñ¤­¤³¤à¡£

Á°Àá¤ÈƱÍÍ¤Ë AHA-1542 ÍѤΥɥ饤¥Ð¤òÁȤߤ³¤ó¤À¥«¡¼¥Í¥ë¤ò»È¤¤¤Þ¤¹¤¬¡¢º£
²ó½ñ¤­¤³¤à¤â¤Î¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤Ï¤Ê¤¯¥«¡¼¥Í¥ë¤½¤ì¼«¿È¤Ê¤Î¤Ç¡¢É¬ÍפÊ
¥Õ¥¡¥¤¥ë¤Ï <CODE>/cdrom/slackware/kernels/aha1542.s/zImage</CODE> ¤Ë¤Ê¤ê¤Þ¤¹¡£

<HR>
<PRE>
# dd if=/cdrom/slackware/kernels/aha1542.s/zImage of=/dev/fd0 bs=1k
437+1 records in
437+1 records out
#
</PRE>
<HR>


¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò½ñ¤­¤³¤ó¤À¾ì¹ç¡¢530 ¥Ö¥í¥Ã¥¯É¬ÍפǤ·¤¿¤¬¡¢¥«¡¼¥Í¥ë¤À
¤±¤ò½ñ¤­¤À¤¹¤È 440 ¥Ö¥í¥Ã¥¯¤Û¤É¤ÇºÑ¤ó¤Ç¤¤¤ë¤³¤È¤¬Ê¬¤ê¤Þ¤¹¡£
</LI>
<LI> rescue disk ¤Î¥¤¥á¡¼¥¸¤ò FD ¤ËÄɲ乤롣

¥«¡¼¥Í¥ë¤Ï 440 ¥Ö¥í¥Ã¥¯¤°¤é¤¤¤Ç¼ý¤Þ¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢rescue.gz ¤Ï 450 ¥Ö¥í¥Ã
¥¯°Ê¹ß¤Ë½ñ¤­¤³¤ß¤Þ¤·¤ç¤¦¡£

<HR>
<PRE>
# dd if=/cdrom/slackware/rootdsks/rescue.gz of=/dev/fd0 bs=1k seek=450
529+1 records in
529+1 records out
#
</PRE>
<HR>

</LI>
<LI> rdev ¤Ç¥«¡¼¥Í¥ë¼«¿È¤ËɬÍפʾðÊó¤òÀßÄê

lilo ¤Î¾ì¹ç¡¢¥«¡¼¥Í¥ë¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ñ¥é¥á¡¼¥¿¤ò»È¤Ã¤Æ ramdisk ¤Ë´Ø¤¹
¤ëÀßÄê¤ò¹Ô¤¨¤Þ¤·¤¿¤¬¡¢º£²ó¤Ï lilo ¤ò·Ðͳ¤·¤Ê¤¤¤Î¤Ç¥«¡¼¥Í¥ë¼«¿È¤ËɬÍפÊ
¥Ñ¥é¥á¡¼¥¿¤ò½ñ¤­¤³¤ó¤Ç¤·¤Þ¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á¤Ë»È¤¦¥³¥Þ¥ó¥É¤¬ 
<CODE>rdev</CODE> ¤Ç¤¹¡£¤Þ¤º¡¢rdev ¥³¥Þ¥ó¥É¤Ç <CODE>/dev/fd0</CODE> ¤Ë¤¢¤ë¥«¡¼
¥Í¥ë¤Î¥ë¡¼¥È¥Ç¥Ð¥¤¥¹¤ò <CODE>/dev/fd0</CODE> ¤Ë½ñ¤­¤«¤¨¤Æ¤ª¤­¤Þ¤¹¡£

<HR>
<PRE>
# rdev /dev/fd0 /dev/fd0
</PRE>
<HR>


rdev ¤Ç¤Ï¥«¡¼¥Í¥ëÆâÉô¤Î 1 word(2 bytes)¤ÎÎΰè¤òľÀܽñ¤­Âؤ¨¤ë¤³¤È¤Ç 
ramdisk ¤Î¥í¡¼¥É¤Î̵ͭ¤ä ramdisk ¤Î°ÌÃÖ¤òÊѹ¹¤Ç¤­¤Þ¤¹¡£

rdev ¤Ç»ØÄꤹ¤ë 2 bytes ¤Î¤¦¤Á¡¢²¼°Ì 11 bit(0 bit -> 10 bit) ¤Ï 
ramdisk ¤Î°ÌÃÖ¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì(1k ñ°Ì¤Î¥ª¥Õ¥»¥Ã¥È¾ðÊó)¡¢14 bit 
Ìܤ¬ ramdisk ¤Î¥í¡¼¥É¤Î̵ͭ¡¢15 bit Ìܤ¬ ramdisk ¤ò¥í¡¼¥É¤¹¤ëºÝ¤Î¥×¥í
¥ó¥×¥È¤Î̵ͭ¤Î»ØÄê¤Ç¤¹¡£

º£²ó¤ÎÎã¤Ç¤Ï¡¢ramdisk ¤ò¥í¡¼¥É¤·(bit 14 on)¡¢ramdisk ¤ò¥í¡¼¥É¤¹¤ëºÝ¤Ë
¥×¥í¥ó¥×¥È¤ÏÉÔÍ×(bit 15 off)¡¢ramdisk ¤Î¥ª¥Õ¥»¥Ã¥È¤Ï 440 ¥Ö¥í¥Ã¥¯¤Ë¤Ê
¤ê¤Þ¤¹¤Î¤Ç¡¢

<CODE>2^15*0(prompt) + 2^14*1(ramdisk) + 440(offset) = 16824</CODE> ¤ò 
rdev ¤ÇÀßÄꤷ¤Þ¤¹¡£Æ±»þ¤Ë rdev -R ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹
¥Æ¥à¤ò r/w ¤Ç¥Þ¥¦¥ó¥È¤¹¤ë¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¡£

<HR>
<PRE>
# rdev -r /dev/fd0 16384
# rdev -R /dev/fd0 0
</PRE>
<HR>


¤³¤ì¤Ç¡¢Ä¾Àܵ¯Æ°ÍѤΠboot/root ¥Õ¥í¥Ã¥Ô¡¼¤¬¤Ç¤­¤Þ¤·¤¿¡£¥·¥¹¥Æ¥à¤òºÆµ¯
Æ°¤·¤Æ¡¢rescue disk ¤¬Àµ¤·¤¯µ¡Ç½¤¹¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
</LI>
</OL>
<P>
<H2><A NAME="ss6.3">6.3 initrd ¤ò»È¤¦ÊýË¡</A>
</H2>

<P>initrd ¤ò»È¤¦ÊýË¡¤ÎÍøÅÀ¤Ï¡¢¥í¡¼¥É¤¹¤ë ramdisk ¤Î¤¢¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
°µ½Ì¥Õ¥¡¥¤¥ë¤È¤·¤ÆľÀÜ»ØÄê¤Ç¤­¤ë¤Î¤Ç¡¢FD ¤ÎÃæ¤Ë¸«¤¨¤Ê¤¤Îΰ褬̵¤¯¤Ê¤ë
¤³¤È¤Ç¤¹¡£»ä¤Î¤è¤¦¤ËÀ°ÍýǽÎϤÎ̵¤¤¿Í´Ö¤Ë¤Ï¤É¤Î root fs ¥¤¥á¡¼¥¸¤¬Æþ¤Ã
¤Æ¤¤¤ë¤Î¤«³Îǧ¤·¤Æ¤«¤éµ¯Æ°¤Ç¤­¤ë¤³¤ÎÊý¼°¤¬¤â¤Ã¤È¤â°Â¿´¤Ç¤­¤Þ¤¹(¾Ð)¡£¤Þ
¤¿¡¢FD Á´ÂΤλÈÍÑÎ̤¬¸«¤¨¤ë¤Î¤Ç¡¢¤¢¤È¤É¤ì¤¯¤é¤¤¤Îµ¡Ç½¤òÁȤߤ³¤á¤ë¤«¤ò
¸¡Æ¤¤¹¤ëºÝ¤Ë¤âÊØÍø¤Ç¤¹¡£
<P>°ìÊý¡¢¤³¤ÎÊýË¡¤Î·çÅÀ¤È¤·¤Æ¤Ï¡¢Slackware 3.1 ¤ËÉÕ°¤Î¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤Ë
¤Ï initrd µ¡Ç½¤ÏÁȤߤ³¤Þ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¤³¤Î¤¿¤á¤Î¥«¡¼¥Í¥ë¤Ï¼ê¸µ¤Ç 
initrd µ¡Ç½¤òÁȤ߹þ¤ó¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤Ç¤¹¡£¤Þ¤¿¡¢
rescue.gz ¤â¤½¤Î¤Þ¤Þ¤Ç¤Ï initrd ¤È¤·¤Æ»È¤¨¤Ê¤¤¤¿¤á¡¢¾¯¤·ºÙ¹©¤ò¤·¤Æ¤ä¤ë
ɬÍפ¬¤¢¤ê¤Þ¤¹¡£
<P>
<OL>
<LI> ¼ê¸µ¤Ç¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë

ɬÍפʥª¥×¥·¥ç¥ó¤òÁȤߤ³¤ó¤Ç¥«¡¼¥Í¥ë¤òÀßÄꤷ¡¢make zImage ¤·¤Æ¤ª¤­¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤òÁª¤ÖºÝ¤Ë¡¢ramdisk µ¡Ç½¤È initrd µ¡Ç½¤Ï˺¤ì¤º¤Ë¥«¡¼¥Í¥ë¤ËÁÈ
¤ß¤³¤ó¤Ç¤¯¤À¤µ¤¤¡£

ramdisk µ¡Ç½¤Ï¥â¥¸¥å¡¼¥ë²½¤Ç¤­¤Þ¤¹¤¬¡¢¥â¥¸¥å¡¼¥ë¤Ç¤Ï¤Ê¤¯¥«¡¼¥Í¥ë¤ËÁȤß
¤³¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£
</LI>
<LI> µ¯Æ°ÍѤΠFD ¤Î½àÈ÷

¤³¤ÎÊý¼°¤Ç¤Ï FD 1 Ëç¤Ë 1 ¤Ä¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤Ã¤Æ¡¢¤½¤³¤Ë boot fs 
¤È initrd ÍѤΰµ½Ì¤·¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÃÖ¤¯¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£FD ¤Ë¥Õ¥¡
¥¤¥ë¥·¥¹¥Æ¥à¤òºî¤ëºÝ¤Ï ext2fs ¤è¤ê¤â minix fs ¤Ë¤·¤¿Êý¤¬ÍÆÎ̤ò¸úΨ¤è¤¯
»È¤¨¤Þ¤¹¡£¾õ¶·¤Ë¤è¤Ã¤Æ¤Ï -i ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ i-node ¤òÁý¤·¤Æ¤ª¤¤¤¿Êý
¤¬¤¤¤¤¤«¤âÃΤì¤Þ¤»¤ó¡£

<HR>
<PRE>
# mkfs.minix /dev/fd0 1440
480 inodes
1440 blocks
Firstdatazone=19 (19)
Zonesize=1024
Maxsize=268966912
#
</PRE>
<HR>

</LI>
<LI> FD ¤ËɬÍפʥե¡¥¤¥ë¤Î¥³¥Ô¡¼

¤³¤Î FD ¤òµ¯Æ°ÍѤ˻Ȥ¦¤Ë¤Ï <CODE>/dev</CODE> ¤ä <CODE>/etc</CODE> °Ê²¼¤Î¥Õ¥¡¥¤
¥ë¤¬É¬ÍפǤ¹¤¬¡¢¤½¤ì¤é¤ÏSlackware ¤Î¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤Î¥¤¥á¡¼¥¸¤ò¥³¥Ô¡¼¤¹
¤ë¤Î¤¬´Êñ¤Ç¤·¤ç¤¦¡£¤½¤Î¤¿¤á¤Ë <CODE>/dev/fd0</CODE> ¤ò <CODE>/workdir</CODE> 
¤Ë¡¢<CODE>/cdrom/slackware/bootdsk.144/aha1542.s</CODE> ¤ò <CODE>/mnt</CODE> 
¤Ë¤½¤ì¤¾¤ì¥Þ¥¦¥ó¥È¤·¡¢tar ¤ò»È¤Ã¤Æ¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤Î¥¤¥á¡¼¥¸¤ò FD ¤Ë¥³¥Ô¡¼
¤·¤Þ¤¹

<HR>
<PRE>
# mount /dev/fd0 /workdir
# mount /cdrom/slackware/bootdsk.144/aha1542.s /mnt -o loop
# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda3             944303  747372   148144     83%   /
/dev/hda1             308248  267832    40416     87%   /dos
/cdrom/slackware/bootdsk.144/aha1542.s
                         539     490       49     91%   /mnt
/dev/fd0                1404       1     1403      0%   /workdir
#
# cd /mnt
# tar cvf - * |(cd /workdir; tar xf -)
# sync
# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda3             944303  747372   148144     83%   /
/dev/hda1             308248  267832    40416     87%   /dos
/cdrom/slackware/bootdsk.144/aha1542.s
                         539     490       49     91%   /mnt
/dev/fd0                1404     490      914     35%   /workdir
# ls -l /workdir
total 446
drwxr-xr-x   2 root     root          160 Jun 13  1996 boot
drwxr-xr-x   2 root     root         3632 May 20  1996 dev
drwxr-xr-x   2 root     root           48 May  8  1995 etc
drwxr-xr-x   2 root     root           32 Mar 10  1993 proc
-rw-r--r--   1 root     root       448013 Jun 13  1996 vmlinuz
#
</PRE>
<HR>


¤³¤Î»þÅÀ¤Ç¤Î <CODE>/workdir/vmlinuz</CODE> ¤Ï initrd ¤Îµ¡Ç½¤¬ÁȤߤ³¤Þ¤ì¤Æ
¤¤¤Ê¤¤¥«¡¼¥Í¥ë¤Ê¤Î¤Ç¡¢¼ê¸µ¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¤¿ zImage(¤¢¤ë¤¤¤Ï bzImage) ¥Õ¥¡
¥¤¥ë¤ò vmlinuz ¤ËÃÖ¤­¤«¤¨¤Þ¤¹¡£

<HR>
<PRE>
# cp /usr/src/linux/arch/i386/boot/zImage /workdir/vmlinuz
</PRE>
<HR>

</LI>
<LI> initrd ¤Î½àÈ÷

initrd ¤Ç»È¤¦¤¿¤á¤Ë¤Ï rescue.gz ¤Ë linuxrc ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤òºî¤ëɬÍפ¬
¤¢¤ê¤Þ¤¹(linuxrc ¤Î¼ÂÂΤÏbin/sh ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¹½¤¤¤Þ¤»¤ó)¡£
¤³¤Î¤¿¤á¤Ë¤Ï°ìÅÙ rescue.gz ¤òŸ³«¤·¤Æ¥Õ¥¡¥¤¥ë¤È¤·¤Æ¥Þ¥¦¥ó¥È¤¹¤ëɬÍפ¬
¤¢¤ê¤Þ¤¹¡£

<HR>
<PRE>
# gunzip &lt; /cdrom/slackware/rootdsks/rescue.gz > /tmp/rescue
# mount /tmp/rescue /tmpmnt -o loop
# cd /tmpmnt
# ln -s bin/sh linuxrc
# cd /
# umount /tmpmnt
# gzip -9 &lt; /tmp/rescue > /workdir/rescue.gz
</PRE>
<HR>

</LI>
<LI> /etc/lilo.conf ¤ÎÀßÄê

<CODE>/workdir/etc/lilo.conf</CODE> ¤ò½¤Àµ¤·¤Æ¡¢initrd ¤È¤·¤Æ rescue.gz ¤ò
»È¤¦¤è¤¦¤Ë¤·¤Þ¤¹¡£initrd ¤ò»È¤¦¾ì¹ç¡¢lilo.conf ¤Ë &quot;initrd =
filename&quot; ¤È¤¤¤¦¥ª¥×¥·¥ç¥ó¤òÄɲä·¤Þ¤¹¡£»ä¤Ï¤³¤¦¤¤¤¦É÷¤Ë¤·¤Æ¤ß¤Þ
¤·¤¿¡£

<HR>
<PRE>
boot = /dev/fd0
message=/boot/message
prompt
image = /vmlinuz
        label = ramdisk
        initrd = /rescue.gz
        vga = normal
</PRE>
<HR>


lilo.conf ¤òÀßÄꤹ¤ì¤Ð¡¢lilo ¤òºÆ¼Â¹Ô¤·¤Æ¡¢Êѹ¹ÅÀ¤òÈ¿±Ç¤µ¤»¤Þ¤¹¡£

<HR>
<PRE>
# /sbin/lilo -r /workdir
Added ramdisk *
#
</PRE>
<HR>


¤³¤ì¤Ç initrd ¤ò»È¤Ã¤¿ all-in-one disk ¤¬¤Ç¤­¤Þ¤·¤¿¡£¥·¥¹¥Æ¥à¤òºÆµ¯Æ°
¤·¤ÆÀµ¤·¤¯µ¡Ç½¤¹¤ë¤«³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÎã¤Ç¤Ï ctrl-D ¤ä exit ¤Ç 
linuxrc ¤ò½ªÎ»¤µ¤»¤ëÁ°¤Ë¡¢ËÜʸ½ñÃæ¤ÇÀâÌÀ¤·¤¿ÊýË¡¤Ç¼ÂºÝ¤Î¥ë¡¼¥È¥Õ¥¡¥¤¥ë
¥·¥¹¥Æ¥à¤òÀßÄꤷ¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¤³¤È¤Ë¸æÃí°Õ¤¯¤À¤µ¤¤¡£
</LI>
</OL>
<P>
<HR>
<A HREF="ext-root-mini-HOWTO-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="ext-root-mini-HOWTO.html#toc6">Ìܼ¡¤Ø</A>
</BODY>
</HTML>