º¥ý, ½Õ¾ã¾÷¾¹¦ì¸m¨Ï¤âÃ䦳¤U¦C¨â¥x¾÷¾¹:
¦pªG§A·Qn´ú¸Õ±zªº²ÕºA³]©w¦Ó±zÁÙ¨S®³¨ì TCP/IP Bootprom, ±z¥i¥H¨ì
http://www.incom.de
¤U¸ü´ú¸Õª©ªººÏ¤ù. ³oÓ
ºÏ¤ù¥i¥H¨Ï±zªº¹q¸£´N¦n¹³¬O´¡¤W TCP/IP Bootprom ¤@¯ë.If you want to test the configuration but you do not yet have a
¾Ç¥Í©Ò¨Ï¥Îªº¹q¸£, §Ú̳]©w Bootprom ¥Ñºô¸ô¶}¾÷, ¤£¯à¨Ï¥ÎµwºÐ¶}¾÷¤Î³nºÐ¶}¾÷. ±Ð¾Ç¥Î¹q¸£, §Ú̳]©w Bootprom ¥i¥H¥Ñ©¹¸ô¶}¾÷, ¤]¤¹³\µwºÐ»P³nºÐ¶}¾÷; ¦b§Aªº«È¤áºÝ³]©w Bootprom.
¦øªA¾¹ºÝ, ³]©w DHCP daemon (§Ų́ϥΠInternet Software Consortium ©Ò´£¨Ñªº¥¿¦¡ª©, 970329 µo¦æ). §A¤]¥²»Ý±Ò°Ê
TFTP daemon. ³o¥÷¤å¥ó±N°²³]±z¨Ï¥Î TCP/IP Bootprom ¤u¨ãºÏ¤ù¤ºªº¥[±j«¬ TFTP daemon . ¦pªG±z¸û³ßÅw¨Ï¥Î¼Ð·Ç
ªº TFTP daemon, ²¾±¼©Ò¦³¶}¾÷¼v¹³Àɪº°ÆÀɦW P
, ¥Î¨Ó¤ä·| Bootprom ¨Ï¥Î¼Ð·Çªº TFTP port (½Ð¬Ý TCP/IP Bootprom
¤å¥ó).
§O§Ñ¤F BOOTP/DHCP ³q°T¨ó©w³Q¨î¦b¤lºô°ì¤¤¨Ï¥Î. ¦pªG«È¤áºÝ»P¦øªAºÝ¤£¦b¦P¤@ºô°ì, ±z¥²¶·¦b³o¨âºô°ì¶¡ ¬[³]¹h¹D¾¹. ²{¦b, ¥ý°²³]¨â¥x¾÷¾¹¦b¬Û¦Pªººô°ì¤¤.
º¥ý, §ÚÌ¥ý°µ©Ò¦³§@·~¨t²Î³£n±o°µªº¨Æ,¦p:
¦b¦øªA¾¹ºÝªº /tftpboot
¥Ø¿ý¤U, ©ñ¤U¦Cªº¶}¾÷¼v¹³ÀÉ (³o¨Ç¬O¤G¶i¦ì®æ¦¡)
bpclean
,
µwºÐ²M²z¤u¨ãbpmenu
, TCP/IP Bootprom ¿ï³æµ{¦¡ (¥]§t¦b±zªº Bootprom ¤u¨ãºÏ¤ù)
bpunzip
,
§Ú̪ºµwºÐÁÙì¤u¨ã
bphdboot
,
¶Ç°e¶}¾÷µ{§Ç¨ìµwºÐªº¼v¹³ÀÉ
¦b¬Û¦Pªº¥Ø¿ý¤U, §Ú̫إ߲Ÿ¹³sµ²¨ì (©ÎªÌª½±µ¥Î«þI«ü¥O)) bpclean
©R¦W¬°
XXXclean
(©ÎªÌ±z»{¬°¥i¥HÀ°§U±z°O¦í³o¬O¥Î¨Ó²M²z±zªº«È¤áºÝ¾÷¾¹ªº¦WºÙ)
¨Ã¥B²£¥Í¤@Ó¦W¬° XXXclean.tab
ÀɱÔz±z«È¤áºÝ©Ò»ÝªºµwºÐ¤À³Î°Ï,
¤Î±znÁp±µªº¶}¾÷¼v¹³ÀÉ.
¨Ò¦p: §Ú̹ï 2 Gb µwºÐ¨Ï¥Î¤U±ªº¤èªk
# ¤¹³\¤£¶W¹L 512 bytes ªº»¡©ú±Ôz
# ¤Q¤»¶i¨î½Ð¦b¦rº¥[¤@Ó $ ¿ú¦r²Å
# Part | | Part
# type | Boot? | Size
6 Y +500 Mb
$82 N +31 Mb
$83 N -50 Mb
0
# Áp±µªº¼v¹³ÀÉ
/tftpboot/XXXmenu
§¹¾ãªºÀɮ׮榡¦b«á±·|±Ôz. ²{¦b±z¥unª¾¹D³o¨Ç
bpclean
¦b¤£²M°£¤À³Î°Ï¸ê®Æ¤º®e¤U,±N«·s¼g¤J¥Dn¶}¾÷p¿ý(master boot record), ·íµM¤]¥]¬A¤À³Îªí.
¦P¼Ëªº, «Ø¥ß²Å¸¹³sµ² (©ÎªÌª½±µ«þ¨©) bpmenu
©R¦W¬°
XXXmenu
(©ÎªÌ§A»{¬°¥i¥HÀ°§U±z°O¦í
³o¬O«È¤áºÝ¾÷¾¹¶}¾÷¿ï³æªº¦WºÙ) ¨Ã¥B²£¥Í¤@Ó¦W¬° XXXmenu.m
ÀɱÔz±z«È¤áºÝ©Ò»Ýªº¶}
¾÷¿ï³æ. ±z¤ñ¥i¥H¤â°Ê²£¥Í³oÓÀɮשγz¹L§Ú̼gªº¶}¾÷¿ï³æ¥þÀç¹õ½s¿è¾¹
menuedit.exe
.
¨Ò¦p, °²³]±z¥Î¤U¦C³oÓÀÉ®×:
.CLS 23
.ATT 23
.POS 23 4
.WRT Simple Boot Menu \
.POS 23 5
.WRT ---------------- \
.POS 23 8
.WRT 1. Boot from local hard disk \
.POS 23 10
.WRT 2. Boot DOS and Windows 3 \
.POS 23 12
.WRT 3. Boot Windows 95 \
.POS 23 14
.WRT 4. Boot RedHat Linux \
.POS 23 17
.WRT Your choice : \
.POS 37 17
.KEY 1 :bphdboot
.KEY 2 :linux.PX
.KEY 3 :win31.P
.KEY 4 :win95.P
¦b±zªº DHCP ³]©wÀɤ¤¥[¤J±zªº«È¤áºÝ. ¨Ã³]©w¶}¾÷¼v¹³Àɬ° /tftpboot/XXXclean
.
±z¥i¯à»Ýn«·s±Ò°Ê±zªº DHCP ¦øªA¾¹¨Ï±zªºÅܧó¥Í®Ä.
²{¦b§ÚÌ°_°Ê±zªº«È¤áºÝ. ±z¥i¥H°T³tªº¬Ý¨ì¥Ñ bpclean
,
©Ò°e¥X¨Óªº°T®§, §i¶D±z¥¦©Ò«Ø¥ßªº¤À³Î°Ïªº¤j¤p, µM«á±z·|¬Ý¨ì¶}¾÷¿ï³æ¥X²{¦b±zªºÀç¹õ¤W.
±z¥i¥H¥ÎÁä½L¤Wªº pause
Áä¨Ó
¼È°±¥H«KŪ¨úè誺°T®§, ¦ý¬O³o¥i¯à·|¾ÉP TFTP ªº³s±µ¹O®É.
¦pªG±z«ö¤U«öÁä 1
, ±z±N¦¬¨ì¤@Ó³o¼Ëªº°T®§"¶}¾÷¤À³Î°Ï¦s¦b¤@ÓµL®Äªº¶}¾÷ºÏ°Ï"
(the boot partition contains not valid boot sector).
¹ï¥¼³Q®æ¦¡¤Æ¹Lªº¶}¾÷¤À³Î°Ï¦Ó¨¥³o¬O¥¿±`ªº. ¦]
¬°§Ú̲{¦bÁÙ¥¼«Ø¥ß¥ô¦ó¶}¾÷¼v¹³ÀÉ©Ò¥H¨ä¥Lªº«öÁä±N·|¥¢®Ä...
²{¦b§ÚÌn¶}©l¦w¸Ë¦UºØ§@·~¨t²Î. ±z¥i¨Ì±zªº»Ýn¨Ó¨M©w¥ý°µ¨º¤@ºØ. ¹ï¥ô¦ó¤@ºØ§@·~ ¨t²Î, ±z³£»Ýn¥ý±q³nºÐ¨Ó°µªì©l¤Æªº°Ê§@. ©Ò¥H§Ú̦b¬Ý¨ì TCP/IP Bootprom ªº¼Ð»x«á¥ß ¨è«ö space Áä´«¦¨³nºÐ¶}¾÷.
¦³¨Ç§@·~¨t²Î·|§ó°Ê¥Dn¶}¾÷p¿ý (master boot record). ¯S§O¬O Linux kernel loader (lilo
) ·|³o¼Ë
°µ.¦Ó³oºØÅÜ°Ê·|¦] bpclean
³oÓµ{¦¡¦ÓµLªk§¹¦¨, ¦]¦¹±z³Ì¦n§ïÅܫȤáºÝªº DHCP ³]©w¤º
®e¨Ï¶}¾÷¼v¹³Àɪ½±µ¸õ¨ì /tftpboot/XXXmenu
(¤£°µ²M²zªº°Ê§@).
§O§Ñ¤Fn¨Ï±zªº§ïÅܥͮÄ,±z¥²»Ý«·s±Ò°Ê DHCP ¦øªA¾¹.
¦b±zªº«È¤áºÝ¬[³]
RedHat Linux 4.1 ¤ä´©ºô¸ô¥\¯à, kernel ì©lµ{¦¡½X¤Î±z©Ò»Ýnªº³nÅé®M¥ó.
·Ç³Æ¥¼¨Ón±¾¤JªºÂI (©ñ¦b /mnt/tmp
¤ñ¸û¦³¥Î),
³]©w±zªº X server, µ¥µ¥. ¦b
/usr/src/linux-2.0.27
¥Ø¿ý¤¤, ±z¥²¶·¦³ kernel 2.0.27 ªºì©lµ{¦¡½X.
²{¦b§ÚÌn¥[¤J¤@¨Ç×¥¿ÀÉ, ¨Ï¥¦¤É¯Å¨ì 2.0.30, ¨Ã¥B¤ä´© TCP/IP Bootprom ¤ÎÀɮק֨úªº ¥\¯à. Àɮק֨ú¬O¤@Ó §â "¥¼½T©wªº" NFS ÀÉ®×Àx¦s¦b±zµwºÐ¤¤ªºµ²ºc, ¥¦±z¥i¥H°§Cºô¸ô t¸ü. TCP/IP Bootprom ªº¤ä´©¤w¸g¥Ñ³ Marc Vuilleumier Stuckelberg §¹¦¨, ¨Ã¥B¥Ñ David Clerc Âಾ¨ì kernel 2.0 . Àɮק֨ú¤w¸g¥Ñ Unifix GmbH §¹¦¨, ¨Ã¥B¤w ¬O Unifix Linux 2.0 ªº¤@³¡¥÷. TCP/IP Bootprom ¤ÎÀɮק֨úªº¤ä´©³£¤w¸g¥Ñ¥¦Ìªº§@ªÌ§K¶Oªº´²¥¬.
ȱoª`·Nªº¬O Linux ¹ï NFS-Root ªº¤ä´©¥u¯à¬[ºc¦b BOOTP ³q°T¨ó©w, ¤£¬O DHCP ³q°T¨ó ©w. ¶ÈºÞ DHCP ¥u¬O BOOTP ªº©µ¦ù, Linux ¤]¥i¥H¦b DHCP ¦øªA¾¹¤U¤u§@ (¦pªG±z¨S¦³³] ©w DHCP ¦øªA¾¹©Úµ´ BOOTPn¨D).
º¥ý, ¨ì±zªº /usr/src
¥Ø¿ý¨Ã¥[¤J¤U¦C×¥¿ÀÉ, ¨Ï¥Î³oÓ«ü¥O
patch -p0 <
×¥¿Àɪº¦WºÙ:
patch-2.0.28
: ³o¬O¤@Ó¥¿¦¡ªº kernel §ó·s, ±z¤@©wn¥[¤J³oÓ×¥¿ÀÉ
patch-config-sound
:
¤@Ó¬ü¤Æµ®Ä³]©wªº×¥¿ÀÉ, ¨Ó¦Û Unifix Linux 2.0
patch-PCSP
:
¤@Ó¸û¤jªº×¥¿ÀÉ¥Î¨Ó¨Ï PC ªº´Án¾¹¼ÒÀÀµ®Ä¥d, ¨Ó¦Û Unifix Linux 2.0
patch-bootprom
:
¤@Ó¤pªº×¥¿ÀɥΨӲ£¥Í¯S§Oªº kernel image, ¨Ï¥¦¥i¥Ñ TCP/IP Bootprom ¶}¾÷
patch-filecache
:
¤@Ó¤pªº×¥¿ÀÉ¨Ï kernel ¥[¤J¤@¨Ç¯S§O¥\¯à, ¦p Unifix filecache. ¨Ó¦Û Unifix Linux 2.0
patch-penguinlogo
:
¤@Ó¤pªº×¥¿ÀÉÀ°§U±zªº¨Ï¥ÎªÌµ¥¨ì Linux ¨t²Î§¹¥þ¸ü¤J
patch-2.0.29
: ¥t¤@Ó¤pªº¥¿¦¡ªº kernel §ó·sÀÉ, ¦pªG±z¤£»Ýn³Ì·sª©ªº kernel «h¤£¥Î¥[¤J¥¦
patch-2.0.30
: ¤S¬O¤@Ó¥¿¦¡ªº kernel §ó·sÀÉ, º¡¤jªº.
¤@¼Ë, ±z¤£»Ýn¥[¤J³o¶µ×¥¿ (¦ý¥¦·|§ïµ½ TCP/IP ³q°T ¨ó©w). ¦pªG¦b±zªº¾÷¾¹¤W
±z¨S¦³ alpha ªºì©lµ{¦¡½X (³o«Ü¦³¥i¯àµo¥Í), ³oÓ×¥¿ÀɱN¥X²{¨â¦¸©ê«è§t¤JÀɤ£¦s¦bªº°T®§.
¤£nºò±i, ¥un¦^µª±zn¸õ¹L³o¨Ç¯Ê¤ÖªºÀÉ®×,¤£·|µo¥Í¥ô¦ó°ÝÃD
make mrproper
¤Î make xconfig
, ²£¥Í kernel.
°O¦í³o±N¬O«È¤áºÝ¹q¸£¥H Linux ±Ò°Ê®É,
°ß¤@±µ¦¬¨ìªº³nÅé, ©Ò¥H ¥¦¥²¶·n¥]§t±Ò°Ê¾ãÓ§@·~¨t²Î©Ò»ÝªºªF¦è. ¥i¥H¨Ï¥Î¼Ò²Õ¤è¦¡,
¦ý¬O¤£¥]¬Aºô¸ô¼Ò²Õ. ¦]¬°ºô¸ô¥\¯à¤@©wn©ñ¦b kernel ¤¤. ²¦Ó¨¥¤§, ±zªº kernel ¦Ü¤Ö»Ýn
¥H¤U³o¨Ç
filecache
.config
·í°µ°_ÂI. ¦pªG±z·Qn¦b¨S¦³ Bootprom ªºª¬ªp¤U´ú¸Õ, ½Ð½T©w±z
¤w¸g¦b kernel ¤º¥]§tµwºÐ¾÷ªº¤ä´©.
·í±zªº¿ï¾Ü§¹¦¨«á, ·Ó±`¦a¿é¤J make clean;
make dep
±µµÛ make zImage
, make modules
»P
make modules_install
. ³o·|ªá¤@ÂI®É¶¡...
²{¦b±z·Ç³Æ¥h´ú¸Õ±zªº·s kernel, ¥ý¥Î¥ý¥Î lilo. ¦w¸Ë±zªº kernel
(°Ñ¦Ò lilo ¤å¥ó),¨Ã«·s±Ò°Ê±zªº¹q¸£ (¥ÑµwºÐ±Ò°Ê). ¦p¦³¥ô¦ó¿ù»~, ×¥¿¥¦Ì¨Ã¦A¸Õ¤@¦¸.
°õ¦æ depmod -a
pºâ modules dependencies. ·í§¹¥þµL»~®É, °õ¦æ make bpImage
²£¥Í¤@Ó
bootimage µ¹ TCP/IP Bootprom ¨Ï¥Î.
±zªº¦øªA¾¹n¦³¨¬°÷ªºªÅ¶¡¨Ó«O¦s±zªº¾ãÓ Linux Àɮרt²Î (´X¦Ê Megabytes). «Ø¥ß¤@Ó·s
ªº¥Ø¿ýµ¹ NFS ¿é¥X, ´N¥s rootfs
, ¨Ã¦b¨ä¤¤«Ø¥ß¥t¤@Ó·s¥Ø¿ý´N¥s runtime
. §Ų́ϥÎ
/export/linux/rootfs/runtime
. §â¥¦¿é¥X¦¨¥u¦³±zªº Linux «È¤áºÝ¥iŪ¥i¼g, ¨Ã¨ã¦³ root ªº¦s¨úÅv (
annon=0
). ¨Ò¦p, §Ú̪º NFS ¬O¦b Solaris ¤U°õ¦æ, §Ú̥ΥH¤U³oÓ«ü¥O:
share -F nfs -o rw=pc7971,anon=0 /export/linux/rootfs/runtime
.
¦b±zªº Linux «È¤áºÝ±¾¤W³oÓ¤À³Î°Ï¨Ã¥ÎGNU tar
§â¾ãÓ Linux Àɮרt²Î½Æ»s¹L¥h (¹w³]¬O
RedHat Linux). «Ü«nªº¬O·í±z¨Ï¥Î GNU tar
«ü¥O,¦]¬°©Ò¦³ªº tar
«ü¥O¥i¯àµLªk¥¿½T¦a³B²z
block device ªº special nodes . µM«á½s¿èÀÉ®× /export/linux/rootfs/runtime/etc/fstab ¨ÃÅܧó®Ú¥Ø¿ýªº
³]©w,¨Ï®Ú¥Ø¿ý²Å¦X¥H nfs mount ¨ú¥N¦Û¤vªºµwºÐ¾÷. §AÁÙn²¾¥h (©ÎªÌ ¦Ü¤ÖnÅܧó¦WºÙ)
/export/linux/rootfs/runtime/etc/sysconfig/network-scripts/ifcfg-eth0
¦]¬°ºô¸ô¸Ë¸m±N¥Ñ NFS-root ªì©l¤Æ¦ý¤£¯à³Qªì©l¤Æ¨â¦¸.
²{¦b¦b±zªº /etc/lilo.conf
½Æ»s¤@¦æ linux, ¨Ò¦p:¥H linux-nfs
¬°¦W, ¨Ã¥[¤J¥H¤Uªº°Ñ¼Æ:
append="root=/dev/nfs nfsroot=/export/linux/rootfs/runtime nfsaddrs=
±zªº-ip:¦øªA¾¹ªº-ip:¹h¹D¾¹ªº-ip:ºô¸ô¾B
¸n:¾÷¾¹¦WºÙ"
(±zªº-ip ¬O±zªº Linux «È¤áºÝªº IP ¦ì§},¬O¥H¤Q¶i¦ì¦³ÂIªº¤èªkªí¥Ü, ¦øªA¾¹ªº-ip ¬O NFS
¦øªA¾¹ªº IP ¦ì§}, ¹h¹D¾¹ªº-ip
¬O Linux «È¤áºÝªº¹w³]¹h¹D¾¹, ºô¸ô¾B¸n ¬O Linux «È¤áºÝªº
ºô¸ô¾B¸n ¦Ó ¾÷¾¹¦WºÙ ¬OLinux «È¤áºÝªº¥D¾÷¦WºÙ). ¦A°õ¦æ¤@¹M lilo , «·s±Ò°Ê±zªº¹q¸£
(¤´µM¬O¥ÑµwºÐ¾÷), ¨Ã¿ï¾Ü linux-nfs
¶}¾÷³]©w. ±zªº¹q¸£±N¦p¥ý«e¤@¯ë±Ò°Ê, §Y¨Ï¦³¤@ÂIºC.
¦pªG¦b³o¸Ì¦³¬Y¨ÇªF¦è¤£¯à¥¿±`¤u§@, ±z¥un«·s¶}¾÷¥Î±zì¨Ó localªº linux
¶}¾÷³]©w¨Ã¸Õ
µÛ×¥¿¥¦. ¤j³¡¥÷ªºª¬ªp¬O, ±zªº NFS root ³]©w¿ù»~. ¦pªG¦³¥ô¦óªF¦è±z¤£ÁA¸Ñ, ¬Ý¤@¤U
/usr/src/linux/Documentation
³o¨ÇÀÉ®×... ±z©Î³\¥i¥H¬Ý¬Ý
NFS-Root-Mini-Howto.
±z¥i¥H¦A¸Õ¤@¦¸,³o¦¸¥u¥Î append="root=/dev/nfs"
¥H½T©w Linux kernel ¥i¥H³z¹L DHCP/BOOTPn¨D¦ÓÀò±o±z©Ò³]©wªº IP °Ñ¼Æ. ¦pªG
n³o¼Ë°µ, ±z¥²¶·¦b±zªº DHCP ³]©wÀɤ¤¥[¤J¥H¤U
³o¨Ç¿ï¶µ (·íµM¬On³]©w±z¦Û¤vªººô¸ô²ÕºA), ¥[¤W±zªº¾÷¾¹ªºµwÅé¤Î IP ¦ì§}:
option subnet-mask 255.255.252.0;
option routers 129.194.68.1;
option root-path "/export/linux/rootfs";
¦pªG±zªº Linux kernel ¶·n¦A¥[¤J¨ä¥¦«ü¥O°Ñ¼Æ, ±z¥i¥H¥Î option option-177
¨Ó¥[¤J.
¤U¤@¨Bn¨Ï§Ú̪º¨t²Î¦b °ßŪªº NFS Àɮרt²Î¤U¥i¥H¤u§@.
¬JµM§ÚÌn§Ú̪º root Àɮרt²Î¦b¤j³¡¥÷ªº Linux «È¤áºÝ¥H°ßŪªº¤è¦¡±¾¤W, ¨º´Nn¨ÏÀÉ
®×¨t²Î¦³¨Ç·Lªº¤£¦P, ¦]¦¹§Ú̱N»Ýn¼g¤JÅvªº¦a¤è¥H ramdisk ©Î filecache ¨ú¥N. §Ú̧â
³oÓÀɮרt²Î«Ø¥ß¦b /export/linux/rootfs
¥Ø¿ý¤U, ¦Ó¼Ð·Çªºª©¥»«hª½±µ©ñ¨ì /runtime/
¤U. µn¤J±z
ªº NFS ¦øªA¾¹¨Ã¦b /export/linux/rootfs
¥Ø¿ý¤U,«Ø¥ß¥H¤Uªº¥Ø¿ý¸ò³sµ²:
/ramdisk
, ¦³
¨Ç«h«·s«ü¨ì cache
¥Ø¿ý. ·í¥Î°ßŪªº NFS filesystem ¶}¾÷, §Ú̱N±¾¤W¤@Ó¤wªì©l¤Æ¹Lªº
ramdisk ©ñ¦b /ramdisk
¤U. ¦P¼Ëª, ¦Û¤vµwºÐªº¤À³Î°Ï±N³Q±¾¦b /cache
µ¹ NFS §Ö¨ú¨Ï¥Î. ²Ê²¤ªº
»¡,³oÓÀɮק֨úªºì²z¬O·íthe principle of the filecache is that whenever a symbolic link from the
cache subdirectory is followed, it is replaced by its target. ¦pªG¥Ø¼Ð¦Û¤v¬O¤@Ó¤l¥Ø¿ý, «h¨C¤@Ó
¤l¥Ø¿ý·|Âà´«¦¨¤@ӲŸ¹³sµ²¨Ã³sµ²¨ì¥~³¡Àɮרt²Îªºì©l¦ì¸m. ª`·NÀɮק֨ú¨Ï¥Îµ´
¹ï²Å¸¹³sµ²¬O¥²¶·ªº, §Y¨Ï¥¦Ì¦b NFS ¦øªA¾¹¤W¬OµL·N¸qªº. ¦pªG±z¤£³ßÅw³o¼Ë, ¥i¥H¦b
±zªº NFS ¦øªA¾¹¤W,«Ø¥ß¤@ӲŸ¹³sµ²¥Ñ /runtime
¨ì /export/linux/rootfs/runtime
.
¦b°ßŪªº«È¤áºÝ¥[¤J¤@¨Ç³]©wªºªF¦è¬O¥²¶·ªº, ¦p¦¹¤~¥i¥H±¾¤W ramdisk, ¤Î³]©wÀɮק֨ú ©M°»´úµwÅé¥HÅܧó³]©wÀÉ. ³o¨Ç³£¥Ñ¤TÓµ{§ÇÀÉ©M¤@Ó²ÕºAÀɨӧ¹¦¨, ±z¥i¥H§â¥¦½Æ»s¨ì ±zªºNFS ¦øªA¾¹:
runtime/etc/rc.d/rc.ramdisk
,
¥i¥H§Ö³t³]©w¨Ã±¾¤W ramdisk:
#!/bin/sh
#
# ³]©w¤@Ó ramdisk ¦]¬° root ³z¹L NFS ¥H°ßŪ¤è¦¡±¾¤W
#
modprobe rd
gzip -c -d /runtime/lib/ramdisk.gz | dd of=/dev/ram bs=1k > /dev/null 2>&1
mount -n -t ext2 /dev/ram /ramdisk
runtime/etc/rc.d/rc.sysdetect
,
³o¬O©Ò¦³ªº¾÷¾¹¦U¦Û¿W¥ßªº³]©wÀÉ, ¥]¬A°»´ú¤Î¤À°t °Ï°ìµwºÐ¾÷ªº¤À³Î°Ï
µ¹Àɮק֨ú¨Ï¥Î. ¬°¤FªÅ¶¡ªº²z¥Ñ§Ṳ́£¦b¦¹¥÷¤å¥ó¥i¦C¦Lªºª©¥»¤¤¥]§t¦¹ÀÉ, ¦ý±z¥i¥H¦b¶W¤å
¥óªºª©¥»§ä¨ì¥¦;
runtime/etc/rc.d/init.d/filecache.init
³o¬O¥Î¨Ó±Ò°ÊÀɮרt²Îªº:
#!/bin/sh
#
# filecache: Àɮק֨ú: ±Ò°ÊÀɮק֨ú (µ¹ NFS root ¥Î)
#
# ¨Ó·½¥\¯à¨ç¼Æ®w.
. /etc/rc.d/init.d/functions
# ¬Ý¬Ý§Ú̦p¦ó©I¥s¥\¯à¨ç¼Æ.
case "$1" in
start)
if [ -e /cache -a -r /etc/filecache.conf ]; then
echo -n "Starting NFS filecache: "
# §â var »P tmp ²¾¨ì°Ï°ì©ÊªºµwºÐ¾÷
rm -rf /cache/var /cache/tmp
(cd /ramdisk; tar cf - var tmp) | (cd /cache; tar xf -)
(cd /ramdisk; rm -rf var tmp;ln -s /cache/var;ln -s /cache/tmp
)
chmod 777 /cache/tmp
# ±Ò°ÊÀɮק֨ú
daemon filecache -d on
echo ""
touch /var/lock/subsys/filecache
fi
;;
stop)
filecache off
rm -f /var/lock/subsys/filecache
;;
*)
echo "*** Usage: filecache.init {start|stop}"
exit 1
esac
exit 0
runtime/etc/filecache.conf
,
Àɮק֨úªº³]©wÀÉ
Max 100 MB 50 % #
Cache /runtime /cache
runtime/etc/rc.d/rc.sysinit
, Àɮפº³Ì«e±ªº¦ì¸m, ¦p¤U©Ò¥Ü:
# ³]©w©Ò»Ýªº ramdisk (µ¹ root NFS °ßŪªº¾÷¾¹)
if [ -e /ramdisk -a -r /etc/rc.d/rc.ramdisk ]; then
/etc/rc.d/rc.ramdisk
fi
# ³]©wµwÅé¦U¦Û¿W¥ßªº°Ñ¼Æ (µ¹¨CÓ root NFS¨Ï¥Î)
if [ -r /etc/rc.d/rc.sysdetect ]; then
/etc/rc.d/rc.sysdetect
fi
¦Ó²Ä¤TÓÀ³¸Ó
be bound as usual to the System V init directories: we use links
named S35filecache
in the rc3.d
and rc5.d
directories,
and K80filecache
in the rc0.d
, rc1.d
, rc2.d
and
rc6.d
directories.
Àˬd¤@¤U rc.sysdetect
³oÓÀÉ®×, ¨Ã¨Ï¥¦»P±zªºµwÅé³]³Æ°t¦X. ¯S§Onª`·Nªº¬O, ¦pªG±z¸ò§Ṳ́@¼Ë¨S¦³
¨Ï¥Î¬Û¦PªºÅã¥Ü¥d¤Î¿Ã¹õ (³o«Ü¥i¯àµo¥Íªº :-), ¬Ý¬Ý¥¦Ì¦b /proc/pci
ªº¦^À³¨Ã¨Ì¦¹×§ï±ÔzÀÉ. ¦b¨C¥x
¾÷¾¹©Ò¨Ï¥Îªº¦s©ñ¦ì¸m¤U, ¨ä rc.sysdetect
¤§¤¤¦³¤@¬q¤º®e¬°, ¥i¦Ûqªº³]©wÀÉ
(¨Ò¦p printcap
), a¬°¤F¯à¨C
¥x¿W¥ß¤u§@, ±z»Ýn©ó¦øªA¾¹ªº dhcpd.conf
Àɮפ¤, ¥Î¯S§Oªº¼Ð°O option-132
³]©w¨C¥x¾÷¾¹©Ò¨Ï¥Îªº¦ì
¸m. ¦b±zÄ~Äò¦w¸Ë¤§«e, ±z¦Ü¤Ön¥ý«Ø¥ß°ò¥»ªº´XÓÀÉ®×
runtime/etc/fstab.ref
©M
runtime/etc/hosts.ref
,
³o¨Ç±N¥Ñ rc.sysdetect
±ÔzÀɦb±Ò°Ê®É³z¹L°»´ú³]©w¨Ó§¹¦¨,
¬°¤F°ÊºAªº³]©w X servver, ¨Ï¥Î
RedHat ³nÅé®M¥ó, ¦³¤@¥ó¨Æ±z¥²¶·¥ýÅܧóªº: ¦b /usr/X11R6/bin
¤Î /usr/X11R6/lib/X11
¥Ø¿ý¤U, ¦³¤@¨Ç¬ÛÃöªº
³sµ²³]©wÀɤΥؿýÀ³¸Ó§ï¦¨µ´¹ï³sµ². §O§Ñ¤F¥H«áªº X server §ó·s¦w¸Ë¤]n¦pªkªw»s.
§â
filecache ¦w¸Ë¦b runtime/bin
¥Ø¿ý¤U, ¨Ã§â¥¦ªº¨Ï¥Î»¡©ú
man page ¦w¸Ë¦b runtime/usr/man/man8
¥Ø¿ý¤U. §â
bootptag ©Î
dhcptag ¦w¸Ë
¦b runtime/usr/local/bin
¥Ø¿ý¤U, ¨Ã¥B
bootptag.c
(©Î
dhcptag.c) ¥²¶·©ñ¦b
runtime/usr/local/src
¥Ø¿ý¤U: ¥¦¬O¤@Óµo°e BOOTP/DHCP n¨D, ¨Ã¥H¬Û®e©ó shell ªº¼Ð·Ç¿é¥X®æ¦¡¦^À³
BOOTP/DHCP ¤º®eªº¤pµ{¦¡, ´N¦p¤Uªº½d¨Ò©Ò¥Ü:
bootp_your_ip='129.194.71.32'
bootp_server_ip='129.194.77.31'
bootp_filename='XXXclean'
bootp_subnet_mask='255.255.252.0'
bootp_routers='129.194.68.1'
bootp_domain_name_servers='129.194.69.200 129.194.8.7 129.194.4.32'
bootp_host_name='pc7132'
bootp_domain_name='unige.ch'
bootp_root_path='/export/linux/rootfs'
bootp_broadcast_address='129.194.71.255'
bootp_nis_domain='cuisunnet.unige.ch'
bootp_nis_servers='129.194.69.200'
bootp_option_132='dufour'
¼Ð°Oªº¦WºÙ»P RFC 2132 «Ü¬Û¦ü. ¦pªG±z¨Ï¥Î dhcptag
, ±z±N±o¨ì¤@¨Ç¥H dhcp_
¶}ÀYªº¼Ð°O, ³o¨Ç¬O
DHCP-³W®æªº¿ï¶µ¤º®e; ¬°¤FÅU¤Î¬Û®e©Ê, ¨ä¥¦ªº¸ê°T¤´µM¥H bootp_
¬°¦rº. §Ų́ϥγoÓµ{¦¡¦Û°Ê³]
©w rc.sysdetect
. ³Ì«á, ¦b runtime/lib
¦w¸Ë
makeramdisk script . §Ú̱N¥Î¥¦¦Û°Ê²£¥Í ramdisk ¼v¹³ÀÉ. ³o¨Ç³nÅé
³£¦b¶W¤å¥óªºª©¥»¤¤.
²{¦b¸ÕµÛ¥Ñ«È¤áºÝ¥H read-write NFS ¶}¾÷ (¤´µM¥ÎµwºÐ¶}¾÷). ¥¦±N°»´ú±z«È¤áºÝªºÓ§O²ÕºA, ¨Ã
²£¥Í¾A·íªºÀÉ®. Àˬd /etc/fstab
, /etc/hosts
, /etc/sysconfig/network
¬O§_³]©w¥¿½T. ¦pªG±z¬Ý¨ìªº¤£¬O³o¼Ë, ½Ð¦b
³æ¤H¤u§@¼Ò¦¡¤U«¸Õ¤@¹M, ¨Ã§ä¥X±z¦b rc.sysdetect
±ÔzÀɤ¤©Ò¥Çªº¿ù»~.
µ¥¨ì¥¦¥i¥H¥¿±`¤u§@, ¨ì /lib
¥Ø¿ý¤U°õ¦æ ./makeramdisk
. ±N·|ªá´X¬íÄÁ, ¨Ó²£¥Í¤@Ó ramdisk ¼v¹³Àɵ¹°ß
Ūªº NFS «È¤áºÝ. §â²£¥Í¥X¨Ó±o ramdisk image ©ñ¦b³o /lib/ramdisk.gz
, ´N³o¼Ë±zªº²ÕºA´Nºü¤F!
¦pªG±zÁÙ¥¼§¹¦¨¥¦, ½Ð¦w¸Ë±zªº TCP/IP Bootprom-¬Û®eªº kernel ¼v¹³ÀÉ (¥i¦b³o§ä¨ì
/usr/src/linux/arch/i386/boot/bpImage
) §Y±z¦øªA¾¹¤Wªº /tftpboot/linux.PX
. rc.sysdetect
³oÓ±ÔzÀɥΨӪì©l¤Æ±zªº
Linux swap ¤Î Linux ¸ê®Æ¤À³Î°Ï. ¦]¬°n±Ò°Ê¥¦, ¬G½s¿è¦øªA¾¹¤W XXXclean.tab
³oÓÀɮרçïÅܤÀ³Î°Ï
ªº«¬ºA¥Ñ hex 82 §ï¬° hex 28, ¤Î hex 83 §ï¬° hex 38. ³o¬O¤@ºØ¥¼ª¾ªº¤À³Î°Ï«¬ºA, ¦ý¬O¦w¸Ëµ{§ÇÀɯà§â¥¦·í¦¨¹w³Æ¤À³Î°Ï¨Ó¿ë
ÃÑ. ¦b DHCP ªº³]©wÀɤ¤, §â¶}¾÷Àɳ]©w¬° XXXclean
, ¨Ï¥¦¯à«·s
«Ø¥ß¤À³Îªí. §O§Ñ¤F¦bק粒³]©wÀÉ«án«·s±Ò°Ê DHCP daemon.
³Ì«á, unexport ¥iŪ¼gªº runtime
¥Ø¿ý, ¨Ã export °ßŪªº /export/linux/rootfs
¥Ø¿ý. «·s±Ò°Ê«È¤áºÝ, ³o¤@¦¸¨Ï
¥Î¶}¾÷¨Ï¥Î Linux ¿ï³æªº¿ï¶µ. ±zªº¨t²Î²{¦b¤w¬O remote-boot Linux.
¦pªG±z¥H«á·Q§ó·s³nÅé,¦w¸Ë¤@¨Ç¿ù»~×¥¿ÀɩΦw¥þ©Ê×¥¿ÀÉ, ½Ð«ö·Ó¤U¦C¨BÆJ:
rootfs
¥Ø¿ýruntime
¥Ø¿ý¬°¥iŪ¥i¼gµ¹±z±o«È¤áºÝnfsroot
¥Ø¿ý¬° runtime (¦b /etc/bootptab
¤¤³]©w)rpm
, ¥¦¥i¥H°µ±o«Ü¦n (¥un¤p¤ß·í
±z¦w¸Ë¥ô¦ó³nÅé®M¥ó®É,nª`·N¤@¨Ç±z°µ¹Lªº×¥¿¥i¯à¦³¨Çn§@קï).
¦b±zªº«È¤áºÝ¹q¸£, ¨Ï¥Î±z³ßÅwªº dos ³nºÐ¶}¾÷ (°O±o¶}¾÷®É, «öªÅ¥ÕÁä¨ú®ø BootPROM ¶}¾÷). ®æ¦¡
¤Æ±zµwºÐ¤¤ªº dos ¤À³Î°Ï¨Ã¥[¤W /S
°Ñ¼Æ, ¨Ï¥¦©ñ¤J§@·~¨t²Î. «Ø¥ß¤@Ó¦W¬° DOS
ªº¤l¥Ø¿ý, §â DOS «þ
¨©¶i¥h. ¦w¸Ë§A©Ò³ßÅwªººô¸ô«È¤áºÝµ{¦¡ (¨Ò¦p Microsoft LanManager), Windows 3.1, µ¥µ¥. ¨Ï¥Î DHCP
³q°T¨ó©w³]©w IP ²ÕºA.
±z¥²¶·«ì´_쥻³Q BootPROM ©Ò¨Ï¥Î±¼ªº°O¾ÐÅéªÅ¶¡ (·í DOS ±Ò°Ê«á³o¨Ç°O¾ÐÅ餣¦A»Ýn¥Î¨ì°Õ)
¥[¤J¤U±³o¤@¦æ¨ì±z config.sys
¤ºªº²Ä¤@¦æ:
device=\util\bputil.sys -r
(bputil
¬O¤@Ó TCP/IP BootPROM ¤u¨ãºÏ¤ù¤¤ªºµ{¦¡). ¤£¥Î©È¨Ï¥Î EMM386 ³Ì¨Î¤Æ±z©Ò¨Ï¥Îªº°O¾ÐÅé,
±z¥i¥H§âºô¸ô¥d ROM ©Ò¦ûªº°Ï°ì¯Ç¤JºÞ²z, ¦]¬°¥¦¦b³o®É¤w¸g¥Î¤£¨ì¤F. ¦ýn°O±o§âºô¸ô¥d©Ò¨Ï¥Î
ªº RAM °Ï¶ô¤£¯Ç¤JºÞ²z, §_«h±z±NµLªk³s±µ¨ì±zªº¦øªA¾¹.
¦pªG±z¤£Åý±zªº«È¤áºÝ¾÷¾¹¨Ï¥ÎµL®Äªºµn¤J¦WºÙ, §â§Ú̪º
nobreak.sys
pseudo-device ÅX°Êµ{¦¡©ñ¦b±z
config.sys
ªº¶}ÀY³B¨Ã§â¥H¤U³o¨ÇªF¦è©ñ¨ì±zªº autoexec.bat
:
rem -- §Ų́ϥΠc:\logged ¬°¤@ÓºX¸¹
del c:\logged >nul
:loginneeded
cls
echo Please type in your login name and password
echo.
net logon *
rem -- the login script ¤w¸g«Ø¥ß¦n c:\logged
if not exist c:\logged goto loginneeded
del c:\logged
rem -- ¨Ï break ¥\¯à¥Í®Ä
echo Yes >NOBRK
«·s¶}¾÷¨Ã¦b¶}¾÷¿ï³æ¤¤¿ï¾Ü Boot from local hard-disk ¿ï¶µ, ½T©w¥i¥H¶}¾÷.
¦^¨ì¦øªA¾¹¤W, «Ø¥ß¤@Ó¤À¨É¦WºÙ¬° admin
, ¥Î¨Ó©ñ¤@¨Ç¨t²ÎºÞ²zªÌ¥ÎªºªFªF. ¦pªG¦øªA¾¹¬O¶] Unix,
«Øij±z§â /tftpboot
¤l¥Ø¿ý¥Î softlink ©ñ¤@¥÷¨ì admin
, ³o¼Ë±z¥i¥Hª½±µ¥Ñ«È¤áºÝ¶Ç¦^¶}¾÷¼v¹³ÀÉ. ¦b admin
¥Ø
¿ý¤º, «Ø¤@Ó /utils
¤l¥Ø¿ý¨Ã©ñ¤J¦p¤Uªº¤u¨ã:
mrzip.exe
,
¤@ӥΨÓÀ£ÁY±z«È¤áºÝµwºÐ¼v¹³Àɪºµ{¦¡.
mrunzip.exe
,
¤@ӥΨӦ^¦s±zµwºÐ¼v¹³Àɨì¦øªA¾¹ªºµ{¦¡.
@echo off
if "%1"=="" goto error
echo >c:\lanman.dos\lmuser.ini
l:\utils\mrzip l:\tftpboot\%1
goto end
:error
echo Usage: MAKEIMG {image-name-without-extension}
:end
²{¦b¦^¨ì±zªº«È¤áºÝ, ¥H¤U±N¥H admin
mount ¬°ºÏºÐ¾÷ L:
¬°½d¨Ò§@»¡©ú±µµÛ°õ¦æ±z«Ø¥ßªº§å¦¸ÀÉ, ¦p
ªG±zÁÙ¨S°µ¨º¥i¥H«ö¤U¦Cªº«ü¥O°õ¦æ (¤£¤@©wn¥Îµ´¹ï¸ô®| )
L:\util\mrzip L:\tftpboot\win31
¤@¤ÀÄÁ¹L«á, ±z¦øªA¾¹¤Wªº /tftpboot
¤l¥Ø¿ý¤U±N¦³¨âÓ·sÀÉ®×, ¦WºÙ¬° win31.imz
, ¬O±zµwºÐ¤º®eªºÀ£ÁY
¼vÅTÀÉwin31.chk
, ³o¬O¬ÛÃöªºÀˬdÀÉ (¬O partition boot record ²Ó³¡×§ï«áªº«þ¨©). ¦b³o¯u¥¿ªº¥Ø¿ý¤º, ¥u
n«Ø¥ß¤@Ó bpunzip
ªº symbolic link (©Î³o¥Î«þ¨©ªº) ¥B©R¦W¬° win31.P
.
±zªºµwºÐ¬°¥Dªº»·ºÝ¶}¾÷³]©w²{¦b¤@¤Á´Nºü°Õ.
²{¦b«·s±Ò°Ê±zªº«È¤áºÝ¨Ã¦b¶}¾÷¿ï³æ¤¤¿ï DOS and Windows 3.1 ªº¿ï¶µ. bpunzip
³oµ{¦¡±N¶Çµ¹±z¤@
¨Ç¥¦²£¥Í¼v¹³ªºªí®æ°T®§, ¨Ã¦Ûºô¸ô¤U¸ü¾ãÓ¶}¾÷¼v¹³ÀÉ
(¦]³o¬O²Ä¤@¦¸¥¦¬Ý¨ì³oÓ¶}¾÷¼v¹³ÀÉ). ³o
±N·|ªá±¼¤@¤ÀÄÁ¥ª¥k. ±µµÛ¥¦·|¸ÑÀ£ÁY³oÓ¼v¹³¨ì DOS ¤À³Î°Ï, ¨Ã¥Ñ¥L¶}¾÷.
³o´N¬O§Anªº, ±zªº»·ºÝ¶}¾÷«È¤áºÝ§¹¦¨°Õ !
¤U¤@¦¸±z«·s¶}¾÷, ¥¦¥u·|¸ÑÀ£©Ò³oÓ¼v¹³ÀÉ, ¤j·§¦b 30 ¬í¤º§¹¦¨.
¦pªG±zn¬°¨C¥x¾÷¾¹×¥¿¤@¨Ç³]©w (¨Ò¦p¹w³]¦Lªí¾÷), ©ÎªÌ¦pªG±z»ÝnÅܧó¤@¨Ç¤£¯à³z
¹L DHCP ³q°T¨ó©wק諸ºô¸ô³]©w, ±z¥i¥H¨Ï¥Î
unzipreg.exe
µ{¦¡¨Ó³B²z,
¥¦¥²¶·©ñ¨ì«È¤áºÝªº autoexec.bat
(ì©lµ{¦¡½X¦b
³o).
³oµ{¦¡±NŪ¨ú¤@ bpunzip
²£¥Íªº¯S®íÁôÂÃÀÉ®×, ¦WºÙ¬° BOOTP.ANS
,
¥¦ªº¤º®e¬O¥Ñ¦øªA¾¹³z¹L BOOTP/DHCP ³q°T¨ó©w¦^¶Çªº. ±µµÛ, ¥¦±NŪ¨ú²Ä¤@ӰѼƩҫüªºÀɮצW
ºÙ, ÂÇ¥Ñ BOOTP/DHCP ªº¦^À³¤º®e, ¥H UNZIPREG:
¼ÐÅÒ¦W :
³oºØ®æ¦¡¨ú¥N©Ò¦³ªº¦r¦ê, ¨Ã§âµ²ªG¼g¤J
²Ä¤GӰѼƩҫüªºÀɮצWºÙ. ¨Ò¦p, ¦p¹L±z¦³ÓÀɮצW¬° input.bat
¤º®e¬°:
set hostname=UNZIPREG:HOSTNAME:
set domainname=UNZIPREG:DOMAINNAME:
set gateway=UNZIPREG:ROUTER:
set subnetmask=UNZIPREG:SUBNET:
set printer=UNZIPREG:T180:
¦Ó±z°õ¦æ¤F³oÓ«ü¥O
unzipreg input.bat output.bat
±z±N±o¨ì¤@ÓÀɮצW¬° output.bat
¥]§t¤º®e:
set hostname=pc7179
set domainname=unige.ch
set gateway=129.194.76.1
set subnetmask=255.255.252.0
set printer=laserwriter1
°²³]±zªº DHCP ³]©wÀÉ©w¸q³o¥x¾÷¾¹¦W¬° pc7179
, »â°ì¦WºÙ¬° unige.ch
, µ¥µ¥, ¦Ó option-180
¼Ð°O¬O
laserwriter1
.
¤]¥i¥H³z¹L³oºØµn¤Jקï Windows ®à±. §Ú̼g¤F¤@Ó¤pµ{¦¡
simple program ¥Î¨Ó¼W¥[ PROGMAN.INI
ÀÉ®×, ¤¹³\¬°¤@
¸s¨Ï¥ÎªÌ³]©w¦P¼Ëªº®à±.
¦b¬°¥ô¦ó¤@¥x«È¤áºÝ¾÷¾¹³]©w«á, §O§Ñ¤F¨Ï¥Î mrzip
«·s«Ø¥ßºÏºÐ¼v¹³ÀÉ¥Hºû«ù±zªº©Ò¦³Åܧó.
¦b¦¹¥÷¤å¥ó¥ý«eªºª©¥», §Ų́ϥιL·L³n¤½¥qªº Windows 95 server-based installation, ¦ý¬O¥Î³o¤èªk¤Ó ¹LµhW¤S¤£¬O¨º»òªº¦³»ùÈ:
¦b«È¤áºÝ¥Î DOS ¶}¾÷, ¦pªG±z¤w¸g³]©w¦n DOS/Windows 3.1 ¨º´NÀH«K¥Ñ¶}¾÷¿ï¶µ¤¤¿ï¤@Ó, ©ÎªÌ¥Î ¤@Ó³nºÐ¶}¾÷ («ö space Áä¥i¥H¸õ¹L BootPROM). ¨Ï¥Î²Ä¤@ºØ¤èªkªºÀuÂI¬O§A¤w¸g¦³¤@¥x¥i¨Ï¥Îºô¸ô ªº«È¤áºÝ, ¨Ã¥B¥u»Ýn§â Windows 95 ªº¦w¸ËºÏ¤ù©ñ¨ì±zªº¦øªA¾¹¤Wªº¬YÓ¦a¤è.
¦pªG±z¥Ñ³nºÐ¶}¾÷, ±zªº²Ä¤@¨B¬O¦w¸Ë§@·~¨t²Î, ¤èªk¬O®æ¦¡¤Æ±zµwºÐ¾÷ªº DOS ¤À³Î°Ï¨Ã¥Î /S
ªº¿ï
¶µ. ¦pªG±z¨Ï¥Î DOS/Windows 3.1 ªº²ÕºA, ¨º»òº¥ý±zn²M°£¤@¨Ç±z¦w¸Ë Windows 95 ®É¤£»ÝnªºÀÉ
®×¥H¤Î¤@¨Ç¦b±z³Ì«áªº¶}¾÷¼v¹³¤¤¤£»ÝnªºÀÉ®× (¨Ò¦p, WINDOWS
³oӥؿý).
¶}©l¦w¸Ë Windows 95, ·ÓµÛ¨BÆJ§â¥¦¸Ë¦b local . ¦w¸Ë³Ì«á, µ{¦¡·|«·s±Ò°Ê±zªº«È¤áºÝ¹q¸£, °µ¤@¨Ç
³]©w¨Ã¦A«·s±Ò°Ê¤@¦¸. ³o´X¦¸ªº«·s¶}¾÷, ±z¥²¶·¦A±zªº¶}¾÷¿ï³æ¿ï¾Ü Boot from local hard-disk ¿ï
¶µ. µ¥¨ì±z³]©w¦n±z©Ò»ÝnªºÅX°Êµ{¦¡«á, ±z¥i¥H°õ¦æ defrag
°µ§¹¾ãªºµwºÐ«²Õ (¥]§t«²Õ¥¼¨Ï¥Î±o
ºÏºÐªÅ¶¡).
±z©Î³\¤]·Qn¨Ï¥Î BootPROM ©Ò¥e±¼ªº°O¾ÐÅé, ¥un¦b config.sys
²Ä¤@¦æ¥[¤W :
device=\util\bputil.sys -r
(bputil
¬O©ñ¦b TCP/IP Bootprom ¤u¨ãºÏ¤ù¤¤). ¤£¦P©ó DOS, ±zÁ×»ÝÁקK¦b Windows 95 ¤¤¨Ï¥Î EMM386
.
¦pªG±zn¨Ï¥Î Windows 95 OSR2 (©Î¥s MSWIN 4.1, ©ÎªÌ Windows 95 service pack 1, ©ÎªÌ Windows 95
with Internet Explorer), ±zn¦b MSDOS.SYS
¤¤ªº [Options]
¬q¥[¤@¦æ (¨S¿ù¥¦¬O¤å¦rÀÉ):
AUTOSCAN=0
³o¼Ë¥i¥H¨Ï Windows ª¾¹D±z¶}¾÷®É¤£¦Û°Ê±Ò°Ê ScanDisk .
·í©Ò¦³ªº³nÅé³£©ñ¦b¦øªA¾¹®É, ¦pªG±zn´î»´ºô¸ô¤Î¦øªA¾¹ªºt¾á (³o±N¼W¶i±zªº¨t²Î®Ä²v) , ±z¥i ¥H¦Ò¼{¦w¸Ë³o®M¬Û·í¤£¿ùªº Shared LAN Cache,¥Ñ Measurement Techniques, Inc ¥Í²£ªº (°Ñ¦Ò http://www.lancache.com). ³o®M³nÅé¦b¨C¥x«È¤áºÝ¹q¸£°õ¦æ, ¥¦·|¹ï©Ò¦³±qºô¸ô¤W¨ú±oªº¸ê®Æ©ñ¦b°Ï °ì©ÊªºµwºÐ¤¤§Ö¨ú. §Y¨Ï¹³ MS-Office ¦b±z²Ä¤G¦¸°õ¦æ®É¤]·|§ó§Ö... ±zªº¨C¥x«È¤áºÝ¹q¸£³£n¦³¤@ ¥÷ª©Åv, ¤£¬O¥¦ÁÙ¤£¬O«Ü¶Q, ³o®a¤½¥q¹ï©ó¤j±M°|®Õ¦³¯S´f»ù®æ. §ó¦nªº¬O±z¥i¥H¨ì¥L̪ººô¶¤U¸ü §K¶Oªºµû¦ôª©.
¦øªA¾¹ºÝ, ¦pªG±z¥Ø«eÁÙ¨S¦³«Ø¤@Ó¦W¬° admin
ªº¥Ø¿ý, ¨º´N«Ø¤@Ó. ³o±N©ñ¤@¨Ç¨t²ÎºÞ²zn¥ÎªºªF
¦è. ¦pªG¦øªA¾¹¬O Unix ªº¾÷¾¹, ²{¦b§â admin
¥Ø¿ý¥Î softlink ¨ì /tftpboot
¤l¥Ø¿ý¤U, ³o¼Ë±z¥i¥H¥Ñ«È¤áºÝ
ª½±µ§â¼v¹³ÀÉ©ñ¨ì³o. ¦b admin
¥Ø¿ý¤º, «Ø¥ß¤@Ó /utils
¤l¥Ø¿ý¨Ã§â¤U¦C¤u¨ã©ñ¶i¥h:
mrzip.exe
,
¤@ӥΨӲ£¥Í±z«È¤áºÝµwºÐ¾÷À£ÁY¼v¹³ªºµ{¦¡.
mrunzip.exe
,
¤@ӥΨӧâÀ£ÁY¼v¹³Àɱq¦øªA¾¹¦^¦s¨ì±z«È¤áºÝµwºÐªºµ{¦¡. ¦b±zªº«È¤áºÝ¶}Ó MS-DOS µøµ¡, ¥i¥H§â±zªº admin
¥Îºô¸ôºÏºÐ¾÷±¾¦b L:
¨Ã°õ¦æ¤U¦Cªº«ü¥O (¤£¤@
©wn¨Ï¥Îµ´¹ï¸ô®|, ¦h¥´´XÓ¦rµL®`°Õ :-)
L:\util\mrzip L:\tftpboot\win95
³o±N¦b¦øªA¾¹ªº /tftpboot
¤l¥Ø¿ý¤U, ²£¥Í¨âÓ·sÀÉ®×, ¦W¬° win95.imz
, ¤@Ó±z«È¤áºÝµwºÐ¾÷ªºÀ£ÁY¼v¹³
¤Î win95.chk, Àˬd¥ÎªºÀÉ®× (¨ä¹ê¤º®e¬O§â¶}¾÷¤À³Î°Ï°µ¨Ç³\ªºÅÜ°Ê). ¯u¥¿ªº¥Ø¿ý, ¥un«ØÓ¦W¬°
win95.P
ªº²Å¸¹³sµ²¨ì bpunzip
(©ÎªÌ«þI¤@¥÷) .
²{¦b±zªº Windows 95 »·ºÝ¶}¾÷²ÕºA´N§¹¦¨°Õ.
²{¦b«·s±Ò°Ê±zªº«È¤áºÝ¹q¸£¨Ã±q¶}¾÷¿ï³æ¤¤¿ï¾Ü Windows 95 . bpunzip
µ{¦¡±Nµ¹±z¤@¨ÇÃö©ó¥¦§ó·s
¼v¹³ªíªº°T®§, ¨Ã¥B±qºô¸ô¤U¸ü¾ãÓ¶}¾÷¼v¹³ (¦pªG¥¦¬O²Ä¤@¦¸¬Ý¨ì³oÓ¶}¾÷¼v¹³).
³o¤j¬ù·|ªá±¼¨â¤ÀÄÁ. ±µµÛ¥¦±N¸ÑÀ£ÁY³oÓ¼v¹³Àɨì DOS ¤À³Î°Ï, ¨Ã±Ò°Ê¥¦.
´N³o¼Ë, ±zªº»·ºÝ¶}¾÷«È¤áºÝ´N§Ç°Õ!
¤U¤@¦¸±z«·s¶}¾÷, ¥¦¥u·|¸Ñ¶}³oÓ¼v¹³ÀÉ, ¤j·§·|ªá 40 ¬í.
Windows 95 »P Windows 3.1 ³Ì¤jªº¤£¦P¬O¥[¤J¤F§Y´¡§Y¥Îªºµ{¦¡½X, §Y¦Û°Ê°»´ú±zªºµwÅé³]³Æ. ¥¦¥» ¨µLªÙÃa³B, ¦ý°ÝÃD¬O¥X¦b¥¦¤Ó¹LÆF±Ó, ¦Ó¥B¦³®É«á·|¥XÂñ.
¦pªG±z¸ÕµÛ¥Î¦P¼Ëªº¶}¾÷¼v¹³¥h±Ò°Ê¥t¤@¥x«È¤áºÝ¾÷¾¹, ±z±N¦b¦¬¨ì¤@°ï Windows °»´ú ¨ì·sªºµwÅé ³]³Æªº°T®§: ¤@¤ù·sªºµ®Ä¥d, ¤@´Ê·sªºµwºÐ¾÷, ¤@¤ù·sªººô¸ô¥d, ©ÎªÌ¤@°¦·sªº·Æ¹«... ·|³o¼Ëªºì ¦]¦³¤G:
±zµLªkÁקKªº°ÝÃD¬O¨C¥x¹q¸£ªººô¸ô¥d. «Ü¤£©¯ªº, µ¹§Ú̪º SMC EtherEX ¨Ï¥Îªº§Y´¡§Y¥Îªºµ{¦¡
½X·|¨Ï¹q¸£·í¾÷. °ß¤@ªº¸Ñªk¬O¨Ï Windows 95 ¬Û«H¥¦¤w¸gª¾¹D¦³³o¤ùºô¸ô¥d, ¥B¤£»ÝIJ°Ê§Y´¡§Y¥Î
¾÷¨î. ³oÓ§Þ¥©´N¬O³z¹L¶}¾÷¦Û°Ê°õ¦æÀÉ autoexec.bat
, ¦Û°Êªº§âÃö©ó³o¤ùºô¸ô¥dªº³]©wÈ¥[¤J
Windows 95 ªº¨t²Îµù¥U¸ê°T. nª`·Nªº¬O¨Ï¥Î PCI ªººô¸ô¥d¨Ã¤£»Ýn³oÓ§Þ¥©.
¨ì±zªº«È¤áºÝ¹q¸£, ½s¿è¶}¾÷¦Û°Ê°õ¦æÀÉ autoexec.bat
¨Ã¥[¤J¤U¦C´X¦æ:
rem --- ×¥¿ Windows ¨t²Îµù¥U¸ê°T¥HÁקK§Y´¡§Y¥Î¥\¯à°»´ú
cls
unzipreg c:\lib\smc.reg c:\temp\smc.reg
regedit /L:c:\win95\system.dat /R:c:\win95\user.dat c:\temp\smc.reg
echo.
del c:\temp\smc.reg
regedit
¬O¼Ð·Ç Windows 95 ªºµ{¦¡. ¦pªG±z¦b Windows 95¤U°õ¦æ¥¦,¥¦¥i¥HÀ°±z¬yÄý±zªº¨t²Îµn¿ý¸ê°T, ©Î
ªÌ¦pªG±z¦b DOS ¤U°õ¦æ¥¦, ¥¦¥i¥H¹ï±zªº¨t²Îµn¿ý¸ê°T°µ¤@¨Ç²³æªº×¥¿.
unzipreg.exe
¬O¤@Ó¦Û»sªº¤pµ{¦¡, ±z¥i¥H©ñ¦b±zªº¸ô®|¤Uªº¥ô¦ó¦a¤è (ì©lµ{¦¡¦Ü¦b
³o). ¥¦±NŪ¨ú¤@ bpunzip
©Ò²£¥Íªº¯S§OÁôÂÃÀÉ®×, ¦WºÙ¬O BOOTP.ANS
, ¥¦¥]§t¨Ó¦Û¦øªA¾¹ªºì©l BOOTP/DHCP ¦^À³¸ê°T.
µM«á, ¥¦±NŪ¨ú²Ä¤@ӰѼƪºÀÉ®×(c:\lib\smc.reg), µM«á¥H BOOTP/DHCP ¦^À³ªº¸ê®Æ¨ú¥NÀɮפº©Ò¦³¥H UNZIPREG:
tagname:
¬°®æ¦¡ªº¤º®e,
±µµÛ¼g¤J²Ä¤GӰѼƪºÀÉ®×(c:\temp\smc.reg).
¦b lib
¤l¥Ø¿ý¤U, §Ú̦³Ó¦W¬°
smc.reg
ªºÀɮר䤺®e¦p¤U:
REGEDIT4
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0]
"HardwareID"="*SMC8416,ISAPNP\SMC8416"
"HWRevision"="1.0.10"
"DeviceDesc"="SMC EtherEZ (8416)"
"Class"="Net"
"Driver"="Net\\0001"
"CompatibleIDs"="*SMC8416"
"Mfg"="SMC"
"ConfigFlags"=hex:10,00,00,00
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0\Bindings]
"MSTCP\\0001"=""
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0\LogConfig]
"0000"=hex:00,04,00,00,00,20,00,00,10,00,00,00,04,00,00,00,00,00,00,00,a8,0e,\
00,00,20,00,00,00,02,00,00,00,01,00,0c,00,00,00,00,00,00,00,00,00,e0,ff,20,\
00,40,02,ff,03,00,00,04,03,2c,00,00,00,01,00,00,00,01,00,14,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,e0,ff,ff,00,20,00,00,00,00,0c,00,ff,ff,0f,00,00,\
00,00,00,2c,00,00,00,01,80,00,00,01,00,14,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,e0,ff,ff,00,80,00,00,00,00,0c,00,ff,5f,10,00,00,00,00,00,00,00,00,\
00
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1]
"HardwareID"="*SMC8416,ISAPNP\SMC8416"
"HWRevision"="1.0.10"
"DeviceDesc"="SMC EtherEZ (8416)"
"Class"="Net"
"Driver"="Net\\0001"
"CompatibleIDs"="*SMC8416"
"Mfg"="SMC"
"ConfigFlags"=hex:10,00,00,00
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1\Bindings]
"MSTCP\\0001"=""
[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1\LogConfig]
"0000"=hex:00,04,00,00,00,20,00,00,10,00,00,00,04,00,00,00,00,00,00,00,a8,0e,\
00,00,20,00,00,00,02,00,00,00,01,00,0c,00,00,00,00,00,00,00,00,00,e0,ff,20,\
00,40,02,ff,03,00,00,04,03,2c,00,00,00,01,00,00,00,01,00,14,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,e0,ff,ff,00,20,00,00,00,00,0c,00,ff,ff,0f,00,00,\
00,00,00,2c,00,00,00,01,80,00,00,01,00,14,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,e0,ff,ff,00,80,00,00,00,00,0c,00,ff,5f,10,00,00,00,00,00,00,00,00,\
00
³oÓÀɮפ@¶}©l¥Ñ Windows 95 ªº regedit
²£¥Í. §Ú̧âÃö©óºô¸ô¥dªº³]©w³¡¥÷¿é¥X¦¨¤@ÓÀÉ®× (
HKEY_LOCAL_MACHINE/Enum/ISAPNP/SMC8416
) µM«á¥Î UNZIPREG:MACID:
°O¸¹¨ú¥Nºô¸ô¥dªºµwÅé¦ì§}. ·í§Ú
̦b³oÀɮפ¤°õ¦æ unzipreg
, ¥¦·|¦Û°Êªº¥Hºô¸ô¥d¯u¹êªºµwÅé¦ì§}Ȩú¥N§ÚÌ©Ò³]©wªº°O¸¹. ª`·N³o
¸Ì¦³Ó¼Æ¦r¦b MACID ¤§«áªº¦³®É¬O C0
¦³®É¬O C1
. §Y¨Ï©ñ¤@Ó¤£¦s¦bªººô¸ô¥d¦b³oÓµn¿ýÀɤ¤¤£
·|¥XÂñ, §ÚÌÁÙ¬O§â¨â¶µ³£©ñ¶i¥h.
ÁÙn¤@¦¸£², ³o¾ãÓ§Þ¥©¹ï PCI ºô¸ô¥d¦Ó¨¥¨Ã¤£»Ýn. ¶¶«K¤@´£ªº¬O, §ÚÌ¥i¥H¥Î¦P¼Ëªº¤èªk¦Û°Êªº
°t¸m¥D¹q¸£¦WºÙ, ·í Windows 95 ¤£¯à³z¹L DHCP ¨úªº³]©w®É. §ÚÌ¥u¶·¥[¤J¤U¦C´X¦æ¨ì§Ú̪º
smc.reg
Àɮפ¤:
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]
"ComputerName"="UNZIPREG:HOSTNAME:"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP]
"HostName"="UNZIPREG:HOSTNAME:"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName]
"ComputerName"="UNZIPREG:HOSTNAME:"
±z¤]¥i¥H¨Ï¥Î¦P¼Ëªº¾÷¾¹«ö·Ó¾÷¾¹ªº«¬ºA¸ò¦ì¸m¨Ó³]©w¨ä¥LªºÀô¹Ò. ³oÓ½d¨Ò, ±z¤@¼Ë¥i¥H°Ñ¦Ò DOS/Windows 3.1 ¨º¤@¬qªº±Ôz.
¦bÅܧó¥ô¦ó«È¤áºÝ¾÷¾¹ªº³]©w«á, ¤d¸U§O§Ñ¤F¥Î mrzip
«·s«Ø¥ßºÏºÐ¼v¹³, §_«h±z©Ò¦³ªº³]©w³£·|¤£
¨£.
¨Ï¥Î³oÓ¨t²Îµn¿ý¸ê°Tªº¤p§Þ¥©, ±zªº³]©w¸ê°T±N¥i¥H¥¿±`ªºÂಾ¨ì©Ò¦³ªº¾÷¾¹. ¦pªG±zµLªkÁקK Windows ¥h°»´ú¤@¨Ç¾÷¾¹¤Wªº·sµwÅé, ¸ÕµÛ¥Ñ³o¥x¾÷¾¹«·s«Ø¥ßºÏºÐ¼v¹³ÀÉ. ¥]§t°w¹ï³o¥x¾÷¾¹©Ò ³]©wªºµn¿ý¸ê°T¤]n©ñ¤JºÏºÐ¼v¹³¤¤, ¦pªG¶¶§Qªº¸Ü¥i¥H¸Ñ¨M³oÓ°ÝÃD.
·íºÏºÐ¼v¹³ÀɸÑÀ£ÁY®É·|ªá¤@¨Ç®É¶¡ (³q±`¬O 20-30 ¬í.), ±z¥i¥Hµ¹¨Ï¥ÎªÌ¤@¨Ç°T®§©ÎªÌ´N©ñ±iº}º} ªº¹Ïµ¹¥L̬Ý. ³oÓ¤u§@¥i¥H«Ü²³æªº§¹¦¨ (¬Ý¬Ý¤U¤@½g¤å¥óªº BPUNZIP ).
¦pªG±z·Q±o¨ì§ó¦h³]©w Samba ªº¸ê°T»P¤u¨ãµ¹»·ºÝ¶}¾÷ªº¹q¸£¨Ï¥Î, §ÚÌÁÙ¼g¤F¥t¤@¥÷¤å¥ó. ¥i¥H
¬Ý¬Ý
http://cuiwww.unige.ch/info/pc
.