aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02
diff options
context:
space:
mode:
Diffstat (limited to 'chapter02')
-rw-r--r--chapter02/creatingfilesystem.xml10
-rw-r--r--chapter02/creatingpartition.xml6
-rw-r--r--chapter02/mounting.xml18
3 files changed, 17 insertions, 17 deletions
diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml
index 3745679b8..ae1f5b8c6 100644
--- a/chapter02/creatingfilesystem.xml
+++ b/chapter02/creatingfilesystem.xml
@@ -16,18 +16,18 @@ system, but build instructions for other file systems can be found at
<para>To create an ext2 file system on the LFS partition run the following:</para>
-<screen><userinput>mke2fs /dev/xxx</userinput></screen>
+<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
-<para>Replace <filename>xxx</filename> with the name of the LFS partition
+<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition
(something like <filename>hda5</filename>).</para>
<para>If you created a (new) swap partition you need to initialize it as a
swap partition too (also known as formatting, like you did above with
-<userinput>mke2fs</userinput>) by running:</para>
+<command>mke2fs</command>) by running:</para>
-<screen><userinput>mkswap /dev/yyy</userinput></screen>
+<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
-<para>Replace <filename>yyy</filename> with the name of the swap
+<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
partition.</para>
</sect1>
diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml
index fd317876e..82b4184e4 100644
--- a/chapter02/creatingpartition.xml
+++ b/chapter02/creatingpartition.xml
@@ -28,12 +28,12 @@ The swap partition for your LFS system can be the same one as for your host
system, so you won't have to create another if your host system already uses
a swap partition.</para>
-<para>Start a disk partitioning program such as <userinput>cfdisk</userinput>
-or <userinput>fdisk</userinput> with an argument naming the hard disk upon
+<para>Start a disk partitioning program such as <command>cfdisk</command>
+or <command>fdisk</command> with an argument naming the hard disk upon
which the new partition must be created -- for example
<filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native
partition and a swap partition, if needed. Please refer to the man pages of
-<userinput>cfdisk</userinput> or <userinput>fdisk</userinput> if you don't yet
+<command>cfdisk</command> or <command>fdisk</command> if you don't yet
know how to use the programs.</para>
<para>Remember the designation of your new partition -- something like
diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml
index 610ccf652..87331dcfb 100644
--- a/chapter02/mounting.xml
+++ b/chapter02/mounting.xml
@@ -10,7 +10,7 @@
<para>Now that we've created a file system, we want to be able to access
the partition. For that, we need to mount it, and have to choose a mount
point. In this book we assume that the file system is mounted under
-<filename>/mnt/lfs</filename>, but it doesn't matter what directory
+<filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory
you choose.</para>
<para>Choose a mount point and assign it to the LFS environment variable
@@ -21,22 +21,22 @@ by running:</para>
<para>Now create the mount point and mount the LFS file system by running:</para>
<screen><userinput>mkdir -p $LFS
-mount /dev/xxx $LFS</userinput></screen>
+mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>
-<para>Replace <filename>xxx</filename> with the designation of the LFS
+<para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS
partition.</para>
<para>If you have decided to use multiple partitions for LFS (say one for
-<filename>/</filename> and another for <filename>/usr</filename>), mount
-them like this:</para>
+<filename class="directory">/</filename> and another for
+<filename class="directory">/usr</filename>), mount them like this:</para>
<screen><userinput>mkdir -p $LFS
-mount /dev/xxx $LFS
+mount /dev/<replaceable>[xxx]</replaceable> $LFS
mkdir $LFS/usr
-mount /dev/yyy $LFS/usr</userinput></screen>
+mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>
-<para>Of course, replace <filename>xxx</filename> and <filename>yyy</filename>
-with the appropriate partition names.</para>
+<para>Of course, replace <replaceable>[xxx]</replaceable> and
+<replaceable>[yyy]</replaceable> with the appropriate partition names.</para>
<para>You should also ensure that this new partition is not mounted with
permissions that are too restrictive (such as the nosuid, nodev or noatime