рус eng
 
 Резюме
 Работа
 Публикации
 Заметки
 Образование
 Увлечения
 


( Linux)

, .

( ) 16 , .

  • , NFS.

  • .

  • .

  • ( - ).

  • .

"" X-. - .

, , ( ) . ? , (). EPROM- (FLASH-) - , . BIOS, , , . , , .

, . IP, , . .

. FLASH, . FLASH EPROM ( ), EPROM , . , . Intel EtherExpress/100+ (i82557).

, . , ( ), , , Etherboot. , , LILO (LInux LOader), BootROM. make. , BootROM http://rom-o-matic.net/4.6.12/. . 32KB.

, , . dd Unix, rawrite. LILO lilo.conf :

image=<    >
    label=net

, , IP , , , .

. DHCP, TFTP NFS. , , , , . dhcpd.conf

option domain-name "private.net";
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;

subnet 192.168.1.0  netmask 255.255.255.0 {
    option broadcast-address 192.168.1.255;
    option routers 192.168.1.1;

    host ws01 {
      filename "netbootkernel_ws01";
      hardware ethernet 0:60:cc:63:46:a2;
      fixed-address 192.168.1.2;
    }

    ...   
}

DHCP , , "" netbootkernel_wsXX. DHCP BOOTP , .

TFTP (Trivial File Transfer Protocol). tftp

tftp  dgram  udp  wait  root  /usr/sbin/tcpd  in.tftpd /mnt/storage/netbootkernels

/etc/inet.d. , . /tftpboot. (rw-r--r--).

, . /mnt/storage/netbootkernels. , , , ( , , , NFS, TCP .). "Yes" BOOTP ( DHCP ), " " , NFS. loopback, vfat, floppy cdrom .

Make dep; make bzImage;

, , tftp, - , . etherboot ( 4.7) - mknbi, Perl', , , append. . (, root ws01 /mnt/storage/ws01)

mknbi-linux --rootdir=/mnt/storage/ws01 bzImage> /mnt/storage/netbootkernels/netbootkernel_ws01

, .

/export/storage/ws01, / (root). : , , . , .

, , . , fstab, conf.modules . /dev , ( ). (cp -Rdp). /usr /home , (/home ). , 10MB 15MB /usr, .

, ( ). , , .

(/, /usr, /home) NFS /etc/exports. , , :

#  /usr   
/mnt/storage/all  ws*.private.net(ro)
#   
/home             ws*.private.net(rw,no_root_squash)
#      
/mnt/storage/ws01 ws01.private.net(rw,no_root_squash)
/mnt/storage/ws02 ws02.private.net(rw,no_root_squash)
.........
/mnt/storage/ws15 ws15.private.net(rw,no_root_squash)

, . , . , , .

, . ? , , . , "" hostname, mtab . , .

, . , , , ( ), devfs ( ) . " " , "YES" RAM disk support Initial RAM disk support. RAM 10. . , , .

, , . , RAM , /usr, /dev /home. . , , , , , dhcp-client , .


to be continue