<!--
Copyright (c) 2001 The FreeBSD Documentation Project
Redistribution and use in source (SGML DocBook) and 'compiled' forms
(SGML, HTML, PDF, PostScript, RTF and so forth) with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code (SGML DocBook) must retain the above
copyright notice, this list of conditions and the following
disclaimer as the first lines of this file unmodified.
2. Redistributions in compiled form (transformed to other DTDs,
converted to PDF, PostScript, RTF and other formats) must reproduce
the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS DOCUMENTATION IS PROVIDED BY THE FREEBSD DOCUMENTATION PROJECT "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NIK CLAYTON BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
The FreeBSD Russian Documentation Project
$FreeBSD$
$FreeBSDru: frdp/doc/ru_RU.KOI8-R/articles/solid-state/article.sgml,v 1.3 2001/07/01 16:56:58 phantom Exp $
Original revision: 1.1
-->
<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [
<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN">
%man;
<!ENTITY legalnotice SYSTEM "../../share/sgml/legalnotice.sgml">
]>
<article>
<articleinfo>
<title>FreeBSD � ������������� ����������</title>
<authorgroup>
<author>
<firstname>John</firstname>
<surname>Kozubik</surname>
<affiliation>
<address><email>john@kozubik.com</email></address>
</affiliation>
</author>
</authorgroup>
<pubdate>$FreeBSD: doc/en_US.ISO8859-1/articles/solid-state/article.sgml,v 1.1 2001/06/20 16:12:33 nik Exp $</pubdate>
<copyright>
<year>2001</year>
<holder>The FreeBSD Documentation Project</holder>
</copyright>
&legalnotice;
<abstract>
<para>� ���� ������ ����������� ������������� ������������� ��������
��������� ��� �������� ������������ ������ �� ������ FreeBSD.</para>
<para>������������ ������� ����� ������������ � ���������� ����������
�� ������� ���������� � ��� ���������� ������ (������� ������). ������
������� ������� �� ��������, ��� �������, ��� �������, �������� �����
����� �������� ������������ � ������������ ����� �������������
����������.</para>
<para>� �������� ��������������� �������� ��������� ���� � ��������������
������������� ���������, ���������� ��� ������������� � �������� ������
�� FreeBSD, ��������� ����, ������� ������������ ������� � �����
��������, ��������� <filename>rc.diskless</filename>, ����������������
������������� ����� ������ � ��������������� ����������� ��������
������, ��������� ������ ��� ������, � ����� ���������� �������� ������
� ����. ������ ������������� ��������� ��������� ����� ��������� ���
������� ����� ������ FreeBSD � ����� � ������ ������ ��� ������.</para>
</abstract>
</articleinfo>
<sect1 id="intro">
<title>������������� �������� ����������</title>
<para>��� ������ ����� �������������� ������������� ������������� ��������
���������, ������� �������� �� ������ ����-������. ����-������ ��������
������������� (����� ��� ���������� ������) ������������ �����������,
������� �������� ����������������� (������ �������� � ������ ���� �����
���������� ���� ���������� �������). ����-������ ����� ����
���������������� � ������� ���������� ������������ � ���������� ������
(������� �� ������ ����-������, ����������� � ���� ������, �������
���������, ��� ����� EIDE ��� �������� ������, � ������� ������� �� �
������ ���������� �������� ������). ����� �� ����� ������ �������
����-������, ��������� �������� �������� ����� ����������� ����� � ����
������, �������� ��, ��� ������ ������ ����� ������������ ����������� ��
���������������. �� ������ ������ ����������, ������� � ����� ����������
�� ������ ����-������ ������������ ���������� ��� �� ����, ��� ������
������ ��������� �����������������. ���� ������ �������� �� ������
����-������ ������������� �������������� ����������� �����, � ���������
���� ������������ �������� ������ �� ����� ������, ������ ��������
������� ����������� �� ���������� �������� ������, ������� �����
����������� � �����������. ����������� ������ ����� �������������� ��
1,000,000 �� 10,000,000 ������ ������ �� ������. ��� ��������������
����� �������� �� ����������� ������� �����.</para>
<para>� ���������, �� ������� ���������� ������ ����-������, ����������� ��
���������� ATA � ������ ����-������ Disk-On-Chip �������� M-Systems.
����������� � ATA ���������� ����-����� ������ ��������� � ��������
�������� ������ ��� �������� �����. ������ ������� ������������ ���
����, ��� ��� ������������� ���� IDE �� ��������� � ���������� � �������
������ ATA. ����� �������, ��� ������ ����� �������� � �������� ��������
����� ���������� ����� ������������ ��������������� � ���� IDE
����������. ���� ��������� ���� �������, �� ����� ������������ �������,
��� FreeBSD, ���������� ���� ��� ������� ��������� (������ ���������).
������� M-Systems Disk-On-Chip ������� �� ��� �� ����� ����������
����-������, ��� � ����������� � ATA ���������� ����-�����, �� ����������
����-�������� DIP � �� ���������� � ATA. ��� ������������� ������
����������, �� �� ������ ������ ���������� ��� �� ����������� ����� �
�������� Disk-On-Chip, �� ����� �������� ������� `fla` �� ��� ����
FreeBSD, � �������� ������ ��� ������������. ����� ����, � �����������
������� ����� ���������� ��������� ��������� ������, ��� ��� �� �� ������
������������� ��������� FreeBSD (� ������ �����-���� ������ ���������)
��� ��� �������������.</para>
<para>���������� � ������ ������� ��� ������������� ������, �� ��
���������, ������������ � ������������� ��������� ������������� �������
�� �� ����� ���� ������.</para>
</sect1>
<sect1 id="kernel">
<title>��������� ����</title>
<para>��� ���. ��� ������� ������������ ������� FreeBSD, �������
������������ ��������� ���������� ����.</para>
<para>��-������, ��� ������������ ������� FreeBSD, ������� ����������
����-������ � �������� ���������� �����, �������������� � �������������
������ � ������ � �������� ������ � ������. ��-�� �������������
���������� ������ ������, ������� ����� ��������� � ����-�������, ����
� �������� ������� �� ��� �����, ������ �����, ������������� � ������
������� ������ ��� ������. � ����� ������ �������� ������� ����
<filename>/tmp</filename> � <filename>/var</filename> ����������� ���
�������� ������� � ������ ��� ����, ����� ��������� ������� �������
������� � �������� �������� � ��������� �����. �������� ������� � ������
�������� ����������� ����������� �������� ������ FreeBSD �� �������������
�����������.</para>
<para>�� ������ ��������������, ��� � ���������������� ����� ������ ����
������������ ��������� ������:</para>
<programlisting>
options MFS # Memory Filesystem
options MD_ROOT # md device usable as a potential root device
pseudo-device md # memory disk
</programlisting>
<para>��-������, ���� �� ������ ������������ ������� M-Systems
Disk-On-Chip, �� ������ ����� �������� ����� ������:</para>
<programlisting>device fla0 at isa?</programlisting>
</sect1>
<sect1 id="ro-fs">
<title><filename>rc.diskless</filename> �������� ������� � ������ ������
������</title>
<para>������������� ������������ ������� FreeBSD ����� �������� �����������
<filename>/etc/rc.diskless2</filename>
(<filename>/etc/rc.diskless1</filename> ��� ����������� ��������
����������� BOOTP). ���� ��������� ������ ����������, ���� ���������
� ���� <filename>/etc/rc.conf</filename> ����� ������:</para>
<programlisting>diskless_mount=/etc/rc.diskless2</programlisting>
<para><filename>rc.diskless2</filename> ���������
<filename>/var</filename> ��� �������� ������� � ������, �������
����������� ������ ��������� � <filename>/var</filename> ��� ������
������� &man.mkdir.1;, �������� ������ ������� �� ��������� �� ����
��������� � �������� ����� ����� ������ ��������� ������������ ��
��������� ��� ������ (����� ��, ��� �������� ������� � ������) ������
<filename>/dev</filename>. � �������� ����������
<filename>/etc/rc.diskless2</filename>, ������������� ��� ���� ����������
<filename>rc.conf</filename> - <literal>varsize</literal>. ������
<filename>/etc/rc.diskless2</filename> ������� ������
<filename>/var</filename> �� ������ �������� ���� ���������� ��
<filename>rc.conf</filename>:</para>
<programlisting>varsize=8192</programlisting>
<para>���������, ��� ��� �������� ������� � ��������. �������� �������
<filename>/dev</filename> ��� ������
<filename>/etc/rc.diskless2</filename>, ������, ����������
���������������� ��������� � 4096 ��������. ����� �������� ��� ��������
��������������� � ����� <filename>/etc/rc.diskless2</filename>, ����
��� �������� <filename>/dev</filename> ���� �� ��� ����������� ������
��������� ������������.</para>
<para>����� �������, ��� ������ <filename>/etc/rc.diskless2</filename>
������������, ��� �� ��� ������� ��� ������� ������
<filename>/tmp</filename> � �������� ��� ������������� ������� ��
<filename>/var/tmp</filename>. ��� ��� <filename>tmp</filename> ��������
����� �� ���������, ����������� � <filename>/var</filename> ��������
<filename>/etc/rc.diskless2</filename> � <filename>/var</filename>
�������� �������� �������� � ������ (������� ����������� � ������� ������
� ������), �� <filename>/tmp</filename> ����� ���������, ����� ���������
��� ������ � ������.</para>
<para>��� ����, ��� <filename>/var</filename> � <filename>/dev</filename>
�������� ��������� ���������, ���������� ��� ������ � ������, ��������
������ ���������, ��� ��� ������ <filename>/</filename> (� ����� ������
�������, ������� ����� ���������� �� ����-��������) ������ �������������
� ������ ������ ��� ������. ���������, ��� <xref linkend="intro"> ��
�������� ����������� ����-������ - �������� �����������, ����������
������������ ������. ����� �� ����������� �������� ������� ��
����-��������� � ������� ������ � ������, � �������� ������ �� �����
�������� �� ����� ���� �����������. ���� �������� �� ����������� �������
����� �������� ����� ����-�������� ����� ��� �� ���. ������
�������������� � �������� ��������� ������ �������� � ���� �� ����������.
�������, ����� �������� ������� <literal>swap</literal> �
<literal>/proc</literal> �� ������ ����� <filename>/etc/fstab</filename>,
�� ������ ����� �������� ���� ���������� ������ �������� ������� ��
<literal>ro</literal> ����� �������:</para>
<programlisting>
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1a / ufs ro 1 1
</programlisting>
<para>� ���������� ���� ��������� � ����������������� ������� ���������
���������� ���������� ���������� ��������. ��������, ����� �� �����
��������������� �� ������ ������ ��-�� ���������� �����
<filename>/var/db/port.mkversion</filename>, cron �� ����� ���������
����������� � ���������� ���������� ������ ��� ���� � ��������
<filename>/var</filename>, ���������
<filename>/etc/rc.diskless2</filename>, � syslog � dhcp ����� ����������
�������� ��-�� ������� �������� ������� ������ ��� ������, � �����
���������� ������� � <filename>/var</filename>, ������� ��� ������
�������� <filename>/etc/rc.diskless2</filename>. ���� ��� ��������
�������� ���������� � ����������� ������ � �������� ������� � ��������
���������������� ����������� �������, � <xref
linkend="strategies">.</para>
<para>����� �������, ��� �������� �������, ������� ���� ������������
������ ��� ������ ��� ������ ����� <filename>/etc/fstab</filename>, �
����� ������ ����� ���� ������� ��������� �� ������ � ������ �������
�������:</para>
<screen>
&prompt.root; <userinput>/sbin/mount -uw <replaceable>partition</replaceable></userinput>
</screen>
<para>� ����� ���� ���������� � ������ ������� ������ ��� ������ �� �����
�������:</para>
<screen>
&prompt.root; <userinput>/sbin/mount -ur <replaceable>partition</replaceable></userinput>
</screen>
</sect1>
<sect1>
<title>�������� �������� ������� � ����</title>
<para>��� ��� ����������� � ATA ���������� ����-����� ������������ ��
FreeBSD ��� ������� ������� ����� IDE, ��� ��� ���������� � ���������
M-Systems Disk-On-Chip (����� �� ���������� ���� � ���������� ���������
fla), �� ������������ �� ������ ���������� FreeBSD �� ���� ��� ������
������ kern � mfsroot ��� � �������-�����. ����� ����, ��� ��� �� �����
���������� ����� �� �� �� ���� ��������� ��������� �� ����������
M-Systems, ������� �������������� ���������� �� ���������.</para>
<para>������ ���� ��������� ��������� FreeBSD ��� ������ ������� ��������
��������� ����� �������� � �������� ������� ��������, ����������� 200
��������. ��� ��� ����������� ����� ���������� ���������� ����-������
�������� ������� (128 �������� ��������� ������ ������� - 32 ��� ���� 16
�������� ������������ ������� ����), �� ��������� ������� ������� ��
��������—������ �� ����� ��� ����� ���� ��� ����� �����������
���������.</para>
<para>����� ������� �������� ������ ��� ����������� �� ����� ��������
��������� FreeBSD ������� ������� �� ������� ������� ����. �����
��������� ���������, �������� ������������ ������� �� �������, �������
���������� �� ��� ����-��������, � ����� ��������� ������������� ��������
�������. ��������� ���� ������� ��� ����� ������� ���������� �����
����-������ ��� ����� ���������������� �������� �������. ���������, ���
��-�� ����, ��� ������� ��������� �� �����������, ����� ��������, ���
��������� �� �������, ��������, �������� �������� ������� � ��� �����
������ ���� ��������� �������. ����� ������ kern � mfsroot ��� �����
����� ��������������� �������� fixit. ���� �� ����������� M-Systems
Disk-On-Chip, �� ���� � ������� kern ������ ����� ����������������
�������� <literal>fla</literal>, ����������� � <xref linkend="kernel">.
����������, ���������� � <xref linkend="kern.flp"> ��� ��������� ��������
�� �������� ������ ���� ��� <filename>kern.flp</filename>.</para>
<procedure>
<step>
<title>��������� ������ ����-�������� �� �������</title>
<para>����� �������� ��� ������ ������ kern � mfsroot, �������� �����
<literal>custom</literal> �� ���� ���������. �� ���������� ������
���� �������� <literal>partition</literal>. � ���� ������ �
��������� �� ������ ������� ��� ������������ ������� ��� ������
������� <keycap>d</keycap>. ����� �������� ���� ��������� ��������
�������� ������ ��� ������ ������� <keycap>c</keycap> � �����������
� ������������ �� ��������� �������� �������. ����� �� ������
�������� �� ������� ���� �������, ��������������, ��� �������� ����
����� <literal>165</literal>. ������ �������� ��� ������� ��������
�� ����, ����� ������� <keycap>w</keycap> (�� ���� ������ ��� �����
������). �������� � ���� ������ ��������� ��������, ��������
�������� �� ����� <literal>None</literal>, ���� �� �����������
M-Systems Disk-On-Chip. ���� �� ����������� ���������� ����-�����,
����������� � ATA, �� ������ ������� FreeBSD Boot Manager. ������
������� ������� <keycap>q</keycap> ��� ������ �� ���� ������ �
���������. ������ ���� ������ ��� ��� ���� ��� ������ ���������
�������� - ��������� ��, ��� �� �������� �����.</para>
</step>
<step>
<title>�������� �������� ������ �� ����� ���������� ����-������</title>
<para>������� �� ���� ��������� custom, � �� �������� ���� ���������
�������� ����� <literal>fixit</literal>. ����� ����� � ����� ������
fixit, ������� ��������� �������:</para>
<informaltable frame="none">
<tgroup cols="2">
<thead>
<row>
<entry align="center">����������� � ATA</entry>
<entry align="center">Disk-On-Chip</entry>
</row>
</thead>
<tbody>
<row>
<entry><para><screen>&prompt.root; <userinput>mknod /dev/ad0c c 116 0</userinput>
&prompt.root; <userinput>mknod /dev/ad0c c 116 2</userinput>
&prompt.root; <userinput>disklabel -e /dev/ad0c</userinput></screen></para></entry>
<entry><para><screen>&prompt.root; <userinput>mknod /dev/fla0c c 102 2</userinput>
&prompt.root; <userinput>mknod /dev/fla0c c 102 2</userinput>
&prompt.root; <userinput>disklabel -e /dev/fla0c</userinput></screen></para></entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>� ���� ������ �� ������� � �������� vi ��-��� ������� disklabel.
���� �� ����������� Disk-On-Chip, �� ������ ����� ����� ���������
�������� ���� ����� ������ ����� � <literal>ESDI</literal> ��
<literal>DOC2K</literal>. �����, ��� ����������� �� ����,
����������� �� �� Disk-On-Chip ��� ����������� � ATA ����������
����-��������, ��� ����� �������� ������ a: � ����� �����. ���
������ <literal>a:</literal> ������ ��������� �������� ���:</para>
<programlisting>
a: <replaceable>123456</replaceable> 0 4.2BSD 0 0
</programlisting>
<para>����� <replaceable>123456</replaceable> �������� ������, �
�������� ����������� � ���, ��� ������������� ������ ���������
������ ��� <literal>c:</literal>. � �����, �� ��������� ������������
������ ��� <literal>c:</literal> ��� ������ <literal>a:</literal>,
�� ������� ���������� fstype ��� <literal>4.2BSD</literal>.
��������� ���� � ��������� ��������������.</para>
<informaltable frame="none">
<tgroup cols="2">
<thead>
<row>
<entry align="center">����������� � ATA</entry>
<entry align="center">Disk-On-Chip</entry>
</row>
</thead>
<tbody>
<row>
<entry><para><screen>&prompt.root; <userinput>disklabel -B -r /dev/ad0c</userinput>
&prompt.root; <userinput>newfs /dev/ad0a</userinput></screen></para></entry>
<entry><para><screen>&prompt.root; <userinput>disklabel -B -r /dev/fla0c</userinput>
&prompt.root; <userinput>newfs /dev/fla0a</userinput></screen></para></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</step>
<step>
<title>���������� ����� �������� ������� �� ����-��������</title>
<para>����������� ������ ��� �������������� ����-��������:</para>
<informaltable frame="none">
<tgroup cols="2">
<thead>
<row>
<entry align="center">����������� � ATA</entry>
<entry align="center">Disk-On-Chip</entry>
</row>
</thead>
<tbody>
<row>
<entry><para><screen>&prompt.root; <userinput>mount /dev/ad0a /flash</userinput></screen></para></entry>
<entry><para><screen>&prompt.root; <userinput>mount /dev/fla0 /flash</userinput></screen></para></entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>���������� ��� ������ � ����, ����� ����� ���� ��������� ���
tar-���� � ����������� ��� � �������� ������� �� ����-��������. ���
������ ����, ��� ��� ����� �������:</para>
<screen>
&prompt.root; <userinput>ifconfig xl0 192.168.0.10 netmask 255.255.255.0</userinput>
&prompt.root; <userinput>route add default 192.168.0.1</userinput>
</screen>
<para>������, ����� ������ ��������� � ����, ���������� ��� tar-����.
����� �� ������ ����������� � ��������� ��������� - ���� ����� �����
����-������ �����, � �������, 128 ����������, � ��� tar-����
��������� 64 ���������, �� �� �� ������ ������������ ����������
tar-���� �� ����-�������� � ����������� ��� - ��� �� ������ �����.
����� �� ������� ���� ��������, ���� �� ����������� ftp, ��������
���������� ����� �� ����� ��� �������� �� ftp. ���� �� ���������
���� ������ ���, �� �� ������� �� �������� �� ����� ������������
�������� ���� � ��� ����������:</para>
<screen>
<prompt>ftp></prompt> <userinput>get tarfile.tar "| tar xvf -"</userinput>
</screen>
<para>���� ��� ���� ��������� �������� gzip, �� ����� ������ �����
��������:</para>
<screen>
<prompt>ftp></prompt> <userinput>get tarfile.tar "| zcat | tar xvf -"</userinput>
</screen>
<para>����� ����, ��� �� �������� ���������� ����� ����������������
�������� ������� �� �������� ������� ����-������, �� ������
�������������� ����-������ � ��������� ������������:</para>
<screen>
&prompt.root; <userinput>cd /</userinput>
&prompt.root; <userinput>umount /flash</userinput>
&prompt.root; <userinput>exit</userinput>
</screen>
<para>�������, ��� �� ��������� ��������� ���� �������� ������� ���
�� ���������� �� ������� ����� (� ����� �������� ��������,
�������������� � ������ ������� ������ ��� ������ � ������������
�����������, ��������������� � ����) �� ������ ������� ��������� ����
������������ ������� �� ������ FreeBSD.</para>
</step>
</procedure>
</sect1>
<sect1 id="kern.flp">
<title>���������� ������������� ������� <filename>kern.flp</filename> �
��������� fla</title>
<note>
<para>���� ������ ������ ������������ ������ ���, ��� ����������
����-�������� M-Systems Disk-On-Chip.</para>
</note>
<para>��������, ��� �� ����������� ������� <filename>kern.flp</filename>
��� ���� �� ���������� ��������� <devicename>fla</devicename>, �������
��������� ��� ������ ������� � Disk-On-Chip. ���� �� ����������� �
������������ ������ � ���������, ��� ����� �� ���� ����������, ��,
��������, � ����� ���� ����������� �������
<devicename>fla</devicename>.</para>
<para>����� ���������� ���� ���� � ���������� <devicename>fla</devicename>,
������� ����� �����, �������, ��� 1.4 ��������, �� ������ �������
����������� ����� ������� <filename>kern.flp</filename> � ���� �����
� ������� ��������� ������������������ ��������:</para>
<procedure>
<step>
<para>�������� ������������ ���� ������ kern.flp</para>
</step>
<step>
<para>
<screen>
&prompt.root; <userinput>vnconfig vn0c kern.flp</userinput>
</screen>
</para>
</step>
<step>
<para>
<screen>
&prompt.root; <userinput>mount /dev/vn0c /mnt</userinput>
</screen>
</para>
</step>
<step>
<para>���������� ��� ���� ���� � ������� <filename>/mnt</filename>,
�������� ��� ���� ��� ����������� ��� ����</para>
</step>
<step>
<para>
<screen>
&prompt.root; <userinput>vnconfig -d vn0c</userinput>
</screen>
</para>
</step>
</procedure>
<para>������ � ����� ����� <filename>kern.flp</filename> ��������� �����
����.</para>
</sect1>
<sect1 id="strategies">
<title>��������� ������ � �������� ��� ������� ��������� � ���������
������ ��� ������ �������� ������</title>
<para>� <xref linkend="ro-fs"> ���� �������, ��� �������� �������
<filename>/var</filename>, ����������� ��������
<filename>/etc/rc.diskless2</filename> � ������� �������� ��������
�������, ��������� ������ ��� ������, �������� � ��������� ��� ������
������ ���������������� ����������� �������, ������������ �� FreeBSD.
� ���� ������ ����� ���� ������������ �� ��������� ���������� ������
cron � syslog, ��������� ������ � ���-������� Apache.</para>
<sect2>
<title>cron</title>
<para>� ����� <filename>/etc/rc.diskless2</filename> ������� ����������
<literal>var_dirs</literal>. ��� ���������� ������ ������ ���������,
����������� ��������, ������� ����� ������� � ��������
<filename>/var</filename> ����� ��� ������������ ��� �������� �������
� ������. <filename>cron</filename> � <filename>cron/tabs</filename>
� ���� ������ �� ������, � ��� ���� ��������� cron ��������� ��������
�� �����. ������� <literal>cron</literal>,
<literal>cron/tabs</literal> �, ����� ����, ���� <literal>at</literal>
� <literal>at/jobs</literal> � �������� ��������� ���� ����������, ��
���������� ������ �������� &man.cron.8; � &man.at.1;.</para>
<para>������ ��� ��� �� �� ����� �������� � ����������� cron-������
����� ��������������. ����� ������� ���������������, �� ��������
������� <filename>/var</filename>, ������� ������������� � ������,
����� ����������, ������ �� ����� cron-���������, ������� �� ����� ���
�����. ������� ����� �� ������� ����� ����� �������� cron-������ ���
�������������, ������� ��� �����, ������������ ����� �������� �������
<filename>/</filename> � ������ ������ � ������ � ����������� ����
cron-������ � ���������� �����, ��������,
<filename>/etc/tabs</filename> � ����������� ���������� ������ �
����� ������� <filename>/etc/rc.diskless2</filename> ��� �����������
���� cron-������ � ������� <filename>/var/cron/tabs</filename> �����
��� �������� �� ����� ������������� �������. ��� ����� �����
������������� �������� ������, ������� �������� ������ ������� �
����� �� ��������, ������� �� ������� � �� �����, ������� ��
����������� � ������� <filename>/etc/rc.diskless2</filename>.</para>
</sect2>
<sect2>
<title>syslog</title>
<para>� ����� <filename>syslog.conf</filename> ������ ��������������
��������� ������ ����������, ������� ������� � ��������
<filename>/var/log</filename>. ��� ����� �� ��������� ��������
<filename>/etc/rc.diskless2</filename> �� ����� ������������� �������
������� ���-������ � ������� <filename>/etc/rc.diskless2</filename>,
����� ������, ��������� �������� � <filename>/var</filename>, ��� �����
�������� ����� ����� ����������:</para>
<screen>
&prompt.root; <userinput>touch /var/log/security /var/log/maillog /var/log/cron /var/log/messages</userinput>
&prompt.root; <userinput>chmod 0644 /var/log/*</userinput>
</screen>
<para>��� ����� ����������� �������� ������� � ����������� ������ �
������ ���������, ����������� ��������
<filename>/etc/rc.diskless2</filename>.</para>
</sect2>
<sect2>
<title>��������� ������</title>
<para>����� ���, ��� �������� ���������, ������� ����� ������� ���
��������� ������������� ������ ������, ���������� ��������� � ���,
��� ���� �������� ������� �� ����-��������� �������� ������ ��� ������.
������� ��� ����� �������� ����������� �� � ������ ������ � ������,
��������� ��������� ��������� ������, ��� ��� �������� �
<xref linkend="ro-fs">. �� ������ ������ ��������������� ��� ��������
������� � ����� ������ ��� ������ ����� ��������� ����� - ������
��������� �� � ������ ������ � ������, ����� �� ���� ������� �� ����
������ ���������������� ��� �����-���� ������ ������� ���������
���������� ������ �� ����-������ � ������� ��.</para>
<para>����� ����� ���� ����� � ������� � ������� � ������� ���������
������� <command>make install</command>, ���������� ������� �����
<filename>/var/db/port.mkversion</filename>, � ������� ��������
���������� ����. ����� �� ������ ������� ������� ��� �������� �
�������� �������, �� ��������������� � ������, ��� ����� ���������
������� ����� ��������������. ��� ��� ��� ��������� ������� � �����
������ ��������� ������������ ����� �������� ������ ��� ������ �
������, ����� ����� �������� ������� ����-�������� ����� � ��� ������
���������� � �������.</para>
<para>������ ����� �������� ������� � ����� ������ � ��������. ������
��� ������� <filename>/var/db/pkg</filename>, �� �� �� ����� ����������
���� ������ �����, ��� ��� ��� �������� ����� ������������
�������.</para>
<screen>&prompt.root; <userinput>mkdir /etc/pkg</userinput></screen>
<para>������ � ������ <filename>/etc/rc.diskless2</filename> ��������
������, ������� ��������� ������� <filename>/etc/pkg</filename> �
<filename>/var/db/pkg</filename>. ��������:</para>
<screen>
&prompt.root; <userinput>ln -s /etc/pkg /var/db/pkg</userinput>
</screen>
<para>�������� � ������ <filename>/etc/rc.diskless2</filename> ��� ����
������, ������� ������� � ��������
<filename>/var/db/port.mkversion</filename></para>
<screen>
&prompt.root; <userinput>touch /var/db/port.mkversion</userinput>
&prompt.root; <userinput>chmod 0644 /var/db/port.mkversion</userinput>
&prompt.root; <userinput>echo <replaceable>20010412</replaceable> >> /var/db/port.mkversion</userinput>
</screen>
<para>��� <replaceable>20010412</replaceable> �������� �����,
��������������� ����� ������ FreeBSD.</para>
<para>������ ������ ��� ��� ������������ ����� �������� ������ ��� ������
� ������ � ��������� �������, ������� <command>make install</command>
����� ��������, ������ ��� ������ ���������� ����
<filename>/var/db/port.mkversion</filename>, � ���������� � �������
����� ������� �������� � ������� <filename>/etc/pkg</filename> (��� ���
�������� ������� ����� � ��� ����� ������������ ��� ������ � ������),
������� ������ ����� ��������� ������������ ������� ���
<filename>/var/db/pkg</filename>.</para>
</sect2>
<sect2>
<title>���-������ Apache</title>
<para>Apache ������ pid-����� � ��������� � ��������
<filename><replaceable>apache_install</replaceable>/logs</filename>.
��� ��� ���� �������, ��� ��������, ������������� �� �������� �������,
��������� ������ ��� ������, �� ��� �������� �� �����. ����������
�������� ����� ������� � ������ ��������� ��
<filename>/etc/rc.diskless2</filename> ��� �� �������� � ��������
<filename>/var</filename> � �������
<filename><replaceable>apache_install</replaceable>/logs</filename> �
<filename>/var/log/apache</filename>. ����� ����� ������ ����� �������
� ��������� ������ ��������.</para>
<para>������� �������� ������� <literal>log/apache</literal> � ������
���������, ����������� ��������
<filename>/etc/rc.diskless2</filename>.</para>
<para>����� �������� � ������ <filename>/etc/rc.diskless2</filename>
����� ������ �������� ��������� ����� �������:</para>
<screen>
&prompt.root; <userinput>chmod 0774 /var/log/apache</userinput>
&prompt.root; <userinput>chown nobody:nobody /var/log/apache</userinput>
</screen>
<para>� �������, ������� ������������ �������
<filename><replaceable>apache_install</replaceable>/logs</filename> �
�������� ��� �������:</para>
<screen>
&prompt.root; <userinput>rm -rf (apache_install)/logs</userinput>
&prompt.root; <userinput>ln -s /var/log/apache (apache_install)/logs</userinput>
</screen>
</sect2>
</sect1>
</article>