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
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
|
<!-- $Id: install.sgml,v 1.6 1999-05-11 10:31:51 foxfair Exp $ -->
<!-- The FreeBSD Documentation Project -->
<!-- Translate into Chinese by foxfair@FreeBSD.ORG -->
<!-- English Version: 1.14 -->
<sect>
<heading>¦w¸Ë FreeBSD<label id="install"></heading>
<sect1>
<heading>§Ú¸Ó¤U¸üþ¨ÇÀÉ®×¥H¨ú±o FreeBSD¡H</heading>
<p>³q±`§A¥u»Ýn¤@±i³nºÐ image ÀÉ¡A<em>floppies/boot.flp</em>¡A§â¥¦«þ
¨©¨ì 1.44MB ³nºÐ¤ù¤WµM«á±Ò°Ê¥¦¡A¦A¥h¤U¸ü¨ä¥Lªº³¡¥÷(¦w¸Ëµ{§Ç·|ºÞ
²z§Aªº TCP/IP ³s½u¡A¥H¤Î tapes¡A¥úºÐ¾÷¡A³nºÐ¾÷¡ADOS ¤À³Î°Ï¡A¤Î
¨ä¥L¥un¬O¦w¸Ë¹Lµ{¤¤»Ýn¥Î¨ìªº¨Æª«)¡C
<p>Y§A¥u»Ýn¦Û¤v¤U¸ü distributions(¥i¨³³tªº¥Ñ DOS Àɮרt²Î¨Ó¦w¸Ë)
¡A¥H¤U¬O§ÚÌ«Øij§A§ì¨Ó¦w¸Ëªº distributions¡G
<itemize>
<item> bin/<newline>
<item> manpages/<newline>
<item> compat*/<newline>
<item> doc/ <newline>
<item> src/ssys.* <newline>
</itemize>
<p>¦w¸Ëµ{§Çªº§¹¾ã«ü¥O¡A¥H¤Î§ó¦h´¶¹M©Ê¦w¸Ë®É·|¸I¨ìªº°ÝÃD¥i¥H¦b
<url url="../handbook/install.html"
name="Handbook entry on installing FreeBSD.">³o¸Ì§ä¨ì¡C
<sect1>
<heading>±Ï©R¡I±Ò°Êªº³nºÐ image ÀɵLªk¶ë¨ì¤@¤ù³æ¿Wªº³nºÐ¤ù¸Ì¡I
</heading>
<p>¤@±i 3.5 ^¦T(1.44MB)³nºÐ¤ù¥i¥H®e¯Ç 1474560 ¦ì¤¸²Õªº¸ê®Æ¡C
±Ò°Êªº image ÀÉ´Nè¦n¬O³oÓ¤j¤p¡C
<p>¦b·Ç³Æ±Ò°Ê³nºÐ¤ù®É±`¨£ªº¿ù»~¦³¡G
<itemize>
<item>¨Ï¥Î <tt>FTP</tt> ®É¨S¦³¨Ï¥Î <tt>binary</tt> ¼Ò¦¡¤U¸ü³nºÐ
image¡C
<p>¬Y¨Ç FTP client ³nÅ饦̤º©wªº¶Ç¿é¼Ò¦¡¬O <tt>ascii</tt>
¨Ã¥B¸ÕµÛ§ó§ï¥ô¦óªº end-of-line ¦r¤¸¡A¥H²Å¦X³oÓ client ¨t²Î
¥»¨ªºÂà´«¡C¤j³¡¤À±¡§Î¤U³o¥²µM·|·´·l±Ò°Ê image ÀÉ¡AÀˬd¤@¤U
§A¤U¸üªº±Ò°Ê image Àɤj¤p¡G¦pªG³o¤£¬O<em>§¹¥þ¦a</em>»P server
ºÝ¤Wªº¤j¤p¬Û¦P¡A¨º»ò§Aªº¤U¸üµ{§Ç´N¦³°ÝÃD¡C
<p>¸Ñ¨M¤èªk¡G¦b§A³s±µ¤W server ¦ý©|¥¼¶}©l¤U¸ü¬M¹³Àɤ§«e¡A
¬Ý¨ì FTP ©R¥O´£¥Ü¸¹®É¥´ <tt>binary</tt>¡C
<item>¨Ï¥Î DOS ªº <tt>copy</tt> ©R¥O(©Îµ¥®Äªº GUI ¤u¨ã)¨Ó§â±Ò
°Ê image Àɶǰe¨ì³nºÐ¤ù¡C
<p>Ãþ¦ü¹³ <tt>copy</tt> ªºµ{¦¡¡A¦b±Ò°Ê image ÀɳQ«Ø¥ß¨Ã¥Bª½±µ
¶}¾÷«á¨Ã¨S¦³¥\¥Î¡C¬M¹³Àɸ̦³§¹¾ãªººÏºÐ¤º®e¡AºÏy¹ïºÏy¡A³o¥N
ªíµÛ§AµLªk¥ÎºÏ¤ù¤W©T©wªºÀÉ®×¥h¨ú¥N¥¦¡C
§A¥²¶·§â¥¦¶Ç°e¨ì³nºÐ¤ùªº``raw''¤W¡A¨Ï¥Î§C¶¥¤Æ¤u¨ã(¹³¬O
<tt>fdimage</tt> ©Î <tt>rawrite</tt>)¡A³o¨Ç¦b
<url url="../handbook/install.html" name="installation guide to
FreeBSD">¸Ì±¦h¦³´yz¡C
</itemize>
<sect1>
<heading>¦w¸Ë FreeBSD ªº«ü¥O¦bþ¸Ì¡H</heading>
<p>§A¥i¥H¦b³o¸Ì§ä¨ì¦w¸Ë«ü¥O¡C
<url url="../handbook/install.html"
name="Handbook entry on installing FreeBSD.">
<sect1>
<heading>n°õ¦æ FreeBSD §ÚÁÙ»Ýn¤°»ò¡H</heading>
<p>§A»Ýn¤@¥x 386 ©Î§ó¦nªº PC¡A¥]§t 5MB ©Î§ó¦hªº RAM ¥H¤Î¦Ü¤Ö 60MB
ªººÏºÐªÅ¶¡¡C¥i¥H¶È¨Ï¥Î¤@Ó§C¶¥ªº MDA ¹Ï§Î¥d¡A¦pªG§An°õ¦æ X11R6
¡A´N»Ýn VGA ©Î§ó¦nªºµø°T¥d¡C
<p>¥ç°Ñ¦Ò³oÓ³¹¸` <ref id="hardware" name="Hardware compatibility">
<sect1>
<heading>§Ú¥u¦³ 4MB RAM¡A¨º§Ú¯à¦w¸Ë FreeBSD ¶Ü¡H</heading>
<p>FreeBSD 2.1.7 ¬O³Ì«á¤@Ó¥i¦b 4MB ¨t²Î¤W³Q¦w¸Ëªºª©¥»¡C·sª©ªº
FreeBSD¡A¹³¬O 2.2¡A»Ýn¦Ü¤Ö 5MB ¨Ó¦w¸Ë¥¦¦b¤@Ó¥þ·sªº¨t²Î¤W¡C
<p>FreeBSD ªº©Ò¦³ª©¥»¡A¥]¬A 3.0¡A³£¯à¦b 4MB ªº°O¾ÐÅé¤U°õ¦æ¡A¤£
¹L¦w¸Ë®É¤£¯à¥u¥Î 4MB¡C¦pªG§A·Q³o¼Ë¡A§A¥i¥H¦b¦w¸Ë®É¥[¤JÃB¥~ªº
°O¾ÐÅé¡AµM«áµ¥¨t²Î¥i¥H°õ¦æ«á¡A´«¦^ 4MB¡C©Î¬O§A¥i¥H§â§AªººÏºÐ
¾÷¤Á¥X¤@Ó 4MB ¥H¤W¸m´«ªÅ¶¡¡A¦w¸Ë¦n¨t²Î«á¦A§â¸m´«ªÅ¶¡¬å±¼¡C
<p>FreeBSD 2.1.7 ¤]¦³¤£¯à¦b 4MB ¦w¸Ëªº±¡§Î¡C¥¿½Tªº»¡¡AÀ³¸Ó¬O«ü
¤£¯à¦b°ò¥»ªº 640kB ¥[¤W 3MB ©µ¦ù°O¾ÐÅé¸Ì¦w¸Ë¡C¦pªG§Aªº¥D¾÷ªO
¥i¥H«·s§ä¦^¦b 640kB ¨ì 1MB ½d³ò¤¤¨º¨Ç``¿ò¥¢''ªº°O¾ÐÅé¡A¨º»ò
©Î³\§AÁÙ¬O¥i¥H§â FreeBSD 2.1.7 ¸Ë°_¨Ó¡C
<p>¸ÕµÛ¶i¤J§Aªº BIOS ³]©w¿ï³æ¨Ã§ä¤@Ó``remap''¿ï¶µ¡A§â¥¦¥´¶}¡C
§A©Î³\¤]¸Ó§â ROM shadowing µ¹Ãö±¼¡C
<p>¥u¦b¦w¸Ë®É¨Ï¥Î 4MB ¥i¯à®e©ö¤@ÂI¡A«Ø¥ß¤@Ó¥u¦³§A»Ýnªº¿ï¶µªº
®Ö¤ßµ{¦¡¡AµM«á´N¥i¥H¥u¥Î 4MB¡C
<p>§A¤]¥i¥H¦w¸Ë 2.0.5 µM«á¦A§â§Aªº¨t²Î¥Î 2.1.7 ¦w¸Ëµ{¦¡¸Ì
``upgrade''ªº¿ï¶µ¤É¯Å¨ì 2.1.7 ª©¥»¡C
<p>¦w¸Ë«á¦pªG§A«Ø¥ß¤@Ó¦Ûqªº®Ö¤ß¡A³o±N·|¦b 4MB ¤U°õ¦æ¡C´¿¦³
¤H¦¨¥\ªº¥Î 2MB ¶}¾÷(¤£¹L¨t²Î´X¥G¤£¯à¥Î :-))¡C
<sect1>
<heading>
§Ú¸Ó«ç»ò»s§@¦Ûqªº¦w¸Ë³nºÐ¤ù¡H
</heading>
<p>¥Ø«e§AµLªk*¥u*»s§@¤@Ó¦Ûqªº¦w¸Ë³nºÐ¤ù¡C§A¥²¶·°µ¥X¾ãÓ¥þ·sªº
release ¨t²Î¡A³o¸Ì±´N¥]¬A§Aªº¦w¸Ë³nºÐ¤ù¡C¬Y¨Ç¦b
<tt>/usr/src/release/floppies/Makefile</tt> ¸Ìªºµ{¦¡½X°²³]¯àÅý
§A*¥u*°µ¥X¨º¨Ç³nºÐ¤ù¡A¦ý¬O¨Æ¹ê¤WÁÙ¤£¦æ¡C
<p>n°µ¥X¦Ûqªº release ª©¥»¡A½Ð¿í´` <ref id="custrel" name="here">
ªº«ü¥O¡C
<sect1>
<heading>§Ú¥i¥H¦b§Úªº PC ¤W¾Ö¦³¶W¹L¤@Ó¥H¤Wªº§@·~¨t²Î¶Ü¡H</heading>
<p>½Ð°Ñ¦Ò <url url="../tutorials/multios/multios.html"
name="The multi-OS page.">
<sect1>
<heading>Windows 95 ¥i¥H¸ò FreeBSD ¨Ã¦s¶Ü¡H</heading>
<p>¥ý¦w¸Ë Windows 95¡AµM«á¦A¸Ë FreeBSD¡CFreeBSD ªº±Ò°ÊºÞ²zû
·|±µµÛºÞ²z±Ò°Ê Win95 ©M FreeBSD ªº¤u§@¡C°²¨Ï§A²Ä¤GÓ¤~¥h¸Ë
Win95¡A¥¦±N·|°Ý³£¤£°Ýªº²Ê¾|¦a§â§Aªº±Ò°ÊºÞ²zûÂмg¹L¥h¡C°²
¦p³o¤w¸gµo¥Í¡A½Ð¬Ý¤U¤@¸`¡C
<sect1>
<heading>
Windows 95 §â§Úªº±Ò°ÊºÞ²zû±þ±¼¤F¡I§Ú¸Ó«ç»ò§â¥¦±Ï¦^¨Ó¡H
</heading>
<p>§A¥i¥H¥Î¥H¤U¨âºØ¤èªk¤§¤@¨Ó«·s¦w¸Ë FreeBSD ªº±Ò°ÊºÞ²zû¡G
<itemize>
<item>°õ¦æ DOS¡A¶i¤J§Aªº FreeBSD distributions ªº tools/ ¥Ø¿ý
¨Ã§ä¨ì <bf>bootinst.exe</bf>¡C§A¥i¥H³o¼Ë°õ¦æ¥¦¡G
<p><bf>bootinst.exe boot.bin</bf>
<p>³o¼Ë±Ò°ÊºÞ²zû±N·|¦A¦¸³Q¦w¸Ë¡C
<item>¥Î FreeBSD ±Ò°Ê³nºÐ¤ù¦A¦¸¶}¾÷µM«á¶i¤J Custom ¦w¸Ë¿ï³æ
¶µ¥Ø¡A¿ï¾Ü Partition¡A¿ï¾Ü¨ºÓ¥]§t±Ò°ÊºÞ²zûªººÏºÐ¾÷(¤j¦h¬O
²Ä¤@Ó)¡AµM«á·í¤À³Î°Ï½s¿è¾¹(partition editor)¥X²{®É¡A²Ä¤@¥ó
¨Æ(·N«ä´N¬O¡G¤£n°µ¥ô¦ó§ó§ï) ¥ý¿ï¾Ü (W)rite¡C·|¥X²{½T»{ªº¸ß
°Ý¡A¦^µª yes¡AµM«á·í§A¬Ý¨ì Boot Manager ªº¿ï¾Ü´£¥Ü®É¡A½T©w
§A¿ïªº¬O"Boot Manager"³o¶µ¡C
³o·|§â±Ò°ÊºÞ²zû«·s¼g¦^ºÏºÐ¸Ì¡C¸õÂ÷¦w¸Ë¿ï³æµM«á´N¸ò¥¿±`±¡§Î
¤@¼Ë«·s±Ò°ÊµwºÐ¡C
</itemize>
<sect1>
<heading>§Ú¥i¥H¦b¤@Ó¦³Ãay(bad blocks)ªººÏºÐ¤W¶i¦æ¦w¸Ë¶Ü¡H</heading>
<p>FreeBSD ªº bad block (<htmlurl
url="http://www.freebsd.org/cgi/man.cgi?bad144" name="bad144">
©R¥O) ³B²z¨Ã«D 100&percnt §¹¥þ(¥Î¹Ï§Î¤Æ¨Ó¬Ý)¡A¦Ó¥B«Ü¤£©¯§Ún§i
¶D§A°²¦p§A¦³¤@Ó IDE ©Î ESDI ¸Ë¸m¥]§t¤j¶qªº bad blocks¡A¨º»ò
FreeBSD ¥i¯à¤£¾A¦X§A¡I³oªí¥Ü¡A¹ï¨ä¥L¤j¦h¼Æªº IDE ¨t²Î¥i¯à¦³
¥Î¡A§A¥i¯à·Q¦b©ñ±ó«e¥ý¹Á¸Õ¬Ý¬Ý¡C
<p>¦pªG§A¦³¤@Ó¦³ bad blocks ªº SCSI ¸Ë¸m¡A½Ð¬Ý <ref id="awre"
name="this answer">.
<sect1>
<heading>·í§Ú±Ò°Ê¦w¸Ë³nºÐ¤ù®É¡A©_©Çªº¨Æ±¡µo¥Í¤F¡I</heading>
<p>¦pªG§A¬Ý¨ì©_©Çªº¨Æ±¡¡A¹³¬O¾÷¾¹°±¦í¤F©Î¬O·í§A¸ÕµÛ±q¦w¸ËºÏ¤ù°_
°Ê®É¬ðµM¦Û°Ê«·s¶}¾÷¤F¡A³o¸Ì¦³¤TÓ°ÝÃD§A¸Ó¥ý°Ý°Ý¦Û¤v:-
<enum>
<item>§A¬O§_¨Ï¥Î¤@Ó·sªº¡Aè®æ¦¡¤Æ¹L¡A¨S¦³¥ô¦ó¿ù»~ªº³nºÐ¤ù(¥i
¥H¬O¤@±i¥þ·sè©î«Êªº¡A¦Ó«D¬O¨ººØ¤w¸g§Aªº§É¤U½ö¤F¤T¦~¡A¬OÂø»xÃØ
°eªº«Ê±ºÏ¤ù)¡H
<item>§A¬O§_¥Î binary ¼Ò¦¡¤U¸ü³nºÐ¬M¹³ÀÉ¡H
(¤£¥Î¤£¦n·N«ä¡A´Nºâ¬O§Ṳ́§¤¤³Ì¦nªº¤@Ó¤H¤]´¿·N¥~ªº§â binary
ÀɥΠASCII ¼Ò¦¡¤U¸ü¦Ü¤Ö¤@¦¸¡I)
<item>¦pªG§A¥¿¦b¨Ï¥Î¹³¬O Windows95 ©Î Windows NT ³o´XºØ·s«¬ªº
§@·~¨t²Î¡A§A¦³¨S¦³§â¨t²ÎÃö¾÷µM«á±Ò°Ê¨ì³Ìì©lª¬ºA¡A¥u¦³ DOS¡H
³o¨Ç OS ¬Ý°_¨Ó·|ªý꨺¨Çª½±µ¾Þ§@µwÅ骺µ{¦¡¡A¹³¬O«Ø¥ßºÏºÐªºµ{¦¡
¡A¥un¦b GUI Àô¹Ò¤Uªº DOS shell ´N·|¾ÉP³oÓ°ÝÃD¡C
</enum>
<p>¤]¦³¹L³ø§i¦³Ãö Netscape ·|¾ÉP¤U¸ü±Ò°Ê³nºÐªº°ÝÃD¡A¦]¦¹¦pªG§A
¥i¥H¡A³Ì¦n¨Ï¥Î§OºØ¤£¦Pªº FTP client ¡C
<sect1>
<heading>±Ï©R¡I§Ú¤£¯à±q tape ¦w¸Ë¡I</heading>
<p>¦pªG§A±q tape ¦w¸Ë 2.1.7¡A§A¥²¶·¥Î¨CÓ tar blocksize ¬O 10
(5120 bytes)«Ø¥ß³oÓ tape¡C¤º©wªº tar blocksize ¬O 20(10240
bytes)¡AµM¦Ó¥Î³oºØ¤º©w¤j¤p«Ø¥ßªº tape µLªk¥Î¨Ó¦w¸Ë 2.1.7R¡F
¦pªG§A¥Î³oºØ tapes¡A§A·|¬Ý¨ì¦³Ãö¸ê®Æ°O¿ý°Ï¤j¤p¹L¤jªº©ê«è°T
®§¡C
<sect1>
<heading>¥Î¤@±ø¨ÃÁp½u(PLIP)³s±µ¨â¥x FreeBSD¡C
</heading>
<p>§ä¤@±ø laplink ½u¡A½T©w¨âÃä¹q¸£ªº®Ö¤ß³£¤ä´© lpt ÅX°Êµ{¦¡¡C
<verb>
$ dmesg | grep lp
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
</verb>
<p>§â laplink ½u´¡¤J¨ÃÁp¬É±¤W¡C
<p>¥Î root ¨¤À¦b¨â¥x¹q¸£¤W³]©w lp0 ªººô¸ô¬É±°Ñ¼Æ¡CÁ|¨Ò¡A¦pªG
§A·Q¥Î max ³s±µ moritz¡G
<verb>
max <-----> moritz
IP Address 10.0.0.1 10.0.0.2
</verb>
max ºÝÀ³¸Ó³o¼Ë¶}©l¡G
<verb>
# ifconfig lp0 10.0.0.1 10.0.0.2
</verb>
moritz «h³o¼Ë¡G
<verb>
# ifconfig lp0 10.0.0.2 10.0.0.1
</verb>
<P>¦n¤F¡I¤]½Ð§A¬Ý¬Ý lp(4) ©M lpt(4) ªº manpages¡C
<P>§A¤]¸Ó§â³o¨Ç¥D¾÷¥[¨ì /etc/hosts ¸Ì±¡C
<verb>
127.0.0.1 localhost.my.domain localhost
10.0.0.1 max.my.domain max
10.0.0.2 moritz.my.domain moritz
</verb>
<P>¥Î¥H¤U¤èªkÀˬd¬O§_¦³¥¿±`°Ê§@¡G
on max:
<verb>
$ ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
</verb>
<verb>
$ netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
moritz max UH 4 127592 lp0
</verb>
<verb>
$ ping -c 4 moritz
PING moritz (10.0.0.2): 56 data bytes
64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms
--- moritz ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms
</verb>
<sect1>
<heading>
§Ú¥i¥H¦b§Úªº½¥¤W«¬¹q¸£¥Î PLIP(Parallel Line IP)¦w¸Ë¶Ü¡H
</heading>
<p>¥Î laplink ¨ÃÁp½u³s±µ¨â¥x¹q¸£¥H¨Ï¥Î³oÓ¯S©Ê¡G
<verb>
+----------------------------------------+
|A-name A-End B-End Descr. Port/Bit |
+----------------------------------------+
|DATA0 2 15 Data 0/0x01 |
|-ERROR 15 2 1/0x08 |
+----------------------------------------+
|DATA1 3 13 Data 0/0x02 |
|+SLCT 13 3 1/0x10 |
+----------------------------------------+
|DATA2 4 12 Data 0/0x04 |
|+PE 12 4 1/0x20 |
+----------------------------------------+
|DATA3 5 10 Strobe 0/0x08 |
|-ACK 10 5 1/0x40 |
+----------------------------------------+
|DATA4 6 11 Data 0/0x10 |
|BUSY 11 6 1/0x80 |
+----------------------------------------+
|GND 18-25 18-25 GND - |
+----------------------------------------+
</verb>
<p>½Ð°Ñ¦Ò Mobile Computing ºô¶ªº <ref id="pao" name="this note">¡C
<sect1>
<heading>
§Ú¸Ó«ç»ò¨Ï¥Î¤@ӺϺи˸mªº geometry¡H<label id="geometry">
</heading>
<p>(¤@¥xºÏºÐªº"gromrtry"¡A§ÚÌ«üªº¬O³o¥xºÏºÐ¤W cylinders, heads
©M sectors/track ªº¼Æ¥Ø - ¬°¤F¤è«K¥BºÙ¤§¬° C/H/S¡C³o¬O PC ªº
BIOS ¥Î¨ÓŪ/¼gºÏºÐªº¨Ì¾Ú)¡C
<p>¬°¤F¬Y¨Ç²z¥Ñ¡A³o¦ü¥G·|¾ÉP«Ü¦h§xÂZ¡Cº¥ý¡A¤@¥x SCSI ¸Ë¸mªº
<tt /physical/ geometry ¸ò FreeBSD ¦b¨Ï¥Îªº disk blocks ¬O§¹
¥þµLÃöªº¡C¨Æ¹ê¤W¡A¨Ã¨S¦³©Ò¿×"physical geometry"³oºØªF¦è¡A³o
¬O«üºÏºÐ¾÷¤WºÏ°Ï±K«×ªºÅÜ¤Æ - »s³y°Ón¨D¬O"¯u¹êªº"physical
geometry ³q±`¬O«ü¡A¥LÌ©Ò¯à§ä¥X®ö¶O³Ì¤ÖªÅ¶¡ªº geometry µ²ªG¡C
¹ï IDE ºÏºÐ¨Ó»¡¡AFreeBSD ¨Ï¥Î C/H/S ¤è¦¡¤u§@¡A¦ý¬O©Ò¦³²{¦b
ªººÏºÐ¤w¸g¦b¤º³¡°Ñ¦Ò®É§â¥¦Âà´«¦¨ block ¤F¡C
<p>¥t¥~´N¬O©Ò¿×ªº<tt /logical/ geometry - ³o¬O·í BIOS °Ý"§Aªº
geometry ¬O¤°»ò¡H"ªº®ÉÔ¡A©Ò±o¨ìªºµª®×¨Ã¥B§â¥¦¥Î¨Ó¦s¨úºÏºÐ¡C
·í¶}¾÷®É FreeBSD ¨Ï¥Î BIOS ¸ê®Æ¡AÅý³oÓ¥¿½T¬O¬Û·í«nªº¡C¥t¥~
¡A¦pªG§A¦b¦P¤@ӺϺо÷¤W¦³¤@Ó¥H¤Wªº§@·~¨t²Î¡A¥LÌ¥²¶·³£¦P·N
grometry¡A§_«h§A¦b¶}¾÷®É·|¦³¤j°ÝÃD¡I
<p>¹ï SCSI ºÏºÐ¾÷¨Ó»¡¡Ageometry ªº¨Ï¥Î¬O¨Ì¾a±Ò°Ê±±¨î¾¹¨Ó¤ä´©
extended translation (³o³q±`ºÙ¤§¬°"¹ï>1GB DOS ºÏºÐ¾÷
ªº¤ä´©©Î"Ãþ¦üªººÙ©I)¡C¦pªG¤£¤ä´©¡A¨º»ò¨Ï¥Î N cylinders¡A64
heads ©M 32 sectors/track¡A³o¸Ì'N'¬O«üºÏºÐ¾÷ªº MB ®e¶q¡CÁ|¨Ò
¨Ó»¡¡A¤@Ó 2GB ªººÏºÐ¾÷À³¸Ó°²³]¥¦¦³ 2048 cylinders¡A64 heads
©M 32 sectors/track¡C
<p>¦pªG¥¦½T©w<tt /¬O/ ¥´¶}ªº(³q±`´£¨Ñ³oºØ¤èªk¦b MSDOS ¤U¦³¬Y¨Ç
¨î)¡A¨Ã¥BºÏºÐ®e¶q¶W¹L 1GB¡A¨Ï¥Î M cylinders, ¨CÓ track 63 sectors
(*¦Ó«D* 64)¡A¥H¤Î 255 heads¡A³o¸Ì 'M' ¬O¨C MB ªººÏºÐ®e¶q°£¥H
7.844238 (!)¡C©Ò¥H§Ú̪º³oÓ½d¨Ò¡A2G ºÏºÐ¾÷´N¦³ 261 cylinders,
¨CÓ track 63 sectors ¥H¤Î 255 heads¡C
<p>¦pªG§A¤£½T©w¥H¤W³oÓ¡A©Î¬O FreeBSD ¦b¦w¸Ë¹Lµ{¤¤n°»´ú geometry
ªº¥¿½T©Ê®É¥¢±Ñ¤F¡A³Ì²³æªº¸Ñ¨M¤èªk³q±`¬O¦bºÏºÐ¤W«Ø¥ß¤@Ó¤pªº DOS
¤À³Î°Ï¡C¥¿½Tªº geometry À³¸Ó¯à³Q°»´ú¨ì¡]¦Ó¥B¦pªG§A¤£·Q«O¯d¥¦¡A
§AÁ`¬O¥i¥H¦b¤À³Î°Ï½s¿è¾¹¸Ì§â³oÓ DOS ¤À³Î°Ï²¾°£±¼¡A©Î¬O§â¥¦¯d¤U
¨Ó¡Aµ¹µ{¦¡¤Æºô¸ô¥d¨Ï¥Î©ÎÀH§A°ª¿³«ç»ò¥Î¥¦¡^¡C
<p>¥t¥~¡A¦³¤@Ó§K¶O¦Ó¦³¥Îªº¤½¥Îµ{¦¡¥s ``<tt/pfdisk.exe/'' ÀHµÛ
FreeBSD ´²¼½¥X¨Ó¡]¦ì©ó FreeBSD CDROM ªº <tt>tools</tt> ¤l¥Ø¿ý
¤U©Î¬O¦b¤j¦h¼Æªº FreeBSD ftp ¯¸¥x¤º¥i§ä¨ì¡^¡A³oÓµ{¦¡¥i¥Î¨Ó§ä
¥X¥t¤@§@·~¨t²Î¥¿¦b¨Ï¥ÎºÏºÐ¾÷¤Wªºþ¶ô geometry¡CµM«á§A´N¥i¥H¦b
¤À³Î°Ï½s¿è¾¹¸Ì±¿é¤J¥¦¡C
<sect1>
<heading>·í§Ú¤À³ÎºÏºÐ¾÷®É¦³¥ô¦ó¨î¶Ü¡S</heading>
<p>¬Oªº¡C§A¥²¶·½T»{§Aªº root ¤À³Î°Ï¬O¦b 1024 cylinders ¤§¤º¡AÅý
BIOS ¥i¥H±q¨ä¤¤±Ò°Ê®Ö¤ß¡C(ª`·N¡G³o¬O PC ªº BIOS ¥\¯à¨î¡A¦Ó¤£
¬O FreeBSD ªº)
<p>¹ï SCSI ¸Ë¸m¨Ó»¡¡A³o³q±`·t¥ÜµÛ root ¤À³Î°Ï±N©ñ¦b¶}©lªº 1024
MB(©Î¬O¶}©lªº 4096MB¡A¦pªG extended translation ¬O¥´¶}ªº - ½Ð
°Ñ¦Ò«e¤@¸`)¡C¹ï IDE ¨Ó»¡¡A¬ÛÃöªº³¡¥÷¬O 504MB¡C
<sect1>
<heading>
¥i¥H¨Ï¥ÎºÏºÐºÞ²zµ{¦¡(disk managers)¶Ü¡S©Î¬O¡A§Ú¦³¤@Ó¥¨¤jªººÏºÐ¾÷¡I
</heading>
<p>FreeBSD »{ÃÑ Ontrack Disk Manager ¨Ã¥B¤¹³\¨Ï¥Î¥¦¡A¨ä¥Lªº disk
managers «h¤£¦b¤ä´©¤§¦C¡C
<p>¦pªG§A¥u·Q¦bºÏºÐ¾÷¤W¨Ï¥Î FreeBSD ¨º»ò§A®Ú¥»¤£»Ýn disk manager¡C
¥un§âºÏºÐ³]©w¦¨ BIOS ¯à§ì¨ìªº³Ì¤jªÅ¶¡(³q±`¬O 504 megabytes)¡A¨º»ò
FreeBSD À³¸Ó´N¥i¥Hºâ¥X§A¨Æ¹ê¤W¾Ö¦³¦h¤ÖªÅ¶¡¡C¦pªG§A¥¿¨Ï¥Î¤@Ó MFM
±±¨î¾¹¨Ó±±¨îªº¦ÑºÏºÐ¡A§A¥i¯à»Ýn©ú¥Õªº§i¶D FreeBSD n¨Ï¥Î¦h¤ÖÓ
cylinders¡C
<p>¦pªG§A·Q¦bºÏºÐ¤W¨Ï¥Î FreeBSD ©M¥t¤@Ó§@·~¨t²Î¡A§A¥i¯à¤£»Ýn
disk manager¡G¥un½T©w FreeBSD ªº±Ò°Ê¤À³Î°Ï¸ò¨ä¥L§@·~¨t²Îªº
slice ³£¦ì©ó¶}©lªº 1024 cylinders ¤º¡C¦pªG§A¬Û·í¦a¤p¤ß¡A¤@Ó
20 megabytes ªº±Ò°Ê¤À³Î°ÏÀ³¸Ó´N°÷¤F¡C
<sect1>
<heading>
·í§Ú±Ò°Ê FreeBSD¡A§Ú¬Ý¨ì ``Missing Operating System''
<label id="missing_os">
</heading>
<p>³o¬O¤@Ө嫬ªº±¡§Î¡A¦³Ãö FreeBSD ¥H¤Î DOS ©Î¨ä¥L¦bºÏºÐ³B²z¤èªk
¤W¦³½Ä¬ðªº OS <ref id="geometry" name="geometry.">¡C§A»Ýn«·s
¦w¸Ë FreeBSD¡A¦ý¬O½Ð¿í·Ó¤W±©Ò´£¨ìªº«ü¥OÀ³¸Ó´N¥i¥H¤F¡C
<sect1>
<heading>§Ú¬Ý¤£¨ì boot manager ªº 'F?' ´£¥Ü¸¹¡C</heading>
<p>³o¬O«e¤@¶©Ò´yz°ÝÃDªº¥t¤@Ó¼x¥ü¡C§Aªº BIOS geometry ©M FreeBSD
ªº geometry ³]©w¤£¬Û¦P¡I¦pªG§Aªº±±¨î¾¹©Î BIOS ¤ä´© cylinders
translation (³q±`³Q¼Ð¥Ü¦¨``>1GB drive support'')¡A¸ÕµÛ§â³oÓ
³]©w¥´¶}µM«á«·s¦w¸Ë FreeBSD¡C
<sect1>
<heading>
§Ú¦³ >16MB RAM¡C³o·|¾ÉP¥ô¦ó°ÝÃD¶Ü¡S<label id="bigram">
</heading>
<p>±q®Ä¯àªº¨¤«×¨Ó¬Ý¡A¤£·|¡CFreeBSD 2.X ¤º§t bounce buffers¡A³o¤¹³\
§Aªº bus mastering controller ¦s¨ú¶W¹L 16MB¡C(ª`·N¦pªG§A¥¿¨Ï¥Î
ISA ¸Ë¸m³oÀ³¸Ó¬O¥²»Ýªº¡A¾¨ºÞ¤@өΨâӧ󦪺 EISA ©M VLB ¸Ë¸m¤]
¥i¯à»Ýn¥¦)¡C
<p>¤]½Ð°Ñ¦Ò <ref id="reallybigram" name=">64M machines">
³o¸`¡A°²¦p§A¦³³o»ò¦h°O¾ÐÅé¡A©Î§A¨Ï¥Îªº¬O Compaq ©Î¬O¨ä¥L¯à³B²z
³o»ò¦h¦³¥Î°O¾ÐÅ骺¾÷¾¹¡C
<sect1>
<heading>§Ú»Ýn¦w¸Ë§¹¾ãªºì©lµ{¦¡(sources)¶Ü¡S</heading>
<p>³q±`¬O¤£»Ýn¡CµM¦Ó¡A·|±j¯P«Øij§A¦Ü¤Ö¦w¸Ë ``<tt/base/'' ³oÓ
source kit¡A³o¥]§t¼ÆÓ³o¸Ì²³æ´yz¹LªºÀɮסAÁÙ¦³ ``<tt/sys/''
(kernel) source kit¡A³o¥]§t®Ö¤ßµ{¦¡ªº sources¡C¨t²Î¸Ì±¤£»Ý
n¦³ sources ¤~¯à¾Þ§@¡AµM¦Ó¡A°£¤F kernel-configuration µ{¦¡
<htmlurl url="http://www.freebsd.org/cgi/man.cgi?config"
name="config">¥H¥~¡C¯Ê¤Ö®Ö¤ßªº sources¡A§Ú̪º«Ø¿v¬[ºc¬O³]©w
¦¨Åý§A¥i¥H±q§O³B¦p NFS ¨Ó±¾¤W°ß¿Wªºì©lµ{¦¡¡A¦]¦¹ÁÙ¬O¥i¥H»s
§@·sªº binaries¡C¡]¦]¬° kernel-source ªº¨î¡A§ÚÌ«Øij§A¤£n
ª½±µ§â¥¦±¾¦b <tt>/usr/src</tt> ¤U¡A³Ì¦n¥Î¨ä¥L¾A¦Xªº²Å¸¹©Ê«
½Æ³sµ²¨ì source tree ªº¤W¼h¬[ºc¡C¡^
<p>½u¤W¾Ö¦³ sources ¨Ãª¾¹D¦p¦ó«Ø¥ß¤@Ó¨t²Î¡A±N·|Åý§A¦b¤É¯Å¤µ«á
FreeBSD ªº releases ª©¥»§ó®e©ö¤@ÂI¡C
<p>n¹ê»Úªº¿ï¾Ü sources ªº¤@Ó¤l¶°¦X¡A¦b§A¦b¨t²Î¦w¸Ë¤u¨ãªº
Distributions ¿ï³æ®É¡A¨Ï¥Î Custom ¿ï³æ¶µ¥Ø¡C<tt>src/install.sh</tt>
script ±N·|§â sources distribution ªº³¡¥÷¦w¸Ë¶i¥h¡A¥Dn¬O¬Ý
§A¶Ç¤Jþ¨Ç°Ñ¼Æ¡C
<sect1>
<heading>§Ú»Ýn«Ø¥ß¤@Ӯ֤߶ܡS</heading>
<p>«Ø¥ß¤@Ó·sªº®Ö¤ß¦b FreeBSD ¦w¸Ë¹Lµ{¤¤¬Oµ´¹ï¥²»Ýªº¤@Ó¨BÆJ¡C
¦ý·sª© releases ±a¨Ó¤@Ó§ó¤Íµ½ªº®Ö¤ß³]©w¤u¨ã«ü¥Oªº¦n³B¡C¦b
FreeBSD ±Ò°Ê´£¥Ü¸¹(boot:)®É¡A¨Ï¥Î "-c" flag §A´N·|¶i¤J¤@Ó³]
©w¿Ã¹õ¡A³o¤¹³\§A°µ±`¨£ ISA ¥dªº®Ö¤ß³]©w¡C
<p>¤´µM«Øij§A³Ì«á«Ø¥ß¤@Ӯ֤ߡA¥u¥]§t§A»ÝnªºÅX°Êµ{¦¡¡A³o¬O¬°¤F
¸`¬Ù¤@ÂI RAM¡A¦ý¬O¹ï¤j¦h¼Æªº¨t²Î¨Ó»¡³o«o¤£¬OÄY®æªºn¨D¡C
<sect1>
<heading>§Ú¤£¬O¦í¦b¬ü°ê¡A¨º§Ú¥i¥H¨Ï¥Î DES ¶Ü¡S</heading>
<p>¦pªG¹ï§A¨Ó»¡¨Ï¥Î DES ®æ¦¡ªº¥[±K§Þ³N¤£¬Oµ´¹ï»Ýnªº¡A§A¥i¥H¨Ï
¥Î FreeBSD ªº¤º©w¥[±K§Þ³N¡A¦³<bf/§ó¦n/ ªº¦w¥þ©Ê¡A¨Ã¥B¨S¦³ÃB¥~
ªº¨î¡CFreeBSD 2.0 ªº±K½X²{¦b¨Ï¥Î¤º©wªº <bf/MD5/-based ¥[¥H
²V¦X¡An¥Î¦Û°Ê¯}¸Ñ±K½Xªºµ{¦¡¥h¯}¸Ñ¥¦¡A¤ñ°_ DES »Ýn¨Ï¥Î§ó¦h
CPU ±j¤Æ©Ê¥H«K¥Î¦Û°Ê±K½X¯}¸Ñ¾¹¡A¥¦ÁÙ¤¹³\§óªøªº±K½X¡C¤µ¤é¤£¨Ï
¥Î <bf/MD5/-based ¥[±K§Þ³Nªº°ß¤@²z¥Ñ¬O¦b FreeBSD ©M«D FreeBSD
¨t²Î¤W¨Ï¥Î¬Û¦Pªº±K½X¶µ¥Ø¡C
<p>¦]¬° DES ¥[±Kºtºâªk¤£¯à¥Ñ US ¦Xªk¿é¥X¨ì°ê¥~¡A«D US ¨Ï¥ÎªÌ¤£
À³¸Ó±q US FTP ¯¸¥x¤U¸ü³oÓ³nÅé(<tt/secrdist/ªº¥ô¤@³¡¥÷)¡C
<p>µM¦Ó¥t¥~ÁÙ¦³Ó¦³®Äªº libcrypt¡Aì©lµ{¦¡°ò¥»¤W¥Ñ¿D¬wªº
David Burren ¼g¦¨¡C³oÓµ{¦¡½X¥Ø«e¦b¬Y¨Ç«D US FreeBSD mirror
¯¸¥x¤W¥i¥H§ä¨ì¡C³oÓ¨S¦³¨îªº libcrypt ì©lµ{¦¡¡A¥H¤Î¨Ï¥Î¥¦
ªº binaries µ{¦¡¡A¥i¥H¦b¥H¤U FTP ¯¸¥xÀò±o¡G
<descrip>
<tag/South Africa/
<tt>ftp://ftp.internat.freebsd.org/pub/FreeBSD</tt><newline>
<tt>ftp://storm.sea.uct.ac.za/pub/FreeBSD</tt>
<tag/Brazil/
<tt>ftp://ftp.iqm.unicamp.br/pub/FreeBSD</tt>
<tag/Finland/
<tt>ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt</tt>
</descrip>
<p>«D US ªº <tt/securedist/ ¥i¥H·í¨î©Ê US <tt/securedist/
ªº§¹¥þ´À¥N¡C³oÓ <tt/securedist/ package ¦w¸Ë¤èªk¸ò US
package §¹¥þ¤@¼Ë(²Ó¸`½Ð°Ñ¦Ò¦w¸Ë¶·ª¾)¡C¦pªG§An¸Ë DES ¥[±Kªk
§AÀ³¸Ó¾¨¥i¯à¦a¦b¦w¸Ë¨ä¥L³nÅ餧«e¥ý¸Ë¦n¥¦¡A¦A¸Ë¨ä¥L³nÅé¡C
<p>«D US ¨Ï¥ÎªÌ½Ð¤Å±q USA ¤U¸ü¥ô¦ó¥[±K³nÅé¡C³o·|¾ÉP¯¸¥xªººÞ²z
ªÌ¦]¬°³Q¤U¸üªº³nÅé·S¤W¼ÆÓªk«ß©Êªº§xÃø¡C
<p>¤@Ó«D US ªº Kerberos distribution ¥ç¥¿¦bµo®i¤¤¡A²{¦æª©¥»³q
±`¥i¥Ñ°Î¦W FTP <tt>braae.ru.ac.za</tt> ¨ÓÀò±o¡C
<p>¤]¦³¤@Ó <ref id="mailing" name="mailing list"> ±Mªù¥Î¨Ó°Q½×
«D US ¥[±K³nÅé¡C±ýÀò±o§ó¦h¸ê°T¡A±H¤@«Ê¤º§t³æ¿W¤@¦æ°T®§»¡
``<tt/help/'' ªº email µ¹¡G
<tt><majordomo@braae.ru.ac.za></tt>.
<sect1>
<heading>
±Ò°Ê³nºÐ¶}©lŪ¤F¥i¬O«o°±¦b``Probing Devices...''¿Ã¹õ¡C
</heading>
<p>¦pªG§A¦w¸Ë¤F IDE Zip ©Î Jaz ¸Ë¸m¡A²¾°£¥¦¨Ã«·s¸Õ¤@¹M¡C
±Ò°Ê³nºÐ¤ù¥i¯à·|³Q³o¨Ç¸Ë¸m²V²c¤F¡C·í¨t²Î¦w¸Ë¦n¥H«á§A¥i¥H¦A
§â¥¦±µ¦^¨Ó¡C§Æ±æ³o¦b¤§«áªº release ª©¥»¥i¥H³Q×¥¿¡C
<sect1>
<heading>·í§Ú¦w¸Ë¦n«·s±Ò°Ê¨t²Î«á¡A§Ú¬Ý¨ì``panic: cant mount root''
ªº¿ù»~°T®§¡C
</heading>
<p>³oÓ¿ù»~¬O¦]¬°±Ò°Ê°Ï¶ô¸ò®Ö¤ßµ{¦¡¹ïºÏºÐ¸Ë¸mªº»{ª¾¤£¬Û¦P¡C³q±`³oÓ
¿ù»~·|¥X²{¦bÂùºÏºÐªº IDE ¨t²Î¡AµwºÐ©ñ¦b master¡A©Î¬O¦b¤ÀÂ÷ªº
IDE ±±¨î¾¹¤W¥u¦³³æ¤@ºÏºÐ¾÷¡A¦ý¬O FreeBSD ¸Ë¦b secondary IDE ¤W
¡C·í®Ö¤ß«ü©w²Ä¤GӺϺб±¨î¾¹ªº²Ä¤@ӺϺо÷ wd2 ®É¡A±Ò°Ê block
«o»{¬°¨t²Î¸Ë¦b wd1(²Ä¤GÓ BIOS ºÏºÐ¾÷)¡C°»´ú§¹¸Ë¸m«á¡A®Ö¤ßµ{¦¡
¸ÕµÛ§â±Ò°Ê block »{¬°ªº±Ò°ÊºÏºÐ(wd1) mount °_¨Ó¡A¨Æ¹ê¤W«o¬O wd2
¡A©Ò¥H¥¢±Ñ¤F¡C
<p>n×¥¿³oÓ°ÝÃD¡A¥H¤U´XºØ¤èªk¤§¤@³£¥i¥H¸Ñ¨M¡G
<enum>
<item>·í Boot: ´£¥Ü¸¹¥X²{®É¡A¿é¤J¡G <tt>1:wd(2,a)kernel</tt>
µM«á«ö Enter¡C¦pªG¨t²Î¶}©l¤F¡A´N°õ¦æ¥H¤U©R¥O¡G
<verb>
echo "1:wd(2,a)kernel" > /boot.config
</verb>
Åý¥¦Åܦ¨¤º©wªº boot string¡C
<item>§â FreeBSD ºÏºÐ¾÷²¾¨ì primary IDE controller¡A¦]¦¹µwºÐ¾÷¬O
³sÄòªº¡C
<item><url url="../handbook/kernelconfig.html" name="Rebuild your kernel,">
ק靈Ãö wd ³]©wªº¦æ¼Æ¡G
<verb>
controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr
disk wd0 at wdc0 drive 0
# disk wd1 at wdc0 drive 1 # comment out this line
controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr
disk wd1 at wdc1 drive 0 # change from wd2 to wd1
disk wd2 at wdc1 drive 1 # change from wd3 to wd2
</verb>
¦w¸Ë·sªº®Ö¤ßµ{¦¡¡C
¦pªG§A²¾°Ê§AªººÏºÐ¾÷¡A¨Ã§Æ±æ§â¥ý«eªº³]©w«ì´_¡A¥un§âºÏºÐ¥Î¹w´Á
ªº³]©w¸m´«¦^¨ÓµM«á«·s¶}¾÷¡C§Aªº¨t²ÎÀ³¸Ó´N¯à¦¨¥\ªº±Ò°Ê¡C
</enum>
<sect1>
<heading>°O¾ÐÅ骺¨î¬O¤°»ò¡S</heading>
<p>¹ï°O¾ÐÅé¨Ó»¡¡A(²z½×¤W)¨î¬O 4 gigabytes¡C1 gigabytes ¤w³Q´ú¸Õ
¹L¡F¤@¯ë§A¤£¥i¯à¶R¨ì¥i¥H¤ä´©¶W¹L³oӼƥتº i386 PC¡C
<sect1>
<heading>ffs Àɮרt²Îªº¨î¬O¤°»ò¡S</heading>
<p>¹ï ffs filesystems ¦Ó¨¥¡A³Ì¤j²z½×Ȩî¦b 8 terabytes(2G blocks
)¡A©Î·í¨Ï¥Î¤º©w 8K block ¤j¤p®É¡A¨î¬O 16TB¡CÁÙ¦³¡A³nÅé¨î¬O
1 terabytes¡A¦ý¦pªG¬O¸g¹Lק諸Àɮרt²Î¤W 4 terabytes ¬O¥i¯à(¨Ã
¥B¦s¦b)ªº¡C
<p>³æ¤@ ffs Àɮתº¤j¤p³Ì¤j¬OÁͪñ 1G blocks(4TB) - °²¦p block ¤j¤p¬O
4K¡C
<verb>
maxfilesize
----------------------------------
2.2.7 3.0
fs block size -stable -current works should-work
------------- ------- -------- ----- -----------
4K 4T-1 4T-1 4T-1 4+T
8K 32+G 8T-1 32+G 16T-1
16K 128+G 16T-1 128+G 32T-1
32K 512+G 32T-1 512+G 64T-1
64K 2048+G 64T-1 2048+G 128T-1
</verb>
<p>·í fs block ¤j¤p¬O 4K¡Atriple indirect block ¹B§@¨Ã¥B©Ò¦³ªº¨Æ±¡
³£À³¸Ó¥Hªí¥Ü¦¨¨Ï¥Î triple indirect block ªº³Ì¤j fs block ¨Ó§@
¨î(ªñ¦ü©ó 1K^3 + 1K^2 + 1K)¡A¦ý¦b fs block ¼Æ¥Ø¤W«o¦³¤@Ó(¿ù»~)
ªº 1G-1 ¨î¡C¹ï fs block ¼Æ¥Øªº¨îÀ³¸Ó¬O 2G-1¡C¦b fs block
¼Æ¥Ø±µªñ 2G-1 ®É¦³ÂI¿ù»~¡A¦ý·í fs block ¤j¤p¬O 4K ®É³oÓ block
¼Æ¥Ø¬O¤£¯à¹F¨ìªº¡C
<p>block ¤j¤p¦pªG¬O 8K ©Î§ó¤j¡Afs block ¼Æ¥ØÀ³¸Ó¨î¦b 2G-1¡A¦ý¹ê
»Ú fs block ¼Æ¥Ø«o¨î¦b 1G-1¡A°£¤F¦b -stable ®É triple indirect
blocks ¬OµLªk¹F¨ìªº¡A©Ò¥H³Ì¦h fs block ¼Æ¥Øªº¨î¥i¥Hªí¥Ü¦¨¥Î
double indirect blocks(ªñ¦ü©ó(blocksize/4)^2 + (blocksize/4))
¡A¥B¦b -current ¤U¶W¹L³oÓ¨î¥i¯à·|¾ÉP°ÝÃD²£¥Í¡C¨Ï¥Î¥¿½Tªº
2G-1 block ¨îªº½T·|¾ÉP°ÝÃDµo¥Í¡C
<sect1>
<heading>§Ú¸Ó«ç»ò¦b³nºÐ¤W©ñ¤J 1TB ÀɮסH</heading>
<p>§Ú¦Û¤v´N¦b³nºÐ¤ù¤W©ñ¦n´XÓ :-)¡CÀɮתº³Ì¤j®e¶q¨Æ¹ê¤W¸òºÏºÐ³Ì¤j
ªº®e¶q¨Ã¨S¦³±K¤Á¬ÛÃö¡CºÏºÐªº³Ì¤j®e¶q¬O 1TB¡A³o¬O¤@ÓÀɮפj¤p¥i
¥H¶W¹LºÏºÐ®e¶qªº¤@Ó¯S¦â¡C
<p>¥H¤U½d¨Ò·|¦b¤@ӨϥξãÓ 32K ªÅ¶¡³o¼Ë¤pªº root partition ºÏºÐ
¤W«Ø¥ß¤@Ó¤j¤p¬O 8T-1 ªºÀÉ®×(3 indirect blocks and 1 data block
)¡Cdd «ü¥O»ÝnÅý dd ¯à¦b¤@Ó¤jÀɮפU°õ¦æ¡C
<verb>
ttyv0:bde@alphplex:/tmp/q> cat foo
df .
dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1
ls -l z
du z
df .
ttyv0:bde@alphplex:/tmp/q> sh foo
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/sd0a 64479 27702 31619 47% /
1+0 records in
1+0 records out
1 bytes transferred in 0.000187 secs (5346 bytes/sec)
-rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z
32 z
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/sd0a 64479 27734 31587 47% /
ttyv0:bde@alphplex:/tmp/q> exit
</verb>
<p>Bruce Evans, September 1998
</sect>
|