Linux Remote-Boot mini-HOWTO: ¨Ï¥Î Red-Hat Linux, DOS, Windows 3.1 ¤Î Windows 95 ³]©w»·ºÝ¶}¾÷¤u§@¯¸ §@ªÌ: Marc Vuilleumier Stückelberg, Sandro Viale and David Clerc ĶªÌ: ´¿¤¸¦ö [1]yytseng@ms16.hinet.net v2.5.2, ¤E¤ë 1997 _________________________________________________________________ ³o¥÷¤å¥ó±N»¡©ú¦p¦ó¨Ï¤@¸sPC¾Ö¦³¬Û·íí©wªº Server-based ¬[ºc , ¦¹ªk¥i¨Ï¨C ¥xPC¦b¶}¾÷®É¿ï¾Ü¨Ï¥Î¦óºØ§@·~¨t²Î. ¦¹ºØ¬[ºcªººë­n´N¬O TCP/IP bootprom , ¥¦¥i¥HÅý¨Ï¥ÎªÌ¦b¶}¾÷®É¿ï¾Ü¤£¦Pªº¶}¾÷°Ï¶ô. ¦¹¥÷¤å¥óªº³Ì·sª©¥»,¥]§t¶W¤å¥ó ³sµ²¨ì¥i¨Ñ¤U¸üªº³nÅé¤Î¨ä¥¦¬ÛÃöªº¸ê°T,³£¥i¥H¦b³o­Óºô§}§ä¨ì [2]http://cuiwww.unige.ch/info/pc/remote-boot/howto.html. Linuxdoc-SGML,DVI ¤Î postscript¦UºØª©¥»³£¦b³o­Ó¥Ø¿ý¤U. _________________________________________________________________ 1. ¦³¨º¨ÇÅܧó... * 1.1 ...±q 1.x ª©«á ? * 1.2 ...±q 2.4 ª©«á? 2. ²¤¶ * 2.1 ºô¸ô * 2.2 ¥¦¬O¦p¦ó¤u§@ * 2.3 ¬ÛÃö«D°Ó·~ 3. ¦p¦ó³]©w * 3.1 ³]©w¶}¾÷¬yµ{ * 3.2 ³]©w Linux * 3.3 ³]©w DOS 6 ¤Î Windows 3.1 * 3.4 ³]©w Windows 95 4. TCP/IP Bootprom ¬ÛÃö¤u¨ãµ{¦¡ * 4.1 MENUEDIT * 4.2 BPHDBOOT * 4.3 BPCLEAN * 4.4 MRZIP, MRUNZIP and BPUNZIP * 4.5 NOBREAK 5. °Q½× * 5.1 Bootproms »P µwºÐ¾÷ * 5.2 ¨Ï¥Î¨º¤@ºØ Bootprom ? _________________________________________________________________ 1. ¦³¨º¨ÇÅܧó... 1.1 ...±q 1.x ª©«á ? ¤@¤j°ïÅÜ°Ê: * Linux server-based ªº¬[ºc»P¤å¥ó¤w¥þ³¡­«·s³]­p. ¥Ø«e¬O¥H RedHat Linux 4.1¬°¥D , kernel §ó·s¦¨2.0.30 . §ó²¤Æ¤F Linux ¨t²Îªº³]©w»Pºû Å@. * DOS ©M Windows ªº³]©w¤]­«·s³]­p¹L, ´X¥G´«¦¨ "hard-disk based" . ¦p ¦¹¨Ï±o¬[ºc§ó¥[²¤Æ, ¶}¾÷³t«×ÅܧÖ, ­°§Cºô¸ôªº­t¸ü,¬Æ¦Ü¤¹³\Windows NT workstation ±Ä¥Î server-based setup (ÁöµMÁÙ¥¼¦b¥»¤å¤¤½Í¨ì). * ¥Ø«e§Ú­Ì¥Î¤@¥x DHCP server, ¿í´M DHCP/BOOTP extensions (RFC 2132). * ¦b³o­Ó¬[ºc¤]¥Î¤F Samba §K¶Oªº SMB server , ¨Ó¨ú¥N Novell server. ¨Æ ¹ê¤W, §Ú­Ì¥¿­n¥á±¼§Ú­Ìªº Novell server... 1.2 ...±q 2.4 ª©«á? ·sªº ¶}¾÷ºX¼m ¥\¯à¤w¥[¦b bpunzip ³o­Ó¤u¨ãµ{¦¡. ¥¦²{¦b¥i¥H ¦b VESA-¬Û®e «¬ªºÅãµø¥d¤U¤u§@. ¶}¾÷ºX¼m¥i¥H¥Î ESCÁä; ±q¿Ã¹õ¤¤²¾±¼; ¨ä¥Lªº«öÁä¤w¤£·| ¤zÂZ¨ì TFTP ªº¶Ç¿é. MRZIP,¦³¤@ °¦¯äÂÎ, ¦b¸ÑÀ£ÁY ºÏºÐÀ£ÁY¼v¹³ ®É·|¾É¦Ü "Bad compressed data" ¿ù»~, §Ú­Ì¤wµo²{¨Ã­×¥¿¤F. ¥t¥~¦b BPUNZIP ¤¤µo²{ªº ¨â°¦·|¾É¦Ü¹q¸£·í¾÷ªº¯äÂΤ]³Q­× ¥¿¤F. §ó¥[§¹¾ãªº . ¥[¤J³sµ²¨ì¬ÛÃö³nÅé ( [3]Shared LAN Cache) ¤Î¤å¥ó (from J. Carlstedt, of [4]The Cathedral School of Uppsala, Sweden). ¥[¤J UNZIPREG ­ì©lµ{¦¡½Xªº³sµ²¦ì§}. ³o¨Ç¸ê°T¬O¥Î¨Ó¸òWindows 95 OSR2·f°t ¨Ï¥Îªº. bootptag Linuxª©ªº¤u¨ãµ{¦¡§ï±Ä DHCP ¨ú¥N BOOTP. ²{¦b¥i¥H¸ò Solaris 2.6 DHCP server ¤@°_·f°t¨Ï¥Î. 2. ²¤¶ ³o¸Ì©Ò´y­zªº¬[ºc¬O±q1996 ®L©u¶}©l¦b CUI, University of Geneva©Òµo®iªº. ³o­Ó¸ê°T¨t¦³³\¦hªº¦øªA¾¹(¤j¦h¬O Unix »P Novell), ©M¤@¨Ç­Ó¤H¹q¸£, ¥i¨Ì¥Î ³~¤À¬°¨âÃþ: * ¾Ç¥Í¨Ï¥Î * ¬ã¨s»P»²§U±Ð¾Ç ¥H¤U¬O§Ú­Ìµo®i³oºØ¬[ºcªº¥Ø¼Ð: * ¥ô¦ó¤@¥x¹q¸£³£¥i¥H°õ¦æ Linux, DOS, Windows 3.1 or Windows 95. ¨C¦¸ ¶}¾÷®É¥i¥H¿ï¾Ü©Ò»Ý­nªº§@·~¨t²Î. * ©Ò¦³ªº³nÅé, ¥]§t§@·~¨t²Î, ¥i¥H©ñ¦b¦øªA¾¹¤W, «K©ó¦w¸Ë»P§ó·s. * «È¤áºÝ¹q¸£¥i¥H¤£¹ï¦øªA¾¹§@¼g¤Jªºª¬ºA¤U¥¿±`¤u§@(¬°¤F¦w¥þ©Ê),home ¥Ø ¿ý°£¥~. * ºÉ¥i¯à´î¤Ö«È¤áºÝªº³]©w. «È¤áºÝ¥i¥H¦Û°Ê¥Ñ¦øªA¾¹¨ú±o IP ²ÕºA³]©w, ³o ¨Ç¸ê°T©ñ¦b¤@­Ó¤pÀÉ®×, ¥i¨Ñ¦UºØ§@·~¨t²Î¨Ï¥Î. * ¤j³¡¥÷ªº¹q¸£³£¦U¦Û¾Ö¦³µwºÐ, «È¤áºÝ¥i¥H¾a³oÀuÂI¨Ó­°§Cºô¸ô­t¸ü»P¦s©ñ ¨Ï¥ÎªÌªº¼È¦sÀÉ. * ©Ò¦³ªº¨Ï¥ÎªÌ³£ ¥²¶·µù¥U¤~¯à¨Ï¥Î¹q¸£. * µù¥U¸ê°T¥²¶·©Ò¦³ªº§@·~¨t²Î³£¬Û¦P¥B¨Ï¥ÎªÌ¥i¥H¦s¨ú­Ó¤Hªº¥Ø¿ý,¦Ó¨CºØ§@ ·~¨t²Î³£¤@­P. * ¾Ç¥Í©Ò¨Ï¥Îªº¹q¸£¦b¨C¦¸±Ò°Ê®É¥²¶·²M²z¤@¦¸. ¤]´N¬O¹³­è¦w¸Ë§¹ªº¼Ë¤l. * ¨C¥x¹q¸£¥i¥H¨¾¬r. ³o¨Ç­­¨î¨Ï§Ú­Ì¿ï¥Î¨Ó¦Û [5]Köppen EDV GmbH ªº [6]TCP/IP Bootprom ¦] ¬°³oºØ Bootprom ¸ò§@·~¨t²ÎµLÃö¦Ó¥O§Ú­Ì¬Û·í·P¿³½ì; ¥¦¥u¬O¼ÒÀÀ¥X¤@¥x³nºÐ ¾÷, ¦Ó¥B·í¥H Linux ¶}¾÷®É´N¸ò DOS ©Î Windows 95 ¤@¼Ë²³æ. ¥t¥~,¶}¾÷ºÏºÐ ªº ¼v¹³ÀÉ,¥i¥Ñ¦Û»sªºµ{¦¡¨Ó¨ú¥N, ³o­Ó¥\¯à¨Ï§Ú­Ì¯à¦b§@·~¨t²Î±Ò°Ê«e,¥ý°µ³\ ¦hªì©l³]©w. 2.1 ºô¸ô Geneva ¤j¾Ç¾Ö¦³ B ¯Åºô°ì, ¤À³Î¦¨³\¦h¤lºô¸ô. CUI ¦@¨Ï¥Î¤F¥|­Ó¤lºô¸ô, ¨ä ¤¤¤§¤@¨Ñ¾Ç¥Í¨Ï¥Î. ­ì¥»,§Ú­Ìªº­Ó¤H¹q¸£¨Ï¥Î¨âºØºô¸ôªº³q°T¨ó©w: IPX »P IP. IPX ³o¤@Ãþ,§Ú­Ì¥Ñ ¤@¥x Novell Netware 3 ªº¦øªA¾¹¦@¥Î DOS »P Windowsªº³nÅé. IP ³o¤@Ãþ, §Ú ­Ì¥Ñ¤@¥x SUN ¦øªA¾¹¾a NFS ¦@¥Î Linux ³nÅé¤Î­Ó¤Hªº¤À³Î°Ï. ¦b§Ú­Ì³Ì·sªº¬[ºc¤¤, ¤w¤£¦A¨Ï¥Î IPX ³q°T¨ó©w. §ï¥Ñ¤@¥x Unix ¦øªA¾¹ (¥i¥H ¬O Linux ©Î SUN)¾á¥ô, Linux «È¤áºÝ ¥i³z¹L NFS ¦Ó DOS»PWindows«h¥Ñ SMB (NetBIOS) over TCP/IP ¦@¥Î³nÅé¤Î¨Ï¥ÎªÌªºÀÉ®×. 2.2 ¥¦¬O¦p¦ó¤u§@ 1. «È¤áºÝ­Ó¤H¹q¸£¶}¾÷«á, ¦b TCP/IP Bootprom Àò±o±±¨îÅv¤§«e¥ý°µ¦Û§Ú´ú ¸Õ. 2. Bootprom °e¥X BOOTP/DHCP ­n¨D¦Ó¨ú±o IP ²ÕºA°Ñ¼Æ. 3. ¦pªG¦øªA¾¹¦¬¨ì­Ó¤H¹q¸£©Ò°e¥Xªº­n¨D, ´N·|°e¦^ BOOTP/DHCP ¦^À³,¤º®e¥] ¬A«È¤áºÝªº IP ¦ì§}, ¹w³]³q°T¹h¹D, ¤Î¶}¾÷¼v¹³ÀÉ. §_«h, ¦øªA¾¹·|©¿²¤ ³o­Ó­n¨D. 4. Bootprom ¥Ñ TFTP ³q°T¨ó©w±q¦øªA¾¹¤U¸ü¶}¾÷¼v¹³ÀÉ, ¨Ã¦P®É¥Î³o­Ó¶}¾÷¼v ¹³ÀɵêÀÀ¥X¤@¥x BIOS ¼h¯Åªº³nºÐ¾÷. 5. ­Ó¤H¹q¸£³z¹L³o­Ó¶}¾÷¼v¹³ÀÉ ¶}¾÷, ³o­Ó¶}¾÷ÀÉ¥u¬O³æ¯Âªº¶}¾÷µ{¦¡(¨Ã¤£ ¥]¬A§@·~¨t²Î). 6. ¦pªG³o¥x¹q¸£¬O¾Ç¥Íªº­Ó¤H¹q¸£, ¶}¾÷µ{¦¡¶}©l´N¥Ñ TFTP ³q°T¨ó©w¤U¸ü¤@ ­Ó¤p ªº¤å¦rÀɨ䤺®e¬O±Ô­z³o¥x¹q¸£ªºµwºÐ³W¹ºª¬ºA. ³z¹L³o­Ó¤pÀÉ®×, µw ºÐªº¤À³Î°Ï±N ­«·s³W¹º¥B DOS ©Ò¨Ï¥Îªº¤À³Î°Ï¤]³Q§Ö³t®æ¦¡¤Æ. ·í©Ò¦³ªº ¤u§@§¹¦¨, ³o¨Ç¤u§@±N¦b¶}¾÷«á¤T¬í¤º§¹¦¨. 7. ¶}¾÷µ{¦¡±µµÛÅý¨Ï¥ÎªÌ¿ï¾Ü©Ò»Ýªº§@·~¨t²Î. 8. ¨Ì·Ó¨Ï¥ÎªÌªº¿ï¾Ü, ·sªº¶}¾÷¼v¹³ÀɱN±q¦øªA¾¹³z¹L TFTP ³q°T¨ó©w¤U¸ü. 9. ¦pªG¿ï¾Ü¨Ï¥Î Linux, ¶}¾÷¼v¹³ÀɱN¥]§t kernel loader ¤ÎÀ£ÁY¹Lªº kernel, ¦¹ kernel ±N¤ä´© NFS root ¤Îcaching ÀÉ®× ¨t²Î: 1. ²Ä¤@ÂI, IP ²ÕºA¬O³z¹L BOOTP/DHCP ³q°T¨ó©w¥Ñ Novell ¦øªA¾¹©Ò±µ ¦¬. 2. ³o­Ó kernel ¥i¥H³z¹L NFS ±¾¤W¤@­Ó¥u¯àŪªº root filesystem. 3. ±¾¤W¤@¶ô¦³¼g¤J¥\¯àªº¤p«¬ ramdisk . 4. ¦pªG¦bµwºÐ¤ºµo²{ swap ¤À³Î°Ï, «h¬°¥¦°µ¦n·Ç³Æ¨Ã±Ò°Ê¥¦. 5. ¦pªG¦bµwºÐ¤ºµo²{ linux ¤À³Î°Ï, ±¾¤W¥¦¨Ã¬°¥¦°µ¦n caching NFS ¤À ³Î°Ï. 6. IP ²ÕºA¤@§¹¦¨, ±Ò°Ê©Ò¦³ªºªA°È, ¤]±Ò°Ê xdm. 7. ­n¨D¨Ï¥ÎªÌµn¤J. ³o¥x¤u§@¯¸´NÄò. 10. ¦pªG¿ï¾Ü¨Ï¥Î DOS ©Î Windows, ¶}¾÷¼v¹³ÀɱN¬O¤@­Ó¥i¥H³B²z FAT16 ¤À³Î °ÏÀ£ÁY¼v¹³ªºµ{¦¡. ³z¹L TFTP ¤U¸ü ¶}¾÷¼v¹³ÀÉ, ¨Ã¥BÀx¦s¦bµwºÐ¤¤¥H¨Ñ¥¼ ¨Ó¨Ï¥Î, ¥]§t¥ô¦ó¨Ï¥Î¹Lªº¤À³Î°Ï. §óÄYºòªº»¡ªk¬O, ³o­Óµ{¦¡¥i¥H¦b¥H¤U ªºª¬ªp¤¤°õ¦æ: 1. ³o­Óµ{¦¡¤U¸ü¤@­ÓÀˬdÀÉ (512 bytes)¥H½T»{©Ò¿ï§@·~¨t²Îªº¶}¾÷¼v¹³ ÀÉ 2. ¦pªG©Ò»Ýªº¼v¹³Àɨ䣦s¦bºÏºÐ¤¤, ©ÎªÌ»PÀˬdÀɤ£§k¦X (¥i¯à¬O¥Ñ©ó ¶}¾÷¼v¹³Àɤw³QÅܧó©ÎªÌ¤@­Ó·s ªºª©¥»³Q¦w¸Ë¨ì¦øªA¾¹¤W), ¾ã­Ó¼v¬Û ¹³ÀɱN³z¹L TFTP ³q°T¨ó©w¨Ó¶Ç¿é. 3. §@·~¨t²Îªº¼v¹³ÀɸÑÀ£ÁY¨ì²Ä¤@­Ó FAT16ªº¤À³Î°Ï, ¶Ç¿é³t«×¤j¬ù¬O¥H ¨C¬í¤@ mega bytes. 4. µ{¦¡±µµÛ¸õ¨ì©Ò¿ïªº§@·~¨t²Îªº¶}¾÷ºÏ°Ï, ¦Ó¥¦²{¦b¤w¦s¦b¥»¾÷ªºµwºÐ ¤¤. ¹ï DOS »P Windows 3.1 ¦Ó¨¥, §Ú­Ì¨Ï¥Î§K¶Oªº Microsoft LanManager for DOS (½Ð³z¹Lºô¸ô§ä¨ì¸û±µªñ±zªº mirror ¯¸; ¥¦¬O¥Ñ¤T­ÓÀɮשҲզ¨ disk1 to disk4) ·í¦¨ SMB «È¤áºÝ. Microsoft LanManager ¥iÂÇ DHCP ¦Ó ¤ä´©°ÊºA³]©w. ¦bµn¤J«á, ¨Ï¥ÎªÌ·|¬Ý¨ì DOS, ¨Ã¥B¥i¥H¥´ win ±Ò°Ê Windows 3.1 . ½Ðª`·N³oÂI, DOS »P Windows 3.1 ´N¦p¦P¦w¸Ë¦b«È¤áºÝ¤@ ¯ë. ¹ï Windows 95 ¦Ó¨¥, §Ú­Ì¤]¨Ï¥Î Microsoft SMB «È¤áºÝ (¥s Client for the Microsoft Network), ¥¦¤]¥iÂÇ DHCP ¦Ó¤ä´©°ÊºA³]©w. §Ú­Ì¬°­° §Cºô¸ô­t¸ü¨Ï¥Î¤F [7]Shared LAN Cache, ¤@­Ó±j¦Ó¦³¤Oªº network-to-disk cache µ{¦¡. ¾Ç¥Í©Ò¨Ï¥Îªº¹q¸£¥i¥H«Ü¼É¤Oªºª½±µÃö±¼¹q·½¦Ó¤£·|¦³¥ô¦ó°ÝÃD, ¦]¬°µwºÐªº¸ê ®Æ¦b¨C¦¸¶}¾÷³£·|­«·s«Ø¥ß. ¹ï©ó¤ñ¸û "¦w¥þªº" ¹q¸£ (¦p»²§U±Ð¾Çªº¹q¸£), ©Î³\¦³®É·|¨Ï¥Î¤W­zªº¤èªk¨Ó¶} ¾÷, ¦³®É«hª½±µ¸ü¤JµwºÐ¤ºªº¶}¾÷¼v¹³ÀɦӤ£¦A²M²zµwºÐ. ³o¼Ë¥i¥H¤¹³\¨Ï¥ÎªÌ «O¯d¸ê®Æ¦bµwºÐ¤¤. ¦Ó·í²ÕºA­×¥¿«á¤S¥i¥H§¹¾ãªº§ó·s¶}¾÷¼v¹³ÀÉ ´N¦p¦P­«·s¦w ¸Ë¤@¯ë. 2.3 ¬ÛÃö«D°Ó·~ ³oºØ²ÕºA¤w¸g¦¨¥\ªº²¾´Þ¨ì¥@¬É¤Wªº³\¦h¦a¤è. ¤Ö¼Æ¤H¤w¸g¶}©l½f¼g¤@¨Ç§Þ¥©¸ò ´£¥Ü¨Ó§¹¦¨³o¥÷ How-To. ¦pªG±z ¤]´¿°µ¹L¦ý¦b¥»¤å¥ó¤¤¥¼³Æ¤Þ¥ÎÅwªï°e¤@¥÷ e-mail µ¹ Marc.VuilleumierStuckelberg@cui.unige.ch. ¦pªG±z¦b­««Ø³oºØ²Õ ºA¤¤ ¹J¨ì°ÝÃD, ½Ð¦b¸Ô²Ó¬Ý¤@¦¸¤å¥ó ! * [8]http://www.katedral.se/system/elevsyst, by Johan Carlstedt of The Cathedral School of Uppsala, Sweden. * [9]http://vitoria.upf.tche.br/~fred/, in portuguese, by Frederico Goldschmidt of the Passo Fundo University, Brasil. 3. ¦p¦ó³]©w ­º¥ý, ½Õ¾ã¾÷¾¹¦ì¸m¨Ï¤âÃ䦳¤U¦C¨â¥x¾÷¾¹: * ¦øªA¾¹, §Ú­Ì¬O¥Î¤@¥x Unix ¥D¾÷. * «È¤áºÝ, ¤@¥x¤w¸g±Ò°Ê TCP/IP Bootprom ªº­Ó¤H¹q¸£, µwºÐ¤º¤£­n¦³­«­n¸ê ®Æ. ¦pªG§A·Q­n´ú¸Õ±zªº²ÕºA³]©w¦Ó±zÁÙ¨S®³¨ì TCP/IP Bootprom, ±z¥i¥H¨ì [10]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: * ³]©wªì©l¤ÆµwºÐªº²ÕºA¤Î²M²z * ³]©w§@·~¨t²Î¿ï³æ * ´ú¸Õ¶}¾÷¬yµ{ µM«á, ¹ï¨C¤@ºØ§@·~¨t²Î, §Ú­Ì±N§¹¦¨¤U¦C¨BÆJ: * «Ø¥ß³æ¿Wªº«È¤áºÝ * §â¥¦ªº²ÕºA©ñ¨ì¦øªA¾¹¤W * ´ú¸Õ»·ºÝ¶}¾÷«È¤áºÝ * ¥Ñ¥»´L²£¥Í¤À¨­ §¹¦¨³o¨Ç¨Æ, ¥H«á§A©Ò°l¥[ªº«È¤áºÝ¥u­n´¡¤W Bootprom ¦A¥[´X¦æ¨ì DHCP ³]©w ÀÉ. 3.1 ³]©w¶}¾÷¬yµ{ ¦b¦øªA¾¹ºÝªº /tftpboot ¥Ø¿ý¤U, ©ñ¤U¦Cªº¶}¾÷¼v¹³ÀÉ (³o¨Ç¬O¤G¶i¦ì®æ¦¡) * [11]bpclean, µwºÐ²M²z¤u¨ã * bpmenu, TCP/IP Bootprom ¿ï³æµ{¦¡ (¥]§t¦b±zªº Bootprom ¤u¨ãºÏ¤ù) * [12]bpunzip, §Ú­ÌªºµwºÐÁÙ­ì¤u¨ã * [13]bphdboot, ¶Ç°e¶}¾÷µ{§Ç¨ìµwºÐªº¼v¹³ÀÉ µwºÐªºªì©l¤Æ»P²M²z ¦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ºÐ¤À³Î°Ï, ¤Î±z­nÁ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¥u­nª¾¹D³o¨Ç * ¤À³Î°Ï«¬ºA 6 ¬O«ü BIGDOS, ie. ¦p. DOS Fat-16 ¥Ñ 32Mb ¨ì 500Mb * ¤À³Î°Ï«¬ºA hex 82 ¬O Linux Swap * ¤À³Î°Ï«¬ºA hex 83 ¬O Linux Ext2fs * ¤j¤p¦p¬°­t­È,«hªí¥Ü§Ú­Ìªº²Ä¤T­Ó¤À³Î°Ï¦Ü¤Ö­n¥e¾Ú 50 Mb * ¤À³Î°Ï«¬ºA 0 ªí¥Ü¬O ªÅªº (¥¼¨Ï¥Îªº) ¤À³Î°Ï. ²{¦b, bpclean ¦b¤£²M°£¤À³Î°Ï¸ê®Æ¤º®e¤U,±N­«·s¼g¤J¥D­n¶}¾÷­p¿ý(master boot record), ·íµM¤]¥]¬A¤À³Îªí. §@·~¨t²Î¿ï³æ ¦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¿è¾¹ [14]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²Î·|§ó°Ê¥D­n¶}¾÷­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§Ñ¤F­n¨Ï±zªº§ïÅܥͮÄ,±z¥²»Ý­«·s±Ò °Ê DHCP ¦øªA¾¹. 3.2 ³]©w Linux ¦b±zªº«È¤áºÝ¬[³] [15]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¾¹©Úµ´ BOOTP­n¨D). ²£¥Í Kernel ­º¥ý, ¨ì±zªº /usr/src ¥Ø¿ý¨Ã¥[¤J¤U¦C­×¥¿ÀÉ, ¨Ï¥Î³o­Ó«ü¥O patch -p0 < ­×¥¿Àɪº¦WºÙ: * [16]patch-2.0.28: ³o¬O¤@­Ó¥¿¦¡ªº kernel §ó·s, ±z¤@©w­n¥[¤J³o­Ó­×¥¿ ÀÉ * [17]patch-config-sound: ¤@­Ó¬ü¤Æ­µ®Ä³]©wªº­×¥¿ÀÉ, ¨Ó¦Û Unifix Linux 2.0 * [18]patch-PCSP: ¤@­Ó¸û¤jªº­×¥¿ÀÉ¥Î¨Ó¨Ï PC ªº´­Án¾¹¼ÒÀÀ­µ®Ä¥d, ¨Ó¦Û Unifix Linux 2.0 * [19]patch-bootprom: ¤@­Ó¤pªº­×¥¿ÀɥΨӲ£¥Í¯S§Oªº kernel image, ¨Ï¥¦ ¥i¥Ñ TCP/IP Bootprom ¶}¾÷ * [20]patch-filecache: ¤@­Ó¤pªº­×¥¿ÀÉ¨Ï kernel ¥[¤J¤@¨Ç¯S§O¥\¯à, ¦p Unifix filecache. ¨Ó¦Û Unifix Linux 2.0 * [21]patch-penguinlogo: ¤@­Ó¤pªº­×¥¿ÀÉÀ°§U±zªº¨Ï¥ÎªÌµ¥¨ì Linux ¨t²Î §¹¥þ¸ü¤J * [22]patch-2.0.29: ¥t¤@­Ó¤pªº¥¿¦¡ªº kernel §ó·sÀÉ, ¦pªG±z¤£»Ý­n³Ì·s ª©ªº kernel «h¤£¥Î¥[¤J¥¦ * [23]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, ¥u­n¦^µª±z­n¸õ¹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ºô¸ô¼Ò²Õ. ¦]¬°ºô¸ô¥\¯à¤@©w­n©ñ ¦b kernel ¤¤. ²¦Ó¨¥¤§, ±zªº kernel ¦Ü¤Ö»Ý­n ¥H¤U³o¨Ç * ¤ä´©ºô¸ô * ¦b¦³ BOOTP ³q°T¨ó©w¤U,¤ä´© NFS-Root * ¤ä´© filecache * ¤ä´©«È¤áºÝ¹q¸£ªºµwÅé©Ò»Ýªº¼Ò²Õ ±z¥i¥H¨Ï¥Î§Ú­Ìªº [24].config ·í°µ°_ÂI. ¦pªG±z·Q­n¦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 ¨Ï¥Î. §â Root Àɮרt²Î²¾¨ì NFS ±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¥u­n­«·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¬Ý¬Ý [25]NFS-Root-Mini-Howto. ±z¥i¥H¦A¸Õ¤@¦¸,³o¦¸¥u¥Î append="root=/dev/nfs" ¥H½T©w Linux kernel ¥i¥H ³z¹L DHCP/BOOTP­n¨D¦ÓÀò±o±z©Ò³]©wªº IP °Ñ¼Æ. ¦pªG ­n³o¼Ë°µ, ±z¥²¶·¦b±z ªº DHCP ³]©wÀɤ¤¥[¤J¥H¤U ³o¨Ç¿ï¶µ (·íµM¬O­n³]©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¤@¨B­n¨Ï§Ú­Ìªº¨t²Î¦b °ßŪªº NFS Àɮרt²Î¤U¥i¥H¤u§@. ²£¥Í°ßŪªº NFS Root Àɮרt²Î ¬JµM§Ú­Ì­n§Ú­Ìªº root Àɮרt²Î¦b¤j³¡¥÷ªº Linux «È¤áºÝ¥H°ßŪªº¤è¦¡±¾¤W, ¨º´N­n¨ÏÀÉ ®×¨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µ²: * bin -> cache/bin * dev -> ramdisk/dev * etc -> ramdisk/etc * lib -> cache/lib * root -> ramdisk/root * sbin -> cache/sbin * tmp -> ramdisk/tmp * usr -> cache/usr * var -> ramdisk/var * cache/ + bin -> /runtime/bin + lib -> /runtime/lib + sbin -> /runtime/sbin + usr -> /runtime/usr * mnt/ + cdrom/ + floppy/ + tmp/ * proc/ * ramdisk/ + dev -> /runtime/dev + etc -> /runtime/etc + root -> /runtime/root + tmp -> /runtime/tmp + var -> /runtime/var ´N¦p±z©Ò¨£ªº, ¥¦¬Ý°_¨Ó¹³¥¿±`ªº root filesystem, °£¤F¤Ö³¡¥÷´X­Ó¬O­«·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¾¹: * [26]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 ______________________________________________________________ * [27]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¤å ¥óªºª©¥»§ä¨ì ¥¦; * [28]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 ______________________________________________________________ * [29]runtime/etc/filecache.conf, Àɮק֨úªº³]©wÀÉ ______________________________________________________________ Max 100 MB 50 % # Cache /runtime /cache ______________________________________________________________ «e¨â­ÓÀÉ®×À³¸Ó©ñ¦b«e¨â­ÓÀÉ®×À³¸Ó©ñ¦b [30]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§O­nª`·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­ÓÀÉ®× [31]runtime/etc/fstab.ref ©M [32]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. §â [33]filecache ¦w¸Ë¦b runtime/bin ¥Ø¿ý¤U, ¨Ã§â¥¦ªº¨Ï¥Î»¡©ú [34]man page ¦w¸Ë¦b runtime/usr/man/man8 ¥Ø¿ý¤U. §â [35]bootptag ©Î [36]dhcptag ¦w¸Ë ¦b runtime/usr/local/bin ¥Ø¿ý¤U, ¨Ã¥B [37]bootptag.c (©Î [38]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¸Ë [39]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! ¥Ñ Bootprom ¶}¾÷ ¦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. ¨t²ÎºûÅ@»P§ó·s ¦pªG±z¥H«á·Q§ó·s³nÅé,¦w¸Ë¤@¨Ç¿ù»~­×¥¿ÀɩΦw¥þ©Ê­×¥¿ÀÉ, ½Ð«ö·Ó¤U¦C¨BÆJ: * Unexport rootfs ¥Ø¿ý * Export runtime ¥Ø¿ý¬°¥iŪ¥i¼gµ¹±z±o«È¤áºÝ * ³]©w±z«È¤áºÝªº nfsroot ¥Ø¿ý¬° runtime (¦b /etc/bootptab ¤¤³]©w) * ±Ò°Ê±z±o Linux «È¤áºÝ, ¨Ã¦w¸Ë±z·Q¦w¸ËªºªFªF. ¤£­n©È¨Ï¥Î rpm, ¥¦¥i¥H °µ±o«Ü¦n (¥u­n¤p¤ß·í ±z¦w¸Ë¥ô¦ó³nÅé®M¥ó®É,­nª`·N¤@¨Ç±z°µ¹Lªº­×¥¿¥i ¯à¦³¨Ç­n§@­×§ï). * ·í±z§¹¦¨«á­«·s´«¦¨¥¿±`ªº export ³o¬O«ü, ±z¥²¶·¦b local ¦w¸Ëªºª¬ºA¤U, ¤~¯à§ó·s±zªº server-based ³]©wªº³n Åé. 3.3 ³]©w DOS 6 ¤Î Windows 3.1 ¦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ºÙ, §â§Ú­Ìªº [40]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²¾¨ì¦øªA¾¹ ¦^¨ì¦øª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¨ã: * [41]mrzip.exe, ¤@­Ó¥Î¨ÓÀ£ÁY±z«È¤áºÝµwºÐ¼v¹³Àɪºµ{¦¡. * [42]mrunzip.exe, ¤@­Ó¥Î¨Ó¦^¦s±zµwºÐ¼v¹³Àɨì¦øªA¾¹ªºµ{¦¡. ±z¤]»Ý­n§â¤@¨Ç¥Î¨Ó²M²zµwºÐ¤Î²£¥ÍÀ£ÁY¼v¹³ªº§å¦¸ÀÉ©ñ¨ì¬Û¦Pªº¥Ø¿ý¤U,³o¨Ç§å ¦¸Àɦp¤U: ______________________________________________________________ @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°õ¦æ (¤£¤@©w­n¥Îµ´¹ï¸ô ®| ) ______________________________________________________________ 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§A­nªº, ±zªº»·ºÝ¶}¾÷«È ¤áºÝ§¹¦¨°Õ ! ¤U¤@¦¸±z­«·s¶}¾÷, ¥¦¥u·|¸ÑÀ£©Ò³o­Ó¼v¹³ÀÉ, ¤j·§¦b 30 ¬í¤º§¹¦¨. Âà´«³]©wÀɵ¹¨ä¥L¾÷¾¹ ¦pªG±z­n¬°¨C¥x¾÷¾¹­×¥¿¤@¨Ç³]©w (¨Ò¦p¹w³]¦Lªí¾÷), ©ÎªÌ¦pªG±z»Ý­nÅܧó¤@¨Ç ¤£¯à³z ¹L DHCP ³q°T¨ó©w­×§ïªººô¸ô³]©w, ±z¥i¥H¨Ï¥Î [43]unzipreg.exe µ{¦¡ ¨Ó³B²z, ¥¦¥²¶·©ñ¨ì«È¤áºÝªº autoexec.bat (­ì©lµ{¦¡½X¦b [44]³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µ{¦¡ [45]simple program ¥Î¨Ó¼W¥[ PROGMAN.INI ÀÉ®×, ¤¹³\¬°¤@ ¸s¨Ï¥ÎªÌ³]©w¦P¼Ëªº®à­±. ¦b¬°¥ô¦ó¤@¥x«È¤áºÝ¾÷¾¹³]©w«á, §O§Ñ¤F¨Ï¥Î mrzip ­«·s«Ø¥ßºÏºÐ¼v¹³ÀÉ¥Hºû«ù ±zªº©Ò¦³Åܧó. 3.4 ³]©w Windows 95 ¦b¦¹¥÷¤å¥ó¥ý«eªºª©¥», §Ú­Ì¨Ï¥Î¹L·L³n¤½¥qªº Windows 95 server-based installation, ¦ý¬O¥Î³o¤èªk¤Ó ¹Lµh­W¤S¤£¬O¨º»òªº¦³»ù­È: * ¥¦´N¯uªº¬O«D±`ªºµêÀÀ * ¤j³¡¥÷ªº³nÅé®M¥ó³£¤£¤ä´©¥¦¦Ó¥B¦pªG±z¸ÕµÛ¥h¦w¸Ëµ²ªG³q±`¬O¥¢±Ñªº. ¥] ¬A, Microsoft Internet Explorer, OnNet 32, Novell's Protected-mode client (³o¸û Microsoft Client for Netware¦w¥þ). * ¦]¬°·L³n¤½¥q¤£´£¨Ñ Windows 95 ¦b¯u¹ê¼Ò¦¡¤Uªº TCP/IP ¬Û®eªºÅX°Êµ{¦¡ ©Ò¥H±zµLªk¨Ï¥Î Microsoft Network client over TCP/IP ³o¤]´N·N¨ýµÛ±z ¤£¯à¨Ï¥Î Samba * ¦]¬°·í«È¤áºÝ¤@±Ò°Ê´N·|Âê¦í¤@¨Ç°ÊºA³sµ²Àɳy¦¨³\¦hµ{¦¡´X¥GµLªk§ó·s, ¦pªG±z¸ÕµÛ¥h§ó·s ¥¦«h·|¥X²{¹H­I¤À¨É(sharing violations)ªº¿ù»~. ¦]¦¹´X­Ó¤ë«e§Ú­Ì©ñ±ó³o¥÷¿ù»~¦Ê¥Xªº¸ê®Æ (±z¤´µM¥i¦b³o§ä¨ì [46]http://cuiwww.unige.ch/info/pc/remote-boot/win95old/win95old.html) µM«á´«¨ì§Ú­Ì³o­Ó·sªº disk-based »·ºÝ ±Ò°Êªº·§©À. °ò¥»¤W, ³oºØ Windows 95 ¦w¸Ë¤èªk´N¸ò¦w¸Ë DOS¤@¼Ë®e©ö. «Ø¥ß¤@¥x¿W¥ßªº«È¤áºÝ ¦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, ¨º»ò­º¥ý±z­n ²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©Î³\¤]·Q­n¨Ï¥Î BootPROM ©Ò¥e±¼ªº°O¾ÐÅé, ¥u­n¦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±z­n¨Ï¥Î Windows 95 OSR2 (©Î¥s MSWIN 4.1, ©ÎªÌ Windows 95 service pack 1, ©ÎªÌ Windows 95 with Internet Explorer), ±z­n¦b MSDOS.SYS ¤¤ªº [Options] ¬q¥[¤@¦æ (¨S¿ù¥¦¬O¤å¦rÀÉ): ______________________________________________________________ AUTOSCAN=0 ______________________________________________________________ ³o¼Ë¥i¥H¨Ï Windows ª¾¹D±z¶}¾÷®É¤£¦Û°Ê±Ò°Ê ScanDisk . ·í©Ò¦³ªº³nÅé³£©ñ¦b¦øªA¾¹®É, ¦pªG±z­n´î»´ºô¸ô¤Î¦øªA¾¹ªº­t¾á (³o±N¼W¶i±z ªº¨t²Î®Ä²v) , ±z¥i ¥H¦Ò¼{¦w¸Ë³o®M¬Û·í¤£¿ùªº Shared LAN Cache,¥Ñ Measurement Techniques, Inc ¥Í²£ªº (°Ñ¦Ò [47]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ªºµû¦ôª©. §â³]©wÀɲ¾¨ì¦øªA¾¹ ¦øªA¾¹ºÝ, ¦pªG±z¥Ø«eÁÙ¨S¦³«Ø¤@­Ó¦W¬° admin ªº¥Ø¿ý, ¨º´N«Ø¤@­Ó. ³o±N©ñ¤@ ¨Ç¨t²ÎºÞ²z­n¥Îªºª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: * [48]mrzip.exe, ¤@­Ó¥Î¨Ó²£¥Í±z«È¤áºÝµwºÐ¾÷À£ÁY¼v¹³ªºµ{¦¡. * [49]mrunzip.exe, ¤@­Ó¥Î¨Ó§âÀ£ÁY¼v¹³Àɱq¦øªA¾¹¦^¦s¨ì±z«È¤áºÝµwºÐªºµ{ ¦¡. ¦b±zªº«È¤áºÝ¶}­Ó MS-DOS µøµ¡, ¥i¥H§â±zªº admin ¥Îºô¸ôºÏºÐ¾÷±¾¦b L: ¨Ã°õ ¦æ¤U¦Cªº«ü¥O (¤£¤@ ©w­n¨Ï¥Îµ´¹ï¸ô®|, ¦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¥¿ªº¥Ø¿ý, ¥u­n«Ø­Ó¦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 ¬í. Âà´«¬°¨ä¥¦¤À¨­ªº³]©w 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: * ³o¨Ç³]³Æ¥i¯à¨Ï¥Î¤£¦PªºµwÅé¸ê·½ (¤ñ¦p, ·Æ¹«¤£¬O±µ¦b¬Û¦Pªº³s±µ°ð, ­µ ®Ä¥d¤£¬O±µ¦b¦P¼Ëªº ÂX¥R¼Ñ - ¨S¿ù, ³o·|³Q°»´ú¨ì) * ³o¨Ç³]³Æ¥i¯à³qª¾ Windows 95 ¥¦­Ìªº§Ç¸¹ (¤ñ¦p, ¨C¥x¶] Windows 95 ªº ºô¸ô¥d, ±q³Ì°ò¦ªº¤A ¤Óºô¸ô¦ì§}´N¨C¥x³£¤£¤@¼Ë¤F) ¨Æ¹ê¤W , ¦pªG Windows 95 ªº§Y´¡§Y¥Î¥\¯à¥i¥H¥¿±`¤u§@ªº¸Ü, ¦Û°Ê°»´úÅÜ§óªº µwÅé³]³Æ¨Ã¤£·|¥X°Ý ÃD, ©Ò¥H¦pªG§Y´¡§Y¥Î¥\¯à¥¢®Ä®É, °ÝÃD´N¨Ó¤F. ¨Ò¦p, Windows 95 ¹ï¤W§Ú­ÌªºÃ¹§Þ PS2 ·Æ¹«®É´N¤£ ¯à§Y´¡§Y¥Î, §óÁVªº¬O·Æ¹«´N®ø¥¢ ¤F. ­n¸Ñ¨M³oÃþ°ÝÃD¤èªk´N¬O, ºÉ¥i¯à¨Ï¥þ³¡¹q¸£¦³¬Û¦Pªº³]³Æ. ±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°µ¤@¨Ç²³æªº­×¥¿. [50]unzipreg.exe ¬O¤@­Ó¦Û»sªº¤pµ{¦¡, ±z¥i¥H©ñ¦b ±zªº¸ô®|¤Uªº¥ô¦ó¦a¤è (­ì©lµ{¦¡¦Ü¦b [51]³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¬° [52]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 ¬Ý¬Ý [53]http://cuiwww.unige.ch/info/pc. 4. TCP/IP Bootprom ¬ÛÃö¤u¨ãµ{¦¡ ³o¤@¬q±N§â§Ú­Ì¬° TCP/IP BootPROM ©Ò¼gªºµ{¦¡§@¤@¨Ç»¡©ú. 4.1 MENUEDIT ³o¬O¦b DOS ¤U°õ¦æªºµ{¦¡, ¥Î¨Ó½s¿èµ¹ TCP/IP Bootprom ªº¶}¾÷¿ï³æ±Ô­zÀÉ. ¥¦«Ü²³æ, ¤£¹L¤ñ­ì¼t ©Ò´£¨Ñªº¶}¾÷¿ï³æ±Ô­zÀɨӪº¤è«K. ±z¥i¥H«ö F1 ¬Ý¨ì¤@ ¨Ç½u¤W»¡©ú. ¦pªG±z·Q­n¥[±j¥Lªº¥\¯à ( ¤ñ ¦p¥[¤J°Å¶K¥\¯à), §Ú·|«Ü¼Ö·Nµoªí ±zªº·sª©¥». ­ì©lµ{¦¡¬° Pascal »yªk¥i¦b [54]³o¨ú±o. 4.2 BPHDBOOT ¦¹ boot image ±N¸ü¤JµwºÐªº master boot record ¨Ã°õ¦æ¥¦. ³o­Ó boot image ¹ï©ó¨º¨Ç»Ý­n­«·s¶}¾÷¤~¯à§¹¦¨©Ò¦³³]©wªº§@·~¨t²Î¬O¬Û·í¤è «Kªº. ¥¦¤]¥i¥H¥Î¦b ·í±z­n±j­¢²M²zµwºÐªº®É­Ô. ­ì©lµ{¦¡¬° Assembler »yªk¥i¦b [55]³o¨ú±o. 4.3 BPCLEAN ¦¹ boot image ±N­«·s¼g¤JµwºÐªº master boot record, ¥]§tµwºÐªº¤À³Îªí. ¦¹ ¥~, ¥¦¥i¥H§Ö³t®æ¦¡¤Æ DOS (FAT16) ¸ê®Æ¤À³Î°Ï (¦ýµLªk¨Ï¥¦¥i¶}¾÷). ¦]¬°ª© ÅvªºÃö«Y, §Ú­Ì¥²¶·­«·s³W¹º§Ú­Ìªº master boot record »P FAT16 ¶}¾÷ºÏ°Ï, °£¤F¤@¨Ç»·ºÝ¶}¾÷ªº°T®§¥~, ¥¦­Ì»P¼Ð·Çªº¤À³Î°Ï¤j­P¤W¬O¤@¼Ëªº. ¬°¤F ¨Ï³o­Ó µ{¦¡¯à¤u§@, ±z©Î³\»Ý­nÃö±¼ BIOS ¹ï master boot record ªº«OÅ@ (¦]¬°¨C¦¸ ¶}¾÷³£§ó·s¤@¹M). ³o­Óµ{¦¡¤U¸ü»P³o­Óµ{¦¡¦P¼Ë¥DÀɦWªº¤À³Îªí±Ô­zÀɨä°ÆÀɦW¬° .tab. ³o­ÓÀÉ®× ¥i¥H¥]§tªÅ¦æ, µù¸Ñ ¥Ñ°O¸¹¶}©l¦ý¤£±o¶W¹L 512 ­Ó¦r¤¸. «e¥|­Ó¤£§tªÅ¥Õ¤Îµù¸Ñªº´X¦æÀ³¸Ó¥]§t¥|­ÓµwºÐ¤À³Î°Ïªº±Ô­z. ²Ä¤­­Ó¤£§tªÅ¥Õ ¤Îµù¸Ñªº¨º¤@¦æÀ³ ¥]§t¤U¤@­Ó­n¸ü¤Jªº¶}¾÷¼v¹³ÀɦWºÙ. ¤À³Î°Ïªº±Ô­z¦æ¥Ñ¥ÑªÅ®æ©Î tab Áä¨Ó¤À³Î, ¥²¶·¦p¤U³o¤TºØ®æ¦¡: ______________________________________________________________ type boot? 1st-cyl 1st-head 1st-sect last-cyl last-head last-sect type boot? 1st-cyl 1st-head 1st-sect relative-size type boot? relative-size ______________________________________________________________ * ²Ä¤@ºØ®æ¦¡, µ¹¤©ºë½Tªº¤À³Î°Ï±Ô­z. * ²Ä¤GºØ®æ¦¡, ²Ä¤@­Ó sector ¦ì¸m¦³©w¸q¦ý¤À³Î°Ïªºµ²§ô¦ì¸m¬O¨Ì­n¨Dªº¤À ³Î°Ï¤j¤p¦Û°Ê­pºâ. * ²Ä¤TºØ®æ¦¡, ²Ä¤@­Ó sector ¨Ì·Ó«e¤@­Ó¤À³Î°Ïªºµ²§ô¦ì¸m¦Û°Ê±Àºâ¥B¤À³Î °Ïªºµ²§ô¦ì¸m¬O¾a ©Ò­n¨Dªº¤À³Î°Ï¤j¤p¦Û°Ê­pºâ. ³oºØ®æ¦¡¬O§¹¥þ¨M©w©óµw ºÐªº¤j¤p. ©Ò¦³ªº¼Æ¦r³£°²³]¤Q¶i¨î, °£«D¦r­º¦³¥X²{¿ú¦r¸¹, ³o¼Ë¤~·|³Q³]©w¬°¤Q¤»¶i ¨î. * ¤À³Î°Ïªº type DOS ¤À³Î°Ï¤p©ó 32 Mb ¬° 4, DOS ¤À³Î°Ï¦b 32Mb ¨ì 500Mb ¤§¶¡¬° 6 . ¨ä¥Lªº­È ¥i¥H¦b¨Ï¥Î Linux fdisk help §ä¨ì¨Ò¤l. * ¦pªG¥i¶}¾÷¤À³Î°Ï boot? ³o¤@¬qÀ³¸Ó³]©w¦¨ Y ¦Ó¨ä¥¦¤À³Î°Ï³]©w¦¨ N . ³o ­ÓºX¼Ð¬Oµ¹¥D­n¶}¾÷¬ö¿ý (master boot record) ©Ò¨Ï¥Î. * 1st-cyl, 1st-head ¤Î 1st-sect ¬OÃö«YµÛ³o­Ó¤À³Î°Ïªº²Ä¤@­ÓºÏ°Ï. ¤d¸U §O§Ñ°O,ºÏ¬W¤ÎºÏÀY¬O±q 0 ¶}©l, ¦ÓºÏ°Ï¬O±q 1 ¶}©l. * last-cyl, last-head ¤Î last-sect ¬OÃö«YµÛ ³o­Ó¤À³Î°Ïªº³Ì«á¤@­ÓºÏ °Ï. ¤À³Î°Ï³q±`µ²§ô¦bºÏ¬WªºÃä¬É. * ¤À³Î°Ï©Ò¥eªº ¤j¤p¤ñ¨Ò ¥i¥H¤U¦Cªº¤èªkªí¥Ü: + + 10 Mb ¬O«ü¤À³Î°Ï¦Ü¤Ö­n¦³ 10 Mb (§Y 2048 ºÏ°Ï); + - 100 Mb ¬O«ü¤À³Î°Ï¥²¶·¹w¯d¦Ü¤Ö 100 Mb (§Y 20480 ºÏ°Ï) ¥i¥Îªº ªÅ¶¡µ¹¤U¤@­Ó¤À³Î°Ï; + + 30 % ¬O«ü¤À³Î°Ï¥²¶·¦b¥Ø«eªº¦ì¸m, ¥e¦í¦Ü¤Ö 30 perceny ªºªÅ ¶¡; + - 70 % ¬O«ü¤À³Î°ÏÀ³¯d¤U¦Ü¤Ö 70 percent ªºªÅ¶¡¦b¥Ø«eªº¦ì¸mµ¹¤U ¤@­Ó¤À³Î°Ï. ¥H¤j¤p¤ñ¨Ò©w¸q¤À³Î°Ï®É³q±`·|¦bºÏ¬WªºÃä¬Éµ²§ô, ¨Ã¥B°£«D²Ä¤@­Ó¤ÀºÏ°Ï ªº¦ì¸m¬O¥¿½Tªº, ¤~·|±qºÏÀYªºÃä¬É³B¶}©l. ¥H§Ú­Ì©Òª¾, ³o¬O¬°¤F²Å¦X¼Ð ·Çªº¨Ï¥Î. ·í¤@­Ó¼ÐÅÒªþ¥[¦b¤@­Ó¤À³Î°Ï±Ô­z¥y¤§«á, ¬Û¹ïÀ³ªº¤À³Î°Ï·|³Q®æ¦¡¤Æ¦¨ DOS FAT16 ªº¤À³Î°Ï,µL ½×­ì¥»¬O­þºØ®æ¦¡. ¤À³Î°Ï§Î¦¡ 4 ¸ò 6 ¬O¬Û®eªº, ¦Ó¥B¥¦ ¦b²M²z¾Ç¥Í©Ò¨Ï¥Îªº¹q¸£®É¬Û·í¦³¥Îªº. ³o ºØ§Ö³t®æ¦¡¤Æ¥u­nªá´X¤Q¬í. ¹w³]­È, bpclean ¬O½sĶ¦¨¤ä´© LBA (¤£¶W¹L 1024 ­ÓºÏ¬W, ¦ý¥i¹F 256 ­ÓºÏ ÀY). ¬Y¨Ç©_©Çªº BIOS ¤Î¬Y ¨Ç©_©Çªº§@·~¨t²Î¸û³ßÅw¥t¤@ºØ NORMAL ¼Ò¦¡ (¥i ¹F 4096 ­ÓºÏ¬W, ¦ý¤£¯à¶W¹L 64 ­ÓºÏÀY); ¦pªG±z »Ý­n³oºØ¼Ò¦¡, ¨º»ò§â LBA ªº©w¸q±q­ì©lµ{¦¡¸Ì§ï¦¨µù¸ÑµM«á­«·s½sĶ¤@¹M. Assembler »yªkªº­ì©lµ{¦¡½X¦b [56]³o. 4.4 MRZIP, MRUNZIP and BPUNZIP MrZip ¬O¤@­Ó¦b DOS ¤U°õ¦æªºµ{¦¡, ¥Î¨Ó«Ø¥ßÀ£ÁYªº DOS FAT 16¤À³Î°Ï. ²Ä¤@ ¨B, ¥ý¤ÀªRºÏºÐ¾÷ªº¨Ï ¥Îª¬ªp, ¥¦µM«á¥u¹ï¦³¨Ï¥Î¨ìªº¸ê®Æ°µÀ£ÁY, ±µµÛ¥Î¬Û·í §Öªº (¨Ã¤£¬O³Ì¦³®Ä²vªº) ²Î­pªºÀ£ÁYºtºâ ªk«h¨ÓÀ£ÁY¸ê®Æ. ¤w¸g¤ä´© Windows 95 ªºªøÀɦW, ¦ý¬O°ÆÀɦW¬° .SWP ªºÀɮר䣷|Àx¦s. ¦b¦U¦¡¤£ ¦Pªº ÀÉ®×Ãþ«¬¤¤,¤w¸g¥]§t³\¦h magic numbers, ¥B¤w¸ò­ì©l¸ê®Æ°µ¹LÀˬdªº ³B²z. ·íÀÉ®×®e¶qªº°ª¦ì §Ç¸¹¼Æ¦r¼W¤j®É, ³o­ÓÀˬd½XÀx¦s¦bÀɮתº®e¶qªº§C¦ì§Ç¸¹¼Æ ¦r¤¤ . ¦pªG±z¦b«Ø¥ßÀ£ÁY¼v¹³ÀÉ«e§â ±zµwºÐªº§Ç¸¹Âk¹s, «h±z¥i¥H¨Ï¥Î³o­Ó¼Æ ¦r¨Ó °lÂܱz¼v¹³Àɪº§ó·s¦¸¼Æ. ¦]¬° MrZip ·|¨Ï¥Îª½±µºÏºÐ¦s¨ú, «Øij±z¦b°õ¦æ«e¥ý§âºÏºÐ¾÷§Ö¨ú°Ïªº¸ê®Æ¦^ ¦s. Windows 95 ¦ü¥G¬O ¹ï°µ¤@¨î©ÊªººÞ²zª½±µºÏºÐ¦s¨ú². MrUnzip ¬O¤@­Ó¦b DOS ¤U°õ¦æªºµ{¦¡,¥Î¨Ó¸ÑÀ£ÁYºÏºÐ¼v¹³ÀɨìµwºÐ¾÷¤¤, ¨Ï¥Î ª½±µºÏºÐ¦s¨ú. ¤£­n ¸ò¥ô¦ó¨ã¦³§Ö¨ú¥\¯àªºµ{¦¡¤@°_¨Ï¥Î, ¦]¬°¥ú¬O³o­Óµ{¦¡´N ¤w¸g§Ö§â DOS µ¹§é¿i¦º¤F... ¤£ºÞ«ç¼Ë, ¦pªG±z­n«ì´_¤@­ÓµLªk¶}¾÷ªº¾÷¾¹¨º»ò ¥¦·|¬O±N«Ü¦³¥Îªº. BpUnzip ¬O¤@­Ó¶}¾÷¼v¹³¥Î¨ÓºÞ²zÀ£ÁYµwºÐªº¼v¹³ÀÉ. ²Ê²¤ªº¨Ó»¡, ¥¦±N¥ÑµwºÐ ¾÷ªº¼v¹³¨Ó¶}¾÷¨Ã¥Î ¦P¼Ëªº¦WºÙ, °ÆÀɦW¬° .imz. ­º¥ý, ¥¦·|¥ýŪ¨ú¤À³Î°Ïªí¨ÃÀˬd * ²Ä¤@­Ó DOS ¤À³Î°Ï, ºÏºÐ¼v¹³Àɦ^¦sªº¦a¤è * ¤À³Î°Ï¤¤³Ì«á¤@­ÓºÏ¬W, ¥H«á±NÀx¦sÀ£ÁYµwºÐ¼v¹³. ±µµÛ¥¦·|Ū¨ú²Ä¤@­Ó¥¼¥Î¨ìªººÏ¬Wªº²Ä¤@­ÓºÏ°Ï¨ÃÀˬd¬O§_¤w¸g¦³¤@­Ó¼v¹³ªí. ¦pªG¤£¬O³o¼Ë, ©Î ªÌ¼v¹³ªí¤º®e¦³ÂI¥Ù¬Þ, ©ÎªÌ¨â­Ó shift Áä³£³Q«ö¤U®É (¤@ ºØ¯S§Oªº general-cleaning «H¸¹), ³o­Ó¼v¹³ªí ±N·|³Q²M°£. ¦pªG¼v¹³ªíÁÙ¨S¦³¥]§t©Ò»Ýªº¼v¹³, ¥¦·|³z¹L TFTP ³q°T¨ó©w¸ü¤J¨Ã¥[¦b¼v¹³ªí ¤º. ¦pªG¦b«e­±©Ò¸ü ¤Jªº¼v¹³¤§«á, ¨S¦³¨¬°÷ªºªÅ¶¡¨Ó¦s©ñªº¼v¹³¸ê®Æ®É, «h ªº¼v¹³ÀÉ·|³Q¬å±¼. ¦pªG¼v¹³Àɤw¸g¦s ¦b¼v¹³ªí¤¤, ³Ì·sªº¶}¾÷¼v¹³ºÏ°Ï (¥] §tÀˬd½X) ±N·|³z¹L TFTP ³q°T¨ó©w¸ü¤J¨Ã¥B»P¥Ø«e±o¼v¹³ÀÉ °µ¤ñ¸û. ¦pªG¥¦­Ì ¤£§¹¥þ¤@­P, «hÀ£ÁY¼v¹³·|¦A­«·s¸ü¤J¤@¦¸. ³o­Ó¼v¹³±µµÛ·|³Q¸ÑÀ£ÁY, ©Ò¦³ªº magic numbers ³£¦A½T»{, ¨ÃÀˬd¸ÑÀ£ÁY«áªº ¸ê®Æ. ¦pªG¸ÑÀ£ÁY¥¢ ±Ñ, ©ÎªÌÀˬdµ²ªG»P³Ì·sªº¶}¾÷ºÏ°Ï¤£§k¦X, «h¼v¹³ÀɱN·| ­«·s¸ü¤J¨Ã­×¥¿¤@¦¸. §_«h, µ{¦¡·|§â±± ¨îÅv¥æµ¹¶}¾÷ºÏ°Ï, §@·~¨t²Î´N·|±Ò °Ê. ¦pªG bpunzip ³z¹L°ÆÀɦW .P ¸ü¤J (¦p win95.P), «h¥¦·|°²³] TFTP ¦øªA¾¹¦b port 59 ¦³¥[±j«¬ªº¤¶­± (¦b¥¿ ³Wªº port 69 ¤§¥~©Òªþ¥[ªº). BpUnzip ±N³z¹L ¥¦¥H¸û¤jªº«Ê¥]®æ¦¡¸ü¤J¼v¹³ÀÉ, ³q±`¬O¥H 1408 bytes ¨Ó ¨ú¥N¨C­Ó«Ê¥] 512 bytes (³oºØÂà´«¨Ï¥Î¤j«Ê¥]ªº§Þ¥©¦³ÂI¹³TCP/IP Bootprom©Ò¨Ï¥Îªº). ¦P²z, ¦pªG bpunzip ¬O³z¹L°ÆÀɦW .G ¸ü¤J (¦p win95.GP), «h¥¦±N·|¥ý¤U¸ü¤@ ­Ó¥H¦P¼Ë¥DÀɦWªº GIF ¹ÏÀÉ (¦p win95.gif) ¨Ã¦b¶}¾÷®É§â¥¦¨q¦bÀç¹õ¤W. ³o­Ó µ{¦¡¥u¯à¦b 800x600, 256 ¦âªº¼Ò¦¡¤U¤u§@ (§Y¨Ï GIF ¹ÏÀÉ ¥i¥H§ó¤p©ÎªÌ¨Ï¥Î §ó¤ÖªºÃC¦â). ¦pªG±z·Q­n¬Ý¬Ý¶}¾÷ªº¬yµ{°O¿ý, «h³o­Ó¼ÐÃD¥i¥H«ö ESC Áä²¾ °£. ¦pªG±zªºÅã¥Ü¥d¤£¬O VESA ¬Û®e«¬, «h³o­Ó¥\¯à±z¤£¯à¨Ï¥Î. ¥t¥~,ÁÙ­nª`·N ªº¬O³o­Ó¼Ð°Oªº°õ¦æ§¹ ¦¨´Î¬O¨Ï¥Î½Õ¦â½Lªº ³Ì«á¤Q¤»¦â¨ÓÅã¥Ü. ¦pªG¤£·Q¨Ï¥Î ³o­Ó¥\¯à, ©ÎªÌ§Æ±æ­×¥¿¥¦. ¶¶«K¤@´£, ¦pªG ±z¤£³ßÅw§Ú­Ì¼Ð°Oªº°õ¦æ§¹¦¨´Î, ±z¥i¥H¦Û¥Ñªº§ïÅÜ¥¦ (¦b GIFDATA.ASM), ¦ý½Ð«O¯d§Ú­Ìªº¦W¦r ¦b¥i¥H¬Ý±o¨ìªº ¦a¤è. ¥Ø¦a¤À³Î°Ï¤£»Ý­n§¹¥þ¸ò­ì©lªº¤j¤p¬Û¦P ; ¥¦¥u­n¦³¨¬°÷ªºªÅ¶¡¨Ó¦s©ñ¤À³Î°Ï ¤¤,©Ò¦³¨Ï¥Î¨ìªººÏ ¬W. ¦pªG¥Ø¦a¤À³Î°Ï¤p©ó­ì©lªº¤À³Î°Ï, «h ÀÉ®×¹ïµwªí FAT ±N·|¦]¦¹¦ÓµäÁY (¦ýºÏ¬W¤j¤p«h¤£ÅÜ). ¦pªG¥Ø¦a¤À³Î°Ï¤j¤p¤j©ó­ì©l¤À³Î °Ï, «h ÀÉ®×¹ïÀ³ªí FAT ±N·|ºÉ¥i¯àªºÂX¤j. µM¦Ó, ¦pªG¥Ø¦a¤À³Î °Ï¤ñ­ì©l¤À³Î °Ï¤j§ó¦h, ¥i¯à 65518 ­ÓºÏ¬W´N¤£°÷Âл\©Ò¦³ªºªÅ¶¡ (¦]¬°ºÏ¬W¤j¤p¬OµLªk§ïÅÜ ªº). ¹³ ³oºØª¬ªp, bpunzip ±N·|²£¥Íĵ§i,§i¶D¨Ï¥ÎªÌ¦³¤@¨ÇªÅ¶¡¬y¥¢±¼¤F. ¹w³]­È, bpunzip ¬O½sĶ¦¨¤ä´© LBA (¤£¶W¹L 1024 ­ÓºÏ¬W, ¦ý¥i¹F 256 ­ÓºÏ ÀY). ¬Y¨Ç©_©Çªº BIOS ¤Î¬Y ¨Ç©_©Çªº§@·~¨t²Î¸û³ßÅw¥t¤@ºØ NORMAL ¼Ò¦¡ (¥i ¹F 4096 ­ÓºÏ¬W, ¦ý¤£¯à¶W¹L 64 ­ÓºÏÀY); ¦pªG±z »Ý­n³oºØ¼Ò¦¡, ¨º»ò§â LBA ªº©w¸q±q­ì©lµ{¦¡¸Ì§ï¦¨µù¸ÑµM«á­«·s½sĶ¤@¹M. Assembler »yªkªº­ì©lµ{¦¡½X¦b [57]³o. ¦pªG¨Ï¥Î Solaris 2.5 ·í TFTP server. ¦b³B²z¶W¹L 16 Megabytes ®É, ·|¦³°Ý ÃD. ³o¬O¦]¬°¥¦µLªk³B²z¶W¹L 32768 packets per file ³o¬O¤@­Ó¤wª¾ªº¯äÂÎ, ¦ýª½¨ì¥Ø«e SUN ¤´¥¼´£¨Ñ­×¥¿. §Ú­Ì«Øij±z¨Ï¥Î§ó¦³®Ä ²vªº¥[±j«¬ [58]extended TFTP server (¥¦¤]¤ä´©¨ä¥L§@·~¨t²Î, ´N¦b TCP/IP Bootprom ¤u ¨ãºÏ¤ù¤¤). 4.5 NOBREAK Nobreak.sys ¬Û·í¤p (¤j·§¥u¦³ 350 bytes ) ªºÅX°Êµ{¦¡, ¥¦±N¥[¦b±z config.sys ¤¤ªº¶}©l³B. ¥¦ªº¥Øªº¬O«O Å@¶}¾÷µ{§Ç, ª½¨ì¨Ï¥ÎªÌµn¤J. DOS ¬° ³o´£¨Ñ¤@ºØ³]©w (¦W¬° BREAK=OFF), ¦ý¥¦¤£°÷¼É¤O, ¨Ã¥B¦b autoexec.bat ¨SªÙ ¥Î. §Ú­ÌªºÅX°Êµ{¦¡¤u§@­ì²z¬O·í¤¤Â_­n¨D²£¥Í®É­×§ïÁä½Lªº±½´y½X, ª½±µ¦b BIOS ¼h¤u§@. ¥H³o¤èªk, ©Ò¦³ªºµ{¦¡¦b¤¤Â_¥¼­P¯à«e³£¦¬¤£¹D¤¤Â_°T®§. ³o­ÓÅX°Êµ{¦¡¥²¶·©ñ¦b config.sys Àɤ¤(©ÎªÌ¨Ï¥Î Undocumented DOS ªº devlod µ{¦¡). ±µµÛ, ¥i¥H³z¹L¶Ç °e Yes ¨ì NOBRK ³o­ÓµêÀÀ¸Ë¸m, ¨Ã¥B¶Ç°e No ¦Ó¸T¯à (¨Æ¹ê¤W, ¥u»Ý­n²Ä¤@­Ó¦r¤¸, Y ©Î N ¤~¬O³Ì­«­n ªº). ¦]¬°³o­ÓÅX°Êµ{¦¡¨Ì¾a BIOS, ©Ò¥H¥¦¥u¯à¦b DOS ¸ò Windows 3.1.¤U¤u§@ Windows 95 «h¦³¥¦¦Û¤vªº §C¶¥Áä½L³B²z¾÷¨î. Assembler »yªkªº­ì©lµ{¦¡½X¦b [59]³o. 5. °Q½× §Ú­Ì¦b³o±N°Q½×Ãö©ó³o­Ó¬[ºcªº¬ÛÃö²z½×©ÊijÃD. 5.1 Bootproms »P µwºÐ¾÷ Bootproms ¤w¸g¥X²{¬Û·í¤[¤F, ¦Ó³q±`§Ú­Ì¥u·|§â¥¦­Ì¨Ï¥Î¦bµLºÏºÐ¾÷ªº¹q¸£. ¦ý§Ú­Ì¥D±i, Bootproms ¥Î¦b¨ã¦³µwºÐ¾÷ªº¹q¸£±N§ó¦³½ì, ¦]¬°§Ú­Ì±o¨ì¤FÂù­± ªº§Q¯q: * ¤@­Ó Bootprom ¥i¥H¨Ï±o±zªº¬[ºc§ó¥[í©w, ¦]¬°¥¦¥i¥H½T©w¹q¸£¥²©w·|¥H ¦P¤@­Ó¶}¾÷¨BÆJ¶} ¾÷, §Y¨Ï¬O¤¤¤F¯f¬r©Î¤À³Îªí·l·´. ÁÙ¥i¥H³o¼Ë§@, ¤]´N ¬O§Ú­Ì°µ¹Lªº, ¦b¸ü¤J§@·~¨t²Î¤§«e¥ý ²M²z±zªºµwºÐ * ¦³µwºÐ¾÷¨Ï±o³o­Ó²ÕºA§ó¥[¦³®Ä²v, ¦]¬°¥¦¥i¥H³z¹L§Ö¨ú¦Ó­°§Cºô¸ô­t¸ü, ¨Ã¤¹³\§ó¦³®Ä²vªº swap. 5.2 ¨Ï¥Î¨º¤@ºØ Bootprom ? ­Ó¤H¹q¸£¥i¥Îªº Bootproms ¬Û·í¦h. §Ú­Ì¦³³\¦h²z¥Ñ¿ï¾Ü Köppen EDV GmbH ªº TCP/IP Bootprom : * ¥¦¬O¥H BOOTP/DHCP ³q°T¨ó©w¬°°ò¦, ³o¨Ç³q°T¨ó©w¤w¥Ñ RFCs ¤½¶}ªº©w ¸q. ¥¦ªº©w¸q¬O·í BOOTP/DHCP ¦øªA¾¹¦¬¨ì¥¼ª¾ªº«È¤áºÝªº­n¨D°T¸¹, ±N¤£ ·|¦³¥ô¦ó¦^À³. ³o¬O¥Î¨Ó¨¾¤î¦³¦h¥x ¦øªA¾¹®É¦Ó¤¬¬Û¤zÂZ, ·í±z­W©ó MSD ¶}¾÷¦øªA¾¹ªºÅéÅç. ¦Ó¥B, ¦Ó¥B IP ¥u¯à¦b¤lºô¸ô¤º¼s¼½, ³o¼Ë¤ñ°_ IPX ·| ²£¥Í¸û§CªºÂø°T. * ¥¦¥i¨Ï¥Î¦hºØ§@·~¨t²Î. * §Þ³N¸ê®Æ»P API ¸ê®Æ¥i¯Á¨ú. * ¥i¥H¦Û¤v¼g¶}¾÷¸ü¤Jµ{¦¡ (§Ú­Ì¸Õ¹L) * ¶}¾÷ªºµ{§Ç¥i¥H¦³§ó¦hªºÅܤÆ. ¯S§O¬O, ¥¦¥i¥H¤¹³\§Ú­Ì¦b¦¡ªº AST ¹q¸£ Ãö±¼³nºÐªº¶}¾÷, ³o¦b­ì¾÷¾¹ªº BIOS ¤£¥]¬A³o¶µ¥\¯à. * ´£¨Ñ«Ø¥ß»PºûÅ@¶}¾÷¿ï³æªº¤u¨ã. References 1. mailto:yytseng@ms16.hinet.net 2. http://cuiwww.unige.ch/info/pc/remote-boot/howto.html 3. http://www.lancache.com/ 4. http://www.katedral.se/system/elevsyst 5. http://www.incom.de/bp_info.htm 6. http://www.incom.de/bp_info.htm 7. http://www.lancache.com/ 8. http://www.katedral.se/system/elevsyst 9. http://vitoria.upf.tche.br/~fred/ 10. http://www.incom.de/ 11. file://localhost/tmp/zh-sgmltools.3804/soft/tftpboot/bpclean 12. file://localhost/tmp/zh-sgmltools.3804/soft/tftpboot/bpunzip 13. file://localhost/tmp/zh-sgmltools.3804/soft/tftpboot/bphdboot 14. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/menuedit.exe 15. http://www.redhat.com/ 16. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-2.0.28 17. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-config-sound 18. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-PCSP 19. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-bootprom 20. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-filecache 21. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-penguinlogo 22. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-2.0.29 23. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/kernel/patch-2.0.30 24. file://localhost/tmp/zh-sgmltools.3804/good.config 25. http://www.ag.or.at/~andreas/NFS-Root-Mini-Howto.html 26. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/rc.ramdisk 27. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/rc.sysdetect 28. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/filecache.init 29. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/filecache.conf 30. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/rc.sysinit 31. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/fstab.ref 32. file://localhost/tmp/zh-sgmltools.3804/soft/linux/etc/hosts.ref 33. file://localhost/tmp/zh-sgmltools.3804/soft/linux/bin/filecache 34. file://localhost/tmp/zh-sgmltools.3804/soft/linux/man/filecache.8 35. file://localhost/tmp/zh-sgmltools.3804/soft/linux/bin/bootptag 36. file://localhost/tmp/zh-sgmltools.3804/soft/linux/bin/dhcptag 37. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/util/bootptag.c 38. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/util/dhcptag.c 39. file://localhost/tmp/zh-sgmltools.3804/soft/linux/src/util/makeramdisk 40. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/nobreak.sys 41. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/mrzip.exe 42. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/mrunzip.exe 43. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/unzipreg.exe 44. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/unzipreg.zip 45. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/addgroup.pas 46. file://localhost/tmp/zh-sgmltools.3804/win95old/win95old.html 47. http://www.lancache.com/ 48. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/mrzip.exe 49. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/mrunzip.exe 50. file://localhost/tmp/zh-sgmltools.3804/soft/dos/bin/unzipreg.exe 51. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/unzipreg.zip 52. file://localhost/tmp/zh-sgmltools.3804/soft/dos/lib/smc.reg 53. http://cuiwww.unige.ch/info/pc 54. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/menuedit.pas 55. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/bphdboot.zip 56. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/bpclean.zip 57. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/mrzip.zip 58. file://localhost/tmp/zh-sgmltools.3804/soft/solaris/in.tftpd 59. file://localhost/tmp/zh-sgmltools.3804/soft/dos/src/nobreak.zip