  Diskless  ̴ Ͽ
  by Robert Nemkin buci@math.klte.hu
  v0.0.3, 1996 9 12
  kmw@physics3.sogang.ac.kr
  1999 2 12

    ũ   ڽ  ϴ Ÿ
  ۱ Robert Nemkin ִ. ۱ GPL .   Bela Kis
  <bkis@cartan.math.klte.hu>     ص Ͽ
  Ѵ.
  ______________________________________________________________________

  

  1. ȭ
  2. ũ   ڽ  ġ ΰ
  3.  
  4. ϵ
  5. ⺻ ̵
     5.1 PC ġϱ
     5.2  bootpd ġϱ
     5.3  bootpd ϱ
     5.4 tftp ϱ
     5.5   ּ   ġϱ
     5.6 tftp  ϱ
     5.7  ۾

  6. ޸𸮿 ũ  䱸; ӵ
  7.  
  8.     Ȯ

  ______________________________________________________________________

  1.  ȭ

    v0.0.3 1996 9 12 :   ׼

  2.  ũ   ڽ  ġ ΰ

    ũ   ڽ ġ  ̴. , ϵ
  ũ ÷ ̺  PC   ʿ䰡 
  ̴.  , Ʈ Ǿ ִٸ, ٸ н ý۰ bootp,
  tftp, NFS , ׸ eprom   ̿Ͽ ϵ Ǵ ÷
  ũ   ġϰ ۵ϰ ϴ  ϴ.

  3.   

    NFS-root ̴ Ͽ

    Terry Dawson   NET-2-3-Ͽ ,
     94004531@postoffice.csu.edu.au

    ο Ŀ ϰ   /usr/src/linux/README

  4.  ϵ

  ⿡ Ǿ ͵ Ʒ  ؼ ȮεǾ.

    Ʈ μ Sun-OS 4.1.3

    Slackware 2.3 + Linux 1.2.8 + wd 8013 ethercard.

    Working Ethernet lan

  5.  ⺻ ̵

  ⺻   . ; PC tftp  Ͽ Ŀΰ
  ʱ IP ּҷμ 0.0.0.0  bootp ݿ  Ʈκ
  IPּҸ  ̴. (-- (͸ Ͽ) ׸Ʈ 
  ϴ    ƴϴ.  ׷,  ũ  
  ڽ   ׸Ʈ ΰų  ּҿ  
  Ϳ UDP Helper ּҸ ϶.  ڼ  ؼ
   Ŵ ϱ ٶ.--)

  Ʒ    ̴.

  5.1.  PC ġϱ

  nfs Ű (   ̷Ʈ /pub/Linux/system/Linux-
  boot丮 ã  ִ ) .  ⿡   
  ִ wd8013 ī忡  booteprom  ̹ ԵǾִ.

  PC غϴµ    ִ. ;

      ӽſ ũ  ʴٸ,   α׷
     ϶.  Ǵ,

     Ű ȿ ̳ʸ ÷ ̹ ԵǾִ.  
       ɼ Ѵٸ, dd  Ͽ ÷ǿ ̹
     ־߸  .

   ̹ bootp tftp Ŭ̾Ʈ ϰ ִ.   nfs-
  rootɼ   Ŀζ غ ʿ䰡 ִ.

      ֱ  Ŀ linux-1.2.13 Ѵٸ, 
     nfs Ű ȿ Ե ġ  Ͽ Ŀ ġ Ͽ Ѵ.
     (-- ġ(1) ϶--)

      ֱ  linux-1.3.x ø Ҿ Ŀ
     Ѵٸ, nfs-root ɼǿ Ͽ߸ Ѵ.

       ̽ (÷ Ǵ ϵũ)  ʿ
     , tcp/ip wd-ethernet ī nfs Ͻý
     ϿѴ. ׸ ϻ Ŀ   ϶.

  5.2.   bootpd ġϱ

   bootpd-2.4.tar.gz ( ֿ  ̷Ʈ
  /pub/Linux/system/Network/boot.net 丮)Ű ߰Ѵٸ,
  Ű ,  ν϶.    н ڽ
    ̶ bootpd ϰ  Ƿ  
   ϶.    ɿ ؼ  ȴ.

       ______________________________________________________________________
               bootpd -s
       ______________________________________________________________________

  Ǵ inetd Ͽ, ̷ 쿡  ؾѴ.

    /etc/inetd.conf   ο ؽ ũ .

       ______________________________________________________________________
       # tftp   dgram   udp     wait    root    /usr/sbin/in.tftpd        tftpd /export
       # bootps dgram   udp     wait    root    /usr/sbin/in.bootpd     bootpd
       ______________________________________________________________________

    /etc/services  ζ ּ ְų Ǵ ϶.

       ______________________________________________________________________
       bootps          67/tcp          # BOOTP server
       tftp            69/udp           # TFTP server
       ______________________________________________________________________

     ɿ ؼ inetd  ϶.

       ______________________________________________________________________
               kill -HUP <process id of inetd>.
       ______________________________________________________________________

  5.3.   bootpd ϱ

  ٵ, bootpd /etc 丮 bootptab̶ Ҹ  
   ִ.    Ͽ Ʈ,   , ׸
   ũ  ӽ ̴ ּ  Ͽ߸ Ѵ.  
  /etc/bootptab  ̴.

       ______________________________________________________________________
       global.prof:\
               :sm=255.255.255.0:\
               :ds=192.168.1.5:\
               :gw=192.168.1.19:\
               :ht=ethernet:\
               :bf=linux:
       machine1:hd=/export/root/machine1:tc=global.prof:ha=0000c0863d7a:ip=192.168.1.140:
       machine2:hd=/export/root/machine2:tc=global.prof:ha=0800110244e1:ip=192.168.1.141:
       machine3:hd=/export/root/machine3:tc=global.prof:ha=0800110244de:ip=192.168.1.142:
       ______________________________________________________________________

  global.conf Ϲ ȣƮ   ִ ̰
  ⿡,

    sm κ  ũ Ѵ.

    ds  κ    ּҸ Ѵ.

    gw κ ⺻ Ʈ ּҸ Ѵ.

    ht  κ  ϵ ¸ Ѵ.

    bf  κ Ʈ  ̸ Ѵ.

  ̰  Ŀ,  ӽŵ    ־ Ѵ. ;

    ó κ ȣƮ ̸ ϰ,

    hd κ Ʈ  丮 κ ϰ,

    ü  tc κп ԵǾ   ְ,

    ha κ ̴ī ϵ ּҸ ϰ,

    ip κ Ҵ ip ּҸ Ѵ.

  5.4.  tftp ϱ

  TFTP (Trivial File Transfer Protocol)  ftp   
  , EPROM ־ ڵ ϴµ ξ ϴ. TFTP
         ִ.

     tftp: Ŭ̾Ʈ  ü  ý ׼  
      ǹѴ.  ̰ ϳ ȿ ū  (  tftp
     Ͽ  н    ִ.)̴.

     tftp: tftp  chroot Ѵ.    ý 
     ڽ Ʈ 丮  Ѵ.  ο Ʈ 丮 
      ͵  ׼     ̴. chroot 
     丮 ο Ʈ 丮  ̰, bootptab  hd
      ο Ȳ ݿѴ.    ; Ҿ tftp
      , hd κ Ʈ 丮μ /export ϸ,
     /export /  ǰ hd κ /root/machine1 ȴ.

    н  ־ tftp  ϰ, Ƹ 
  ν   ̴.

  5.5.    ּ   ġϱ

  ̰    a, ap, n x Ű ԵǾִ. 
  νϴ  . ; ׷  Ű ũ  X
  ͹̳ημ  ϴ. ν翡 ؼ,   ý
  ̿ؾѴ.  ӽ ũ  Ȯϰ װ б-
  export ϶.   ڽ Ͻýۿ  (/mnt) export
  丮 ƮѴ.   ġ ϰ /κ  /mnt
  ġ Ʈ ɼ  ϶.  Ϲ Ű ġ϶.
    ϳ ũ   ڽ ϱ⸦ Ѵٸ,
  ٲ ʿ䰡 ƹ ͵ .  ٸ ,   ϳ ũ
   ӽ ̻ ϱ⸦ Ѵٸ,  ӽſ   ϰ
  丮 ϹǷ  ġ ۵  ̴.   /usr
  ( ͸    κ) ű  ũ 
  ӽ 丮 ϹǷ   Եȴ.   , 
  /export/linux/machine/  /mnt ƮǾ ִٸ, ʱ ġ  
  Ŀ 丮    ̴.

  ______________________________________________________________________
  /export/linux/machine1/bin
  /export/linux/machine1/sbin
  /export/linux/machine1/lib
  /export/linux/machine1/etc
  /export/linux/machine1/var
  /export/linux/machine1/usr
  ______________________________________________________________________

    Ŀ   ̴.

       ______________________________________________________________________
       /export/linux/machine1/bin
       /export/linux/machine1/sbin
       /export/linux/machine1/lib
       /export/linux/machine1/etc
       /export/linux/machine1/var
       /export/linux/usr
       ______________________________________________________________________

   ٸ ӽſ  丮 .  ,  ũ 
  ӽ machine1, machine2, machine3̶ Ѵ.  ׷ 
  ٸ 丮    bash ũƮ   ִ.

       ______________________________________________________________________

               cd /export/linux
               for x in machine2 machine3 ; do
                       mkdir $x; cd $x
                       (cd ../machine1; tar cf - *) | tar xvf -
               done
       ______________________________________________________________________

  ׷ Ʒ/export

    /export/linux/usr                  ο б⸸

    /export/liunx/machine1             ӽ1 Ʈ б ⸸

    /export/liunx/machine2             ӽ2 Ʈ б ⸸

    /export/liunx/machine3             ӽ3 Ʈ б ⸸

  Ʒ  (-- Ʒ  SunOS 4.1.3 exports  Ģ 
  ̴.--)

  ______________________________________________________________________

  # This file is /etc/export
  # for remote linux X terminals by Buci
  # this line is only once
  /export/root/usr             -access=linuxnet
  # these lines once for every host
  /export/root/machine1       rw=machine1,root=machine1
  /export/root/machine2       rw=machine2,root=machine2
  /export/root/machine3       rw=machine3,root=machine3
  ______________________________________________________________________

  exportfs -a ϴ   ƶ.

  5.6.  tftp  ϱ

   tftp   ̴.    tftp ʿ 
  ʴ´ٸ  Ŭ̾Ʈ    Ͽ /export
  丮κ Ҽ  ̴.

  ,  ftp Ѵٸ (   Ŀΰ ٸ ӽŵ
  ɺ ũȰ)Ʒ /export/linux 丮  ̴. Ǵ,
  /export 丮  tftpd Ʈ 丮  ǰ Ͽ. ׸
  ϰ, ٸ͵   Ŀΰ ɺ ũ  丮
   ʿϰԵȴ.    Ÿ μ   
   ִ.

       ______________________________________________________________________
             mkdir -p /tftpboot/export/linux/machine1
             cd /tftpboot/export/linux/machine1
             cp /export/linux/machine1/<name of the kernel> .
       ______________________________________________________________________

    Ÿ϶.

       ______________________________________________________________________
             mkdir -p /tftpboot/export/linux/machine2
             cd ../machine2
             ln -s ../machine2/<name of the kernel>
       ______________________________________________________________________

  5.7.   ۾

  ,   Ͽ ϰ

       ______________________________________________________________________
          /sbin/mount nfs_server:/export/linux/usr /usr
       ______________________________________________________________________

  as the first line of

       ______________________________________________________________________
          /export/linux/<machinex>/etc/rc.d/rc.S
       ______________________________________________________________________

  ⿡ <machinex>  ӽ1, ӽ2, ӽ3 Ÿ.

  6.  ޸𸮿 ũ  䱸; ӵ

   ̰   2.3 ׽Ʈߴ.; ٸ /
   ٸ  ִ.

    ũ : 28MB + 6.5MB/machine

     :  8ްμ X Ѵ.  4ް Ҹ ʿϰ,
      ӽſ ϱ δ /tmp̴. mkswap ϴ  
     .

    ӵ : 8ް 486 DX2/66 ƹ  .

  7.   

     ̻  ߰ߴ.; SunOS /dev 丮
     ̽   μ ׷   ڽ
     丮 ƮϿ MAKEDEV ٽ ״.  (
      nfs SunOS nfs ٸ ̴.;  Major Minor
     32Ʈ ̽   , SunOS Major Ͽ 14Ʈ
     Ȯ ʵ带 ϰ, Minor ̽ μ 18Ʈ Ȯ
     ʵ带 Ѵ.

    ũ     Ǿ , tftp   
     ̺   ϳ ͸ ְ ׷  
     ̺ Ȯϰ ġϿ߸ Ѵ.   ⿡  
     ±ִ.

      ӽſ  rc.S ϱ

    bootp Ŭ̾Ʈ Ű ϰ Ϲ ġ ũƮ 

  8.      Ȯ

    õ  ùٸ ο

    SunOS BSD̴.    SVR4 (Solaris)
     ԽѾѴ.

      ſ SunOS bootp/tftp μ , 
        ſ ϴ.

     etherboot Ű    Ʈ

    Ŀ  1.2.13 nfs Ʈ Ű ο nfs-root ġ 
     1.3.x Ŀ  ̿   ƶ.

    wd8013 ٴ ٸ ī带  ʿ䰡 ִ.

    bootpc    Ͽ,   bootp
     Ŭ̾Ʈ ùٸ  ̺ ġؾѴ.

    Typos  ٸ : buci@math.klte.hu  ޶.  Ѵ.

