kernfs.po 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/chapter07/kernfs.xml:11
  20. msgid "Preparing Virtual Kernel File Systems"
  21. msgstr ""
  22. #. type: Content of: <sect1><indexterm><primary>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:14
  24. msgid "/dev/*"
  25. msgstr ""
  26. #. type: Content of: <sect1><para>
  27. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:17
  28. msgid ""
  29. "Various file systems exported by the kernel are used to communicate to and "
  30. "from the kernel itself. These file systems are virtual in that no disk space "
  31. "is used for them. The content of the file systems resides in memory."
  32. msgstr ""
  33. #. type: Content of: <sect1><para>
  34. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:22
  35. msgid "Begin by creating directories onto which the file systems will be mounted:"
  36. msgstr ""
  37. #. type: Content of: <sect1><screen>
  38. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:25
  39. #, no-wrap
  40. msgid "<userinput>mkdir -pv $LFS/{dev,proc,sys,run}</userinput>"
  41. msgstr ""
  42. #. type: Content of: <sect1><sect2><title>
  43. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:28
  44. msgid "Creating Initial Device Nodes"
  45. msgstr ""
  46. #. type: Content of: <sect1><sect2><para>
  47. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:30
  48. msgid ""
  49. "When the kernel boots the system, it requires the presence of a few device "
  50. "nodes, in particular the <filename class=\"devicefile\">console</filename> "
  51. "and <filename class=\"devicefile\">null</filename> devices. The device nodes "
  52. "must be created on the hard disk so that they are available before the "
  53. "kernel populates <systemitem class=\"filesystem\">/dev</systemitem>), and "
  54. "additionally when Linux is started with "
  55. "<parameter>init=/bin/bash</parameter>. Create the devices by running the "
  56. "following commands:"
  57. msgstr ""
  58. #. type: Content of: <sect1><sect2><screen>
  59. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:40
  60. #, no-wrap
  61. msgid ""
  62. "<userinput>mknod -m 600 $LFS/dev/console c 5 1\n"
  63. "mknod -m 666 $LFS/dev/null c 1 3</userinput>"
  64. msgstr ""
  65. #. type: Content of: <sect1><sect2><title>
  66. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:46
  67. msgid "Mounting and Populating /dev"
  68. msgstr ""
  69. #. type: Content of: <sect1><sect2><para>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:48
  71. msgid ""
  72. "The recommended method of populating the <filename "
  73. "class=\"directory\">/dev</filename> directory with devices is to mount a "
  74. "virtual filesystem (such as <systemitem "
  75. "class=\"filesystem\">tmpfs</systemitem>) on the <filename "
  76. "class=\"directory\">/dev</filename> directory, and allow the devices to be "
  77. "created dynamically on that virtual filesystem as they are detected or "
  78. "accessed. Device creation is generally done during the boot process by "
  79. "Udev. Since this new system does not yet have Udev and has not yet been "
  80. "booted, it is necessary to mount and populate <filename "
  81. "class=\"directory\">/dev</filename> manually. This is accomplished by bind "
  82. "mounting the host system's <filename class=\"directory\">/dev</filename> "
  83. "directory. A bind mount is a special type of mount that allows you to create "
  84. "a mirror of a directory or mount point to some other location. Use the "
  85. "following command to achieve this:"
  86. msgstr ""
  87. #. type: Content of: <sect1><sect2><screen>
  88. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:63
  89. #, no-wrap
  90. msgid "<userinput>mount -v --bind /dev $LFS/dev</userinput>"
  91. msgstr ""
  92. #. type: Content of: <sect1><sect2><title>
  93. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:68
  94. msgid "Mounting Virtual Kernel File Systems"
  95. msgstr ""
  96. #. type: Content of: <sect1><sect2><para>
  97. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:70
  98. msgid "Now mount the remaining virtual kernel filesystems:"
  99. msgstr ""
  100. #. type: Content of: <sect1><sect2><screen>
  101. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:72
  102. #, no-wrap
  103. msgid ""
  104. "<userinput>mount -v --bind /dev/pts $LFS/dev/pts\n"
  105. "mount -vt proc proc $LFS/proc\n"
  106. "mount -vt sysfs sysfs $LFS/sys\n"
  107. "mount -vt tmpfs tmpfs $LFS/run</userinput>"
  108. msgstr ""
  109. #. type: Content of: <sect1><sect2><para>
  110. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:105
  111. msgid ""
  112. "In some host systems, <filename>/dev/shm</filename> is a symbolic link to "
  113. "<filename class=\"directory\">/run/shm</filename>. The /run tmpfs was "
  114. "mounted above so in this case only a directory needs to be created."
  115. msgstr ""
  116. #. type: Content of: <sect1><sect2><screen>
  117. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/kernfs.xml:110
  118. #, no-wrap
  119. msgid ""
  120. "<userinput>if [ -h $LFS/dev/shm ]; then\n"
  121. " mkdir -pv $LFS/$(readlink $LFS/dev/shm)\n"
  122. "fi</userinput>"
  123. msgstr ""