Kaynağa Gözat

Minor language fix in chapter 2

Xi Ruoyao 7 yıl önce
ebeveyn
işleme
71e5f3a999

+ 11 - 12
chapter02/aboutlfs.xml

@@ -21,8 +21,8 @@
   following command:</para-->
   <para>在本书中,我们经常使用环境变量 <envar>LFS</envar> 。您应该保证,
 	  在构建 LFS 的全过程中,该变量都被定义且设置为您构建 LFS 使用的目录
-	  - 我们使用 <filename class="directory">/mnt/lfs</filename> 作为例子,
-	  然而您可以选择其他目录。如果您在一个独立的分区上构建 LFS ,
+	  —— 我们使用 <filename class="directory">/mnt/lfs</filename> 作为例子,
+	  您可以选择其他目录。如果您在一个独立的分区上构建 LFS ,
 	  那么这个目录将成为该分区的挂载点。选择一个目录,
 	  然后用下列命令设置环境变量:</para>
 
@@ -35,7 +35,7 @@
   processes the command line.</para-->
   <para>设置该环境变量的好处是,我们可以直接输入书中的命令,例如
 	  <command>mkdir -v $LFS/tools</command> 。
-	  Shell 在解析命令时会自动 <quote>$LFS</quote> 替换成
+	  Shell 在解析命令时会自动 <quote>$LFS</quote> 替换成
 	  <quote>/mnt/lfs</quote>(或是您设置的其他值)。</para>
 
   <caution>
@@ -44,7 +44,7 @@
   <command>su</command> to <systemitem class="username">root</systemitem> or
   another user). Check that the <envar>LFS</envar> variable is set up
   properly with:</para-->
