fstab.po 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:11
  20. msgid "Creating the /etc/fstab File"
  21. msgstr ""
  22. #. type: Content of: <sect1><indexterm><primary>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:14
  24. msgid "/etc/fstab"
  25. msgstr ""
  26. #. type: Content of: <sect1><para>
  27. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:17
  28. msgid ""
  29. "The <filename>/etc/fstab</filename> file is used by some programs to "
  30. "determine where file systems are to be mounted by default, in which order, "
  31. "and which must be checked (for integrity errors) prior to mounting. Create a "
  32. "new file systems table like this:"
  33. msgstr ""
  34. #. type: Content of: <sect1><screen>
  35. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:22
  36. #, no-wrap
  37. msgid ""
  38. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  39. "<literal># Begin /etc/fstab\n"
  40. "\n"
  41. "# file system mount-point type options dump fsck\n"
  42. "# order\n"
  43. "\n"
  44. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / "
  45. "<replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  46. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 "
  47. "0 0\n"
  48. "proc /proc proc nosuid,noexec,nodev 0 0\n"
  49. "sysfs /sys sysfs nosuid,noexec,nodev 0 0\n"
  50. "devpts /dev/pts devpts gid=5,mode=620 0 0\n"
  51. "tmpfs /run tmpfs defaults 0 0\n"
  52. "devtmpfs /dev devtmpfs mode=0755,nosuid 0 0\n"
  53. "\n"
  54. "# End /etc/fstab</literal>\n"
  55. "EOF</userinput>"
  56. msgstr ""
  57. #. type: Content of: <sect1><screen>
  58. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:39
  59. #, no-wrap
  60. msgid ""
  61. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  62. "<literal># Begin /etc/fstab\n"
  63. "\n"
  64. "# file system mount-point type options dump fsck\n"
  65. "# order\n"
  66. "\n"
  67. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / "
  68. "<replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  69. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 "
  70. "0 0\n"
  71. "\n"
  72. "# End /etc/fstab</literal>\n"
  73. "EOF</userinput>"
  74. msgstr ""
  75. #. type: Content of: <sect1><para>
  76. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:51
  77. msgid ""
  78. "Replace <replaceable>&lt;xxx&gt;</replaceable>, "
  79. "<replaceable>&lt;yyy&gt;</replaceable>, and "
  80. "<replaceable>&lt;fff&gt;</replaceable> with the values appropriate for the "
  81. "system, for example, <filename class=\"partition\">sda2</filename>, "
  82. "<filename class=\"partition\">sda5</filename>, and <systemitem "
  83. "class=\"filesystem\">ext4</systemitem>. For details on the six fields in "
  84. "this file, see <command>man 5 fstab</command>."
  85. msgstr ""
  86. #. type: Content of: <sect1><para>
  87. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:59
  88. msgid ""
  89. "Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs, cifs, "
  90. "iso9660, udf) need a special option, utf8, in order for non-ASCII characters "
  91. "in file names to be interpreted properly. For non-UTF-8 locales, the value "
  92. "of <option>iocharset</option> should be set to be the same as the character "
  93. "set of the locale, adjusted in such a way that the kernel understands it. "
  94. "This works if the relevant character set definition (found under File "
  95. "systems -&gt; Native Language Support when configuring the kernel) has been "
  96. "compiled into the kernel or built as a module. However, if the character set "
  97. "of the locale is UTF-8, the corresponding option "
  98. "<option>iocharset=utf8</option> would make the file system case "
  99. "sensitive. To fix this, use the special option <option>utf8</option> instead "
  100. "of <option>iocharset=utf8</option>, for UTF-8 locales. The "
  101. "<quote>codepage</quote> option is also needed for vfat and smbfs "
  102. "filesystems. It should be set to the codepage number used under MS-DOS in "
  103. "your country. For example, in order to mount USB flash drives, a "
  104. "ru_RU.KOI8-R user would need the following in the options portion of its "
  105. "mount line in <filename>/etc/fstab</filename>:"
  106. msgstr ""
  107. #. type: Content of: <sect1><screen>
  108. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:77
  109. #, no-wrap
  110. msgid "<literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal>"
  111. msgstr ""
  112. #. type: Content of: <sect1><para>
  113. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:79
  114. msgid "The corresponding options fragment for ru_RU.UTF-8 users is:"
  115. msgstr ""
  116. #. type: Content of: <sect1><screen>
  117. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:81
  118. #, no-wrap
  119. msgid "<literal>noauto,user,quiet,showexec,codepage=866,utf8</literal>"
  120. msgstr ""
  121. #. type: Content of: <sect1><para>
  122. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:83
  123. msgid ""
  124. "Note that using <option>iocharset</option> is the default for "
  125. "<literal>iso8859-1</literal> (which keeps the file system case insensitive), "
  126. "and the <option>utf8</option> option tells the kernel to convert the file "
  127. "names using UTF-8 so they can be interpreted in the UTF-8 locale."
  128. msgstr ""
  129. #. type: Content of: <sect1><para>
  130. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:100
  131. msgid ""
  132. "It is also possible to specify default codepage and iocharset values for "
  133. "some filesystems during kernel configuration. The relevant parameters are "
  134. "named <quote>Default NLS Option</quote> "
  135. "(<option>CONFIG_NLS_DEFAULT)</option>, <quote>Default Remote NLS "
  136. "Option</quote> (<option>CONFIG_SMB_NLS_DEFAULT</option>), <quote>Default "
  137. "codepage for FAT</quote> (<option>CONFIG_FAT_DEFAULT_CODEPAGE</option>), and "
  138. "<quote>Default iocharset for FAT</quote> "
  139. "(<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>). There is no way to specify "
  140. "these settings for the ntfs filesystem at kernel compilation time."
  141. msgstr ""
  142. #. type: Content of: <sect1><para>
  143. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:110
  144. msgid ""
  145. "It is possible to make the ext3 filesystem reliable across power failures "
  146. "for some hard disk types. To do this, add the <option>barrier=1</option> "
  147. "mount option to the appropriate entry in <filename>/etc/fstab</filename>. "
  148. "To check if the disk drive supports this option, run <ulink "
  149. "url=\"&blfs-book;general/hdparm.html\">hdparm</ulink> on the applicable disk "
  150. "drive. For example, if:"
  151. msgstr ""
  152. #. type: Content of: <sect1><screen>
  153. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:118
  154. #, no-wrap
  155. msgid "<userinput>hdparm -I /dev/sda | grep NCQ</userinput>"
  156. msgstr ""
  157. #. type: Content of: <sect1><para>
  158. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:120
  159. msgid "returns non-empty output, the option is supported."
  160. msgstr ""
  161. #. type: Content of: <sect1><para>
  162. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/fstab.xml:122
  163. msgid ""
  164. "Note: Logical Volume Management (LVM) based partitions cannot use the "
  165. "<option>barrier</option> option."
  166. msgstr ""