fstab.po 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. msgid ""
  2. msgstr ""
  3. "X-Pootle-Revision: 9999999\n"
  4. "X-Pootle-Path: /zh_CN/lfs/chapter10/fstab.po\n"
  5. "Project-Id-Version: PACKAGE VERSION\n"
  6. "POT-Creation-Date: 2020-08-08 19:28+0800\n"
  7. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  8. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  9. "Language-Team: LANGUAGE <LL@li.org>\n"
  10. "Language: zh_CN\n"
  11. "MIME-Version: 1.0\n"
  12. "Content-Type: text/plain; charset=UTF-8\n"
  13. "Content-Transfer-Encoding: 8bit\n"
  14. "X-Generator: Translate Toolkit 2.2.5\n"
  15. #. type: Content of: <sect1><title>
  16. msgid "Creating the /etc/fstab File"
  17. msgstr "创建 /etc/fstab 文件"
  18. #. type: Content of: <sect1><indexterm><primary>
  19. msgid "/etc/fstab"
  20. msgstr "/etc/fstab"
  21. #. type: Content of: <sect1><para>
  22. msgid ""
  23. "The <filename>/etc/fstab</filename> file is used by some programs to "
  24. "determine where file systems are to be mounted by default, in which order, "
  25. "and which must be checked (for integrity errors) prior to mounting. Create a "
  26. "new file systems table like this:"
  27. msgstr ""
  28. "一些程序使用 <filename>/etc/fstab</filename> 文件,以确定哪些文件系统是默认挂"
  29. "载的,和它们应该按什么顺序挂载,以及哪些文件系统在挂载前必须被检查 (确定是否"
  30. "有完整性错误)。参考以下命令,创建一个新的文件系统表:"
  31. #. type: Content of: <sect1><screen>
  32. #, no-wrap
  33. msgid ""
  34. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  35. "<literal># Begin /etc/fstab\n"
  36. "\n"
  37. "# file system mount-point type options dump fsck\n"
  38. "# order\n"
  39. "\n"
  40. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / <replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  41. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 0 0\n"
  42. "proc /proc proc nosuid,noexec,nodev 0 0\n"
  43. "sysfs /sys sysfs nosuid,noexec,nodev 0 0\n"
  44. "devpts /dev/pts devpts gid=5,mode=620 0 0\n"
  45. "tmpfs /run tmpfs defaults 0 0\n"
  46. "devtmpfs /dev devtmpfs mode=0755,nosuid 0 0\n"
  47. "\n"
  48. "# End /etc/fstab</literal>\n"
  49. "EOF</userinput>"
  50. msgstr ""
  51. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  52. "<literal># Begin /etc/fstab\n"
  53. "\n"
  54. "# 文件系统 挂载点 类型 选项 转储 检查\n"
  55. "# 顺序\n"
  56. "\n"
  57. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / <replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  58. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 0 0\n"
  59. "proc /proc proc nosuid,noexec,nodev 0 0\n"
  60. "sysfs /sys sysfs nosuid,noexec,nodev 0 0\n"
  61. "devpts /dev/pts devpts gid=5,mode=620 0 0\n"
  62. "tmpfs /run tmpfs defaults 0 0\n"
  63. "devtmpfs /dev devtmpfs mode=0755,nosuid 0 0\n"
  64. "\n"
  65. "# End /etc/fstab</literal>\n"
  66. "EOF</userinput>"
  67. #. type: Content of: <sect1><screen>
  68. #, no-wrap
  69. msgid ""
  70. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  71. "<literal># Begin /etc/fstab\n"
  72. "\n"
  73. "# file system mount-point type options dump fsck\n"
  74. "# order\n"
  75. "\n"
  76. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / <replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  77. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 0 0\n"
  78. "\n"
  79. "# End /etc/fstab</literal>\n"
  80. "EOF</userinput>"
  81. msgstr ""
  82. "<userinput>cat &gt; /etc/fstab &lt;&lt; \"EOF\"\n"
  83. "<literal># Begin /etc/fstab\n"
  84. "\n"
  85. "# 文件系统 挂载点 类型 选项 转储 检查\n"
  86. "# 顺序\n"
  87. "\n"
  88. "/dev/<replaceable>&lt;xxx&gt;</replaceable> / <replaceable>&lt;fff&gt;</replaceable> defaults 1 1\n"
  89. "/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 0 0\n"
  90. "\n"
  91. "# End /etc/fstab</literal>\n"
  92. "EOF</userinput>"
  93. #. type: Content of: <sect1><para>
  94. msgid ""
  95. "Replace <replaceable>&lt;xxx&gt;</replaceable>, <replaceable>&lt;yyy&gt;</"
  96. "replaceable>, and <replaceable>&lt;fff&gt;</replaceable> with the values "
  97. "appropriate for the system, for example, <filename class=\"partition\">sda2</"
  98. "filename>, <filename class=\"partition\">sda5</filename>, and <systemitem "
  99. "class=\"filesystem\">ext4</systemitem>. For details on the six fields in "
  100. "this file, see <command>man 5 fstab</command>."
  101. msgstr ""
  102. "将 <replaceable>&lt;xxx&gt;</replaceable>、<replaceable>&lt;yyy&gt;</"
  103. "replaceable> 和 <replaceable>&lt;fff&gt;</replaceable> 替换为适用于您的系统的"
  104. "值,例如 <filename class=\"partition\">sda2</filename>、<filename class="
  105. "\"partition\">sda5</filename> 和 <systemitem class=\"filesystem\">ext4</"
  106. "systemitem>。参阅 <command>man 5 fstab</command> 了解该文件中 6 个域的详细信"
  107. "息。"
  108. #. type: Content of: <sect1><para>
  109. msgid ""
  110. "Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs, cifs, "
  111. "iso9660, udf) need a special option, utf8, in order for non-ASCII characters "
  112. "in file names to be interpreted properly. For non-UTF-8 locales, the value "
  113. "of <option>iocharset</option> should be set to be the same as the character "
  114. "set of the locale, adjusted in such a way that the kernel understands it. "
  115. "This works if the relevant character set definition (found under File "
  116. "systems -&gt; Native Language Support when configuring the kernel) has been "
  117. "compiled into the kernel or built as a module. However, if the character set "
  118. "of the locale is UTF-8, the corresponding option <option>iocharset=utf8</"
  119. "option> would make the file system case sensitive. To fix this, use the "
  120. "special option <option>utf8</option> instead of <option>iocharset=utf8</"
  121. "option>, for UTF-8 locales. The <quote>codepage</quote> option is also "
  122. "needed for vfat and smbfs filesystems. It should be set to the codepage "
  123. "number used under MS-DOS in your country. For example, in order to mount "
  124. "USB flash drives, a ru_RU.KOI8-R user would need the following in the "
  125. "options portion of its mount line in <filename>/etc/fstab</filename>:"
  126. msgstr ""
  127. "在挂载来源于 MS-DOS 或 Windows 的文件系统 (如 vfat、ntfs、smbfs、cifs、"
  128. "iso9660、udf) 时,需要一个特殊的挂载选项 —— utf8,才能正常解析文件名中的非 "
  129. "ASCII 字符。对于非 UTF-8 locale,选项 <option>iocharset</option> 的值应该和您"
  130. "的 locale 字符集设定一致,但改写成内核可以识别的写法。该选项能够正常工作的前"
  131. "提是,将相关的字符集定义 (在内核配置选项的 File Systems -&gt; Native "
  132. "Language Support 子菜单中) 编译到内核中,或构建为内核模块。然而,如果使用了 "
  133. "UTF-8 locale,对应的 <option>iocharset=utf8</option> 会导致文件系统变得大小写"
  134. "敏感。为了避免这个问题,在使用 UTF-8 locale 时,需要用特殊选项 <option>utf8</"
  135. "option> 代替 <option>iocharset=utf8</option>。另外,vfat 和 smbfs 文件系统还"
  136. "需要<quote>codepage</quote>选项,它应该被设定为您的语言在 MS-DOS 下的代码页编"
  137. "号。例如,为了挂载一个 USB 闪存盘,一个 ru_RU.KOI8-R 用户应该在 <filename>/"
  138. "etc/fstab</filename> 中对应于闪存盘的行添加下列挂载选项:"
  139. #. type: Content of: <sect1><screen>
  140. #, no-wrap
  141. msgid "<literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal>"
  142. msgstr "<literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal>"
  143. #. type: Content of: <sect1><para>
  144. msgid "The corresponding options fragment for ru_RU.UTF-8 users is:"
  145. msgstr "相应的,ru_RU.UTF-8 用户应该使用下列选项:"
  146. #. type: Content of: <sect1><screen>
  147. #, no-wrap
  148. msgid "<literal>noauto,user,quiet,showexec,codepage=866,utf8</literal>"
  149. msgstr "<literal>noauto,user,quiet,showexec,codepage=866,utf8</literal>"
  150. #. type: Content of: <sect1><para>
  151. msgid ""
  152. "Note that using <option>iocharset</option> is the default for "
  153. "<literal>iso8859-1</literal> (which keeps the file system case insensitive), "
  154. "and the <option>utf8</option> option tells the kernel to convert the file "
  155. "names using UTF-8 so they can be interpreted in the UTF-8 locale."
  156. msgstr ""
  157. "注意此时使用的 <option>iocharset</option> 默认为 <literal>iso8859-1</"
  158. "literal> (这保证文件系统是大小写不敏感的),而 <option>utf8</option> 选项告诉"
  159. "内核使用 UTF-8 编码转换文件名,这样它们就能在 UTF-8 locale 中被正确解析。"
  160. #. type: Content of: <sect1><para>
  161. msgid ""
  162. "It is also possible to specify default codepage and iocharset values for "
  163. "some filesystems during kernel configuration. The relevant parameters are "
  164. "named <quote>Default NLS Option</quote> (<option>CONFIG_NLS_DEFAULT)</"
  165. "option>, <quote>Default Remote NLS Option</quote> "
  166. "(<option>CONFIG_SMB_NLS_DEFAULT</option>), <quote>Default codepage for FAT</"
  167. "quote> (<option>CONFIG_FAT_DEFAULT_CODEPAGE</option>), and <quote>Default "
  168. "iocharset for FAT</quote> (<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>). "
  169. "There is no way to specify these settings for the ntfs filesystem at kernel "
  170. "compilation time."
  171. msgstr ""
  172. "也可以在内核配置中,为一些文件系统指定默认 codepage 和 iocharset 选项值。相关"
  173. "的配置参数名为<quote>Default NLS Option</quote> (<option>CONFIG_NLS_DEFAULT</"
  174. "option>),<quote>Default Remote NLS Option</quote> "
  175. "(<option>CONFIG_SMB_NLS_DEFAULT</option>),<quote>Default codepage for FAT</"
  176. "quote> (<option>CONFIG_FAT_DEFAULT_CODEPAGE</option>),以及 <quote>Default "
  177. "iocharset for FAT</quote> (<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>)。无"
  178. "法在编译内核时为 ntfs 文件系统指定这些默认值。"
  179. #. type: Content of: <sect1><para>
  180. msgid ""
  181. "It is possible to make the ext3 filesystem reliable across power failures "
  182. "for some hard disk types. To do this, add the <option>barrier=1</option> "
  183. "mount option to the appropriate entry in <filename>/etc/fstab</filename>. "
  184. "To check if the disk drive supports this option, run <ulink url=\"&blfs-book;"
  185. "general/hdparm.html\">hdparm</ulink> on the applicable disk drive. For "
  186. "example, if:"
  187. msgstr ""
  188. "在某些硬盘上,通过将 <option>barrier=1</option> 挂载选项加入 <filename>/etc/"
  189. "fstab</filename>,可以使得 ext3 文件系统在发生电源故障时更可靠。为了检查磁盘"
  190. "驱动器是否支持该选项,在可用的磁盘驱动器上运行 <ulink url=\"&blfs-book;"
  191. "general/hdparm.html\">hdparm</ulink>。例如:"
  192. #. type: Content of: <sect1><screen>
  193. #, no-wrap
  194. msgid "<userinput>hdparm -I /dev/sda | grep NCQ</userinput>"
  195. msgstr "<userinput>hdparm -I /dev/sda | grep NCQ</userinput>"
  196. #. type: Content of: <sect1><para>
  197. msgid "returns non-empty output, the option is supported."
  198. msgstr "如果输出内容不为空,说明该选项可用。"
  199. #. type: Content of: <sect1><para>
  200. msgid ""
  201. "Note: Logical Volume Management (LVM) based partitions cannot use the "
  202. "<option>barrier</option> option."
  203. msgstr ""
  204. "注意:基于逻辑卷管理 (LVM) 的分区不能使用 <option>barrier</option> 选项。"