grub.po 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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><sect1info><address>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:14
  20. #, no-wrap
  21. msgid "&grub-url;"
  22. msgstr ""
  23. #. type: Content of: <sect1><sect1info>
  24. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:12
  25. msgid ""
  26. "<productname>grub</productname> "
  27. "<productnumber>&grub-version;</productnumber> <placeholder type=\"address\" "
  28. "id=\"0\"/>"
  29. msgstr ""
  30. #. type: Content of: <sect1><title>
  31. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:17
  32. msgid "Using GRUB to Set Up the Boot Process"
  33. msgstr ""
  34. #. type: Content of: <sect1><sect2><title>
  35. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:20
  36. msgid "Introduction"
  37. msgstr ""
  38. #. type: Content of: <sect1><sect2><warning><para>
  39. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:22
  40. msgid ""
  41. "Configuring GRUB incorrectly can render your system inoperable without an "
  42. "alternate boot device such as a CD-ROM or bootable USB drive. This section "
  43. "is not required to boot your LFS system. You may just want to modify your "
  44. "current boot loader, e.g. Grub-Legacy, GRUB2, or LILO."
  45. msgstr ""
  46. #. type: Content of: <sect1><sect2><para>
  47. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:28
  48. msgid ""
  49. "Ensure that an emergency boot disk is ready to <quote>rescue</quote> the "
  50. "computer if the computer becomes unusable (un-bootable). If you do not "
  51. "already have a boot device, you can create one. In order for the procedure "
  52. "below to work, you need to jump ahead to BLFS and install "
  53. "<userinput>xorriso</userinput> from the <ulink "
  54. "url=\"&blfs-book;multimedia/libisoburn.html\"> libisoburn</ulink> package."
  55. msgstr ""
  56. #. type: Content of: <sect1><sect2><screen>
  57. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:36
  58. #, no-wrap
  59. msgid ""
  60. "<userinput>cd /tmp \n"
  61. "grub-mkrescue --output=grub-img.iso \n"
  62. "xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed "
  63. "grub-img.iso</userinput>"
  64. msgstr ""
  65. #. type: Content of: <sect1><sect2><note><para>
  66. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:42
  67. msgid ""
  68. "To boot LFS on host systems that have UEFI enabled, the kernel needs to have "
  69. "been built with the CONFIG_EFI_STUB capabality described in the previous "
  70. "section. However, LFS can be booted using GRUB2 without such an "
  71. "addition. To do this, the UEFI Mode and Secure Boot capabilities in the host "
  72. "system's BIOS need to be turned off. For details, see <ulink "
  73. "url=\"&hints-root;lfs-uefi.txt\"> the lfs-uefi.txt hint</ulink> at "
  74. "&hints-root;lfs-uefi.txt."
  75. msgstr ""
  76. #. type: Content of: <sect1><sect2><title>
  77. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:56
  78. msgid "GRUB Naming Conventions"
  79. msgstr ""
  80. #. type: Content of: <sect1><sect2><para>
  81. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:58
  82. msgid ""
  83. "GRUB uses its own naming structure for drives and partitions in the form of "
  84. "<emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis> is the hard drive "
  85. "number and <emphasis>m</emphasis> is the partition number. The hard drive "
  86. "number starts from zero, but the partition number starts from one for normal "
  87. "partitions and five for extended partitions. Note that this is different "
  88. "from earlier versions where both numbers started from zero. For example, "
  89. "partition <filename class=\"partition\">sda1</filename> is "
  90. "<emphasis>(hd0,1)</emphasis> to GRUB and <filename "
  91. "class=\"partition\">sdb3</filename> is <emphasis>(hd1,3)</emphasis>. In "
  92. "contrast to Linux, GRUB does not consider CD-ROM drives to be hard "
  93. "drives. For example, if using a CD on <filename "
  94. "class=\"partition\">hdb</filename> and a second hard drive on <filename "
  95. "class=\"partition\">hdc</filename>, that second hard drive would still be "
  96. "<emphasis>(hd1)</emphasis>."
  97. msgstr ""
  98. #. type: Content of: <sect1><sect2><title>
  99. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:76
  100. msgid "Setting Up the Configuration"
  101. msgstr ""
  102. #. type: Content of: <sect1><sect2><para>
  103. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:78
  104. msgid ""
  105. "GRUB works by writing data to the first physical track of the hard disk. "
  106. "This area is not part of any file system. The programs there access GRUB "
  107. "modules in the boot partition. The default location is /boot/grub/."
  108. msgstr ""
  109. #. type: Content of: <sect1><sect2><para>
  110. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:83
  111. msgid ""
  112. "The location of the boot partition is a choice of the user that affects the "
  113. "configuration. One recommendation is to have a separate small (suggested "
  114. "size is 200 MB) partition just for boot information. That way each build, "
  115. "whether LFS or some commercial distro, can access the same boot files and "
  116. "access can be made from any booted system. If you choose to do this, you "
  117. "will need to mount the separate partition, move all files in the current "
  118. "<filename class=\"directory\">/boot</filename> directory (e.g. the linux "
  119. "kernel you just built in the previous section) to the new partition. You "
  120. "will then need to unmount the partition and remount it as <filename "
  121. "class=\"directory\">/boot</filename>. If you do this, be sure to update "
  122. "<filename>/etc/fstab</filename>."
  123. msgstr ""
  124. #. type: Content of: <sect1><sect2><para>
  125. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:95
  126. msgid ""
  127. "Using the current lfs partition will also work, but configuration for "
  128. "multiple systems is more difficult."
  129. msgstr ""
  130. #. type: Content of: <sect1><sect2><para>
  131. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:98
  132. msgid ""
  133. "Using the above information, determine the appropriate designator for the "
  134. "root partition (or boot partition, if a separate one is used). For the "
  135. "following example, it is assumed that the root (or separate boot) partition "
  136. "is <filename class=\"partition\">sda2</filename>."
  137. msgstr ""
  138. #. type: Content of: <sect1><sect2><para>
  139. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:104
  140. msgid ""
  141. "Install the GRUB files into <filename "
  142. "class=\"directory\">/boot/grub</filename> and set up the boot track:"
  143. msgstr ""
  144. #. type: Content of: <sect1><sect2><warning><para>
  145. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:108
  146. msgid ""
  147. "The following command will overwrite the current boot loader. Do not run the "
  148. "command if this is not desired, for example, if using a third party boot "
  149. "manager to manage the Master Boot Record (MBR)."
  150. msgstr ""
  151. #. type: Content of: <sect1><sect2><screen>
  152. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:113
  153. #, no-wrap
  154. msgid "<userinput>grub-install /dev/sda</userinput>"
  155. msgstr ""
  156. #. type: Content of: <sect1><sect2><note><para>
  157. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:116
  158. msgid ""
  159. "If the system has been booted using UEFI, <command>grub-install</command> "
  160. "will try to install files for the <emphasis>x86_64-efi</emphasis> target, "
  161. "but those files have not been installed in chapter 6. If this is the case, "
  162. "add <option>--target i386-pc</option> to the command above."
  163. msgstr ""
  164. #. type: Content of: <sect1><sect2><title>
  165. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:137
  166. msgid "Creating the GRUB Configuration File"
  167. msgstr ""
  168. #. type: Content of: <sect1><sect2><para>
  169. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:139
  170. msgid "Generate <filename>/boot/grub/grub.cfg</filename>:"
  171. msgstr ""
  172. #. type: Content of: <sect1><sect2><screen>
  173. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:141
  174. #, no-wrap
  175. msgid ""
  176. "<userinput>cat &gt; /boot/grub/grub.cfg &lt;&lt; \"EOF\"\n"
  177. "<literal># Begin /boot/grub/grub.cfg\n"
  178. "set default=0\n"
  179. "set timeout=5\n"
  180. "\n"
  181. "insmod ext2\n"
  182. "set root=(hd0,2)\n"
  183. "\n"
  184. "menuentry \"GNU/Linux, Linux &linux-version;-lfs-&version;\" {\n"
  185. " linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 "
  186. "ro\n"
  187. "}</literal>\n"
  188. "EOF</userinput>"
  189. msgstr ""
  190. #. type: Content of: <sect1><sect2><screen>
  191. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:154
  192. #, no-wrap
  193. msgid ""
  194. "<userinput>cat &gt; /boot/grub/grub.cfg &lt;&lt; \"EOF\"\n"
  195. "<literal># Begin /boot/grub/grub.cfg\n"
  196. "set default=0\n"
  197. "set timeout=5\n"
  198. "\n"
  199. "insmod ext2\n"
  200. "set root=(hd0,2)\n"
  201. "\n"
  202. "menuentry \"GNU/Linux, Linux &linux-version;-lfs-&versiond;\" {\n"
  203. " linux /boot/vmlinuz-&linux-version;-lfs-&versiond; root=/dev/sda2 "
  204. "ro\n"
  205. "}</literal>\n"
  206. "EOF</userinput>"
  207. msgstr ""
  208. #. type: Content of: <sect1><sect2><note><para>
  209. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:168
  210. msgid ""
  211. "From <application>GRUB</application>'s perspective, the kernel files are "
  212. "relative to the partition used. If you used a separate /boot partition, "
  213. "remove /boot from the above <emphasis>linux</emphasis> line. You will also "
  214. "need to change the <emphasis>set root</emphasis> line to point to the boot "
  215. "partition."
  216. msgstr ""
  217. #. type: Content of: <sect1><sect2><para>
  218. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:175
  219. msgid ""
  220. "GRUB is an extremely powerful program and it provides a tremendous number of "
  221. "options for booting from a wide variety of devices, operating systems, and "
  222. "partition types. There are also many options for customization such as "
  223. "graphical splash screens, playing sounds, mouse input, etc. The details of "
  224. "these options are beyond the scope of this introduction."
  225. msgstr ""
  226. #. type: Content of: <sect1><sect2><caution><para>
  227. #: /home/xry111/svn-repos/LFS-BOOK/chapter10/grub.xml:181
  228. msgid ""
  229. "There is a command, <application>grub-mkconfig</application>, that can write "
  230. "a configuration file automatically. It uses a set of scripts in "
  231. "/etc/grub.d/ and will destroy any customizations that you make. These "
  232. "scripts are designed primarily for non-source distributions and are not "
  233. "recommended for LFS. If you install a commercial Linux distribution, there "
  234. "is a good chance that this program will be run. Be sure to back up your "
  235. "grub.cfg file."
  236. msgstr ""