-  <para> 如果您离开重新进入了工作环境 (例如使用 <command>su</command>
+  <para> 如果您离开重新进入了工作环境 (例如使用 <command>su</command>
   切换到 <systemitem class="username">root</systemitem> 或者其他用户),
   请执行下列命令,检查 <envar>LFS</envar> 的设置是否正确:</para>
 
@@ -55,7 +55,7 @@
   provided example was followed. If the output is incorrect, use the command
   given earlier on this  page to set <envar>$LFS</envar> to the correct
   directory name.</para-->
-  <para> 确认该命令的输出是您构建 LFS 的位置,如果您使用本书提供的例子,
+  <para>确认该命令的输出是您构建 LFS 的位置,如果您使用本书提供的例子,
 	  那么输出应该是 <filename class="directory">/mnt/lfs</filename>。
 	  如果输出不正确,使用前文给出的命令,将 <envar>$LFS</envar>
 	  设置成正确的目录名。</para>
@@ -69,14 +69,14 @@
   <envar>LFS</envar> variable needs to be bash to ensure that the
   <filename>/root/.bash_profile</filename> file is incorporated as a part of
   the login process.</para-->
-  <para>确保 <envar>LFS</envar> 始终正确的一种方法是编辑您的主目录中的
+  <para>确保 <envar>LFS</envar> 始终正确的一种方法是编辑您的主目录中的
 	  <filename>.bash_profile</filename> 以及
 	  <systemitem class="username">root</systemitem> 用户的
 	  <filename>/root/.bash_profile</filename>,为它们加入上述设置并导出
-	  <envar>LFS</envar> 变量的 <command>export</command> 命令。另外,确认
-	  <filename>/etc/passwd</filename> 中给出的每个登录用户使用的 shell
-	  都是 bash,以保证每次登录时都执行 <filename>.bash_profile</filename>
-	  中的命令。</para>
+	  <envar>LFS</envar> 变量的 <command>export</command> 命令。还要确认
+	  <filename>/etc/passwd</filename> 中为每个需要使用 <envar>LFS</envar>
+	  变量的用户指定的 shell 都是 bash,以保证每次登录时都执行
+	  <filename>.bash_profile</filename> 中的命令。</para>
   
   <!--para>Another consideration is the method that is used to log into the
   host system.  If logging in through a graphical display manager, the
@@ -91,10 +91,9 @@
 	  一般不会被虚拟终端执行。此时,应该将 <command>export</command>
 	  命令加入到您使用的用户和
 	  <systemitem class="username">root</systemitem> 的
-	  <filename>.bashrc</filename> 中。另外,如果以非交互模式启动 bash,
+	  <filename>.bashrc</filename> 文件中。另外,如果以非交互模式启动 bash,
 	  有的发行版不会执行 <filename>.bashrc</filename> 中的指令。
 	  此时一定要在使用环境变量前添加 <command>export</command> 命令。</para>
-  
   </note>
 
 </sect1>

+ 7 - 6
chapter02/creatingfilesystem.xml

@@ -16,9 +16,10 @@
   complex and depends on the characteristics of the files and the size of 
   the partition.  For example:</para-->
   <para>现在我们建立好了空白分区,可以在分区上建立文件系统。
-	  LFS 可以使用 Linux 内核识别的任何文件系统,最常见的是 ext3 和 ext4。
-	  文件系统的选型是一个复杂的问题,要综合考虑分区的大小和存储文件的特征。
-	  例如:</para>
+	  LFS 可以使用 Linux 内核能够识别的任何文件系统,
+	  最常见的是 ext3 和 ext4。
+	  文件系统的选型是一个复杂的问题,要综合考虑分区的大小,
+	  以及其中所存储文件的特征。例如:</para>
 
   <variablelist>
     <varlistentry>
@@ -102,16 +103,16 @@ rm -rfv e2fsprogs-&e2fsprogs-version;</userinput></screen>
   it will need to be initialized with this command:</para-->
   <para>如果您拥有一个现成的
 	  <systemitem class="filesystem">swap</systemitem>分区,
-	  就不格式化它。如果新创建了一个
+	  就不需要格式化它。如果新创建了一个
 	  <systemitem class="filesystem">swap</systemitem>分区,
-	  需要用下列命令初始化它:
+	  需要执行下列命令以初始化它:
   </para>
 
 <screen role="nodump"><userinput>mkswap /dev/<replaceable>&lt;yyy&gt;</replaceable></userinput></screen>
 
   <!--para>Replace <replaceable>&lt;yyy&gt;</replaceable> with the name of the
   <systemitem class="filesystem">swap</systemitem> partition.</para-->
-  <para>将<replaceable>&lt;yyy&gt;</replaceable> 替换成
+  <para>命令中 <replaceable>&lt;yyy&gt;</replaceable> 应该替换成
 	  <systemitem class="filesystem">swap</systemitem> 分区的名称。</para>
 
 </sect1>

+ 5 - 4
chapter02/mounting.xml

@@ -17,8 +17,9 @@
   <envar>LFS</envar> environment variable as described in the previous section.
   </para-->
   <para>我们已经在分区上建立了文件系统,为了访问分区,
-	  我们需要把分区挂载到选定的挂载点上。本书假设将文件系统挂载到
-	  <envar>LFS</envar> 环境变量指定的目录中,就像前一节描述的那样。</para>
+	  我们需要把分区挂载到选定的挂载点上。正如前一节所述,
+	  本书假设将文件系统挂载到 <envar>LFS</envar> 环境变量指定的目录中。
+  </para>
 
   <!--para>Create the mount point and mount the LFS file system by running:</para-->
   <para>输入下列命令以创建挂载点,并挂载 LFS 文件系统:</para>
@@ -53,7 +54,7 @@ mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/usr</userinput
   without any parameters to see what options are set for the mounted LFS
   partition. If <option>nosuid</option> and/or <option>nodev</option> are set,
   the partition will need to be remounted.</para-->
-  <para>确认这个新的分区在挂载时没有过于严格的安全限制 (比如
+  <para>确认在挂载新分区时没有使用过于严格的安全限制 (比如
 	  <option>nosuid</option> 或者 <option>nodev</option> 等选项) 。
 	  直接执行不带任何参数的 <command>mount</command> 命令,
 	  检查挂载好的 LFS 分区被指定了哪些选项。如果 <option>nodev</option>
@@ -75,7 +76,7 @@ mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/usr</userinput
 <screen role="nodump">/dev/<replaceable>&lt;xxx&gt;</replaceable>  /mnt/lfs ext4   defaults      1     1</screen>
 
 	  如果您使用了多个分区,它们都需要添加到<filename>fstab</filename>中。
-	  </para>
+  </para>
   </warning>