mirror of
https://github.com/Poltern/lfs-ru.git
synced 2024-10-18 11:50:21 +03:00
Added fstab translation
This commit is contained in:
parent
5a97f3f756
commit
484f2de94c
@ -14,10 +14,10 @@
|
|||||||
<primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
<primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
|
||||||
<para>The <filename>/etc/fstab</filename> file is used by some programs to
|
<para>Файл <filename>/etc/fstab</filename> используется некоторыми программами для определения
|
||||||
determine where file systems are to be mounted by default, in which order, and
|
того, какие файловые системы должны монтироваться по умолчанию, в каком порядке и какие из них должны
|
||||||
which must be checked (for integrity errors) prior to mounting. Create a new
|
быть проверены (на наличие ошибок целостности) перед монтированием. Создайте новую таблицу файловых
|
||||||
file systems table like this:</para>
|
систем следующим образом:</para>
|
||||||
|
|
||||||
<screen revision="sysv"><userinput>cat > /etc/fstab << "EOF"
|
<screen revision="sysv"><userinput>cat > /etc/fstab << "EOF"
|
||||||
<literal># Begin /etc/fstab
|
<literal># Begin /etc/fstab
|
||||||
@ -48,43 +48,39 @@ EOF</userinput></screen>
|
|||||||
# End /etc/fstab</literal>
|
# End /etc/fstab</literal>
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>Replace <replaceable><xxx></replaceable>,
|
<para>Замените <replaceable><xxx></replaceable>,
|
||||||
<replaceable><yyy></replaceable>, and <replaceable><fff></replaceable>
|
<replaceable><yyy></replaceable>, и <replaceable><fff></replaceable>
|
||||||
with the values appropriate for the system, for example, <filename
|
подходящими для системы значениями, например, <filename
|
||||||
class="partition">sda2</filename>, <filename
|
class="partition">sda2</filename>, <filename
|
||||||
class="partition">sda5</filename>, and <systemitem
|
class="partition">sda5</filename>, и <systemitem
|
||||||
class="filesystem">ext4</systemitem>. For details on the six
|
class="filesystem">ext4</systemitem>. Для получения подробной информации о параметрах в этом
|
||||||
fields in this file, see <command>man 5 fstab</command>.</para>
|
файле, смотрите <command>man 5 fstab</command>.</para>
|
||||||
|
|
||||||
<para>Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs,
|
<para>Файловым системам операционных систем MS DOS и Windows (таким как vfat, ntfs, smbfs,
|
||||||
cifs, iso9660, udf) need a special option, utf8, in order for non-ASCII
|
cifs, iso9660, udf) требуется специальная опция utf8, чтобы не-ASCII символы в именах файлов
|
||||||
characters in file names to be interpreted properly. For non-UTF-8 locales,
|
интерпретировались правильно. Для локалей, отличных от UTF-8, значение <option>iocharset</option>
|
||||||
the value of <option>iocharset</option> should be set to be the same as the
|
должно быть таким же, как набор символов локали и настроенно так, чтобы ядро понимало его.
|
||||||
character set of the locale, adjusted in such a way that the kernel
|
Это будет работать, если соответствующее определение набора символов (находится
|
||||||
understands it. This works if the relevant character set definition (found
|
в разделе File systems -> Native Language Support при настройке ядра) было скомпилировано в ядро
|
||||||
under File systems -> Native Language Support when configuring the kernel)
|
или собрано как модуль. Однако, если набор символов локали — UTF-8, параметр
|
||||||
has been compiled into the kernel or built as a module. However, if the
|
<option>iocharset=utf8</option> сделает файловую систему чувствительной к регистру. Чтобы
|
||||||
character set of the locale is UTF-8, the corresponding option
|
исправить это, используйте специальную опцию <option>utf8</option> вместо
|
||||||
<option>iocharset=utf8</option> would make the file system case sensitive. To
|
<option>iocharset=utf8</option> для локалей UTF-8. Параметр
|
||||||
fix this, use the special option <option>utf8</option> instead of
|
<quote>codepage</quote> также необходим для файловых систем vfat и smbfs. Он должен быть установлен
|
||||||
<option>iocharset=utf8</option>, for UTF-8 locales. The
|
на номер кодовой страницы, используемый в MS-DOS в вашей стране. Например, для монтирования флешек
|
||||||
<quote>codepage</quote> option is also needed for vfat and smbfs filesystems.
|
пользователь локали ru_RU.KOI8-R должен установить следующие значения в группе параметров его строки монтирования в
|
||||||
It should be set to the codepage number used under MS-DOS in your country.
|
|
||||||
For example, in order to mount USB flash drives, a ru_RU.KOI8-R user would
|
|
||||||
need the following in the options portion of its mount line in
|
|
||||||
<filename>/etc/fstab</filename>:</para>
|
<filename>/etc/fstab</filename>:</para>
|
||||||
|
|
||||||
<screen><literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal></screen>
|
<screen><literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal></screen>
|
||||||
|
|
||||||
<para>The corresponding options fragment for ru_RU.UTF-8 users is:</para>
|
<para>Соответствующий фрагмент параметров для пользователей ru_RU.UTF-8 выглядит следующим образом:</para>
|
||||||
|
|
||||||
<screen><literal>noauto,user,quiet,showexec,codepage=866,utf8</literal></screen>
|
<screen><literal>noauto,user,quiet,showexec,codepage=866,utf8</literal></screen>
|
||||||
|
|
||||||
<para>Note that using <option>iocharset</option> is the default for
|
<para>Обратите внимание, что <option>iocharset</option> используется по умолчанию для
|
||||||
<literal>iso8859-1</literal> (which keeps the file system case
|
<literal>iso8859-1</literal> (которая сохраняет файловую систему
|
||||||
insensitive), and the <option>utf8</option> option tells
|
нечувствительной к регистру), а параметр <option>utf8</option> указывает ядру, что нужно
|
||||||
the kernel to convert the file names using UTF-8 so they can be
|
преобразовать имена файлов с использованием UTF-8, чтобы их можно было интерпретировать в локали UTF-8.</para>
|
||||||
interpreted in the UTF-8 locale.</para>
|
|
||||||
|
|
||||||
<!--note>
|
<!--note>
|
||||||
<para>In the latter case, the kernel emits the following message:</para>
|
<para>In the latter case, the kernel emits the following message:</para>
|
||||||
@ -97,29 +93,25 @@ EOF</userinput></screen>
|
|||||||
UTF-8 locales.</para>
|
UTF-8 locales.</para>
|
||||||
</note-->
|
</note-->
|
||||||
|
|
||||||
<para>It is also possible to specify default codepage and iocharset values for
|
<para>Также возможно указать значения кодовой страницы по умолчанию и iocharset для некоторых
|
||||||
some filesystems during kernel configuration. The relevant parameters
|
файловых систем во время настройки ядра. Соответствующие параметры называются
|
||||||
are named
|
|
||||||
<quote>Default NLS Option</quote> (<option>CONFIG_NLS_DEFAULT)</option>,
|
<quote>Default NLS Option</quote> (<option>CONFIG_NLS_DEFAULT)</option>,
|
||||||
<quote>Default Remote NLS Option</quote> (<option>CONFIG_SMB_NLS_DEFAULT</option>),
|
<quote>Default Remote NLS Option</quote> (<option>CONFIG_SMB_NLS_DEFAULT</option>),
|
||||||
<quote>Default codepage for FAT</quote> (<option>CONFIG_FAT_DEFAULT_CODEPAGE</option>), and
|
<quote>Default codepage for FAT</quote> (<option>CONFIG_FAT_DEFAULT_CODEPAGE</option>), и
|
||||||
<quote>Default iocharset for FAT</quote> (<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>).
|
<quote>Default iocharset for FAT</quote> (<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>).
|
||||||
There is no way to specify these settings for the
|
Нет возможности указать эти параметры для файловой системы ntfs во время компиляции ядра.</para>
|
||||||
ntfs filesystem at kernel compilation time.</para>
|
|
||||||
|
|
||||||
<para>It is possible to make the ext3 filesystem reliable across power
|
<para>Для некоторых типов жестких дисков можно сделать файловую систему ext3 более устойчивой к
|
||||||
failures for some hard disk types. To do this, add the
|
сбоям питания. Чтобы сделать это, добавьте параметр <option>barrier=1</option> к соответствующей записи в
|
||||||
<option>barrier=1</option> mount option to the appropriate entry in
|
<filename>/etc/fstab</filename>. Чтобы проверить, поддерживает ли диск эту опцию, запустите
|
||||||
<filename>/etc/fstab</filename>. To check if the disk drive supports
|
|
||||||
this option, run
|
|
||||||
<ulink url="&blfs-book;general/hdparm.html">hdparm</ulink>
|
<ulink url="&blfs-book;general/hdparm.html">hdparm</ulink>
|
||||||
on the applicable disk drive. For example, if:</para>
|
на соответствуюшем разделе. Например, если:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>hdparm -I /dev/sda | grep NCQ</userinput></screen>
|
<screen role="nodump"><userinput>hdparm -I /dev/sda | grep NCQ</userinput></screen>
|
||||||
|
|
||||||
<para>returns non-empty output, the option is supported.</para>
|
<para>возвращает непустой вывод, опция поддерживается.</para>
|
||||||
|
|
||||||
<para>Note: Logical Volume Management (LVM) based partitions cannot use the
|
<para>Примечание: разделы на основе управления логическими томами (LVM) не могут использовать параметр
|
||||||
<option>barrier</option> option.</para>
|
<option>barrier</option>.</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -8,11 +8,10 @@
|
|||||||
<sect1 id="ch-bootable-introduction">
|
<sect1 id="ch-bootable-introduction">
|
||||||
<?dbhtml filename="introduction.html"?>
|
<?dbhtml filename="introduction.html"?>
|
||||||
|
|
||||||
<title>Introduction</title>
|
<title>Введение</title>
|
||||||
|
|
||||||
<para>It is time to make the LFS system bootable. This chapter
|
<para>Пришло время сделать систему LFS загрузочной. В этой главе обсуждается создание
|
||||||
discusses creating the <filename>/etc/fstab</filename> file, building a
|
файла <filename>/etc/fstab</filename>, сборка ядра для новой системы и установка
|
||||||
kernel for the new LFS system, and installing the GRUB boot loader so
|
загрузчика GRUB, чтобы система LFS могла быть выбрана для загрузки при запуске.</para>
|
||||||
that the LFS system can be selected for booting at startup.</para>
|
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user