Text update

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@358 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2001-03-23 03:13:31 +00:00
parent 0375b34d45
commit 728ea56c70
3 changed files with 32 additions and 35 deletions

View File

@ -2,10 +2,10 @@
<title>Creating directories</title> <title>Creating directories</title>
<para> <para>
Let's create the directory tree on the LFS partition according to the FHS Let's create the directory tree on the LFS partition based on the FHS
standard, which can be found at <ulink standard, which can be found at <ulink
url="http://www.pathname.com/fhs/">http://www.pathname.com/fhs/</ulink>. url="http://www.pathname.com/fhs/">http://www.pathname.com/fhs/</ulink>.
Issuing the following commands will create the necessary directories: Issuing the following commands will create a default directory layout:
</para> </para>
<blockquote><literallayout> <blockquote><literallayout>
@ -36,16 +36,15 @@ Issuing the following commands will create the necessary directories:
<para> <para>
Normally, directories are created with permission mode 755, which isn't Normally, directories are created with permission mode 755, which isn't
desired for all directories. I haven't checked if the FHS suggests desired for all directories. The first change is a mode 0750 for the
default modes for certain directories, so I'll just change the modes for $LFS/root directory. This is to make sure that not just everybody can
a few directories that make sense to change. The first change is a mode enter the /root directory (the same a user would do with /home/username
0750 for the $LFS/root directory. This is to make sure that not just directories). The second change is a mode 1777 for the tmp
everybody can enter the /root directory (the same a user would do with directories. This way, any user can write data to the /tmp directory when
/home/username directories). The second change is a mode 1777 for the tmp needed. The sticky bit (the first bit in the 1777 mask) makes sure
directories. This way, any user can write stuff to the /tmp directory when users can't delete other users files which they normally can do,
needed. The sticky (1) bit makes sure users can't delete other because the directory is set in such a way that everybody (owner, group,
users' files which they normally can do, because the directory is set in world) can write to that directory (the 777 in the bit mask)
such a way that everybody (owner, group, world) can write to that directory.
</para> </para>
<blockquote><literallayout> <blockquote><literallayout>
@ -58,8 +57,8 @@ such a way that everybody (owner, group, world) can write to that directory.
<para> <para>
Now that the directories are created, copy the source files that were Now that the directories are created, copy the source files that were
downloaded in chapter 3 to some subdirectory under $LFS/usr/src (this downloaded in chapter 3 to some subdirectory under $LFS/usr/src (you
directory still needs to be created yet). will need to create the desired directory yourself).
</para> </para>
</sect1> </sect1>

View File

@ -3,11 +3,11 @@
<para> <para>
Once the partition is created, we have to create a new file system on Once the partition is created, we have to create a new file system on
that partition. To create an ext2 file system, the mke2fs command is the that partition. To create an ext2 file system, use the mke2fs command.
correct choice. To create a reiser file system, the mkreiserfs command To create a reiser file system, the mkreiserfs command should be used.
should be used. The new partition is used as the only option to the The new partition is used as the only option to the command and the file
command and the file system is created. If the partition is hda11 system is created. If the partition is hda11 and ext2 is to be created,
and ext2 is to be created, the user would run: run the following:
</para> </para>
<blockquote><literallayout> <blockquote><literallayout>
@ -17,7 +17,7 @@ and ext2 is to be created, the user would run:
</literallayout></blockquote> </literallayout></blockquote>
<para> <para>
To create a reiser file system the user would run: To create a reiser file system, run the following:
</para> </para>
<blockquote><literallayout> <blockquote><literallayout>

View File

@ -1,15 +1,14 @@
<sect1 id="ch04-mountingpart"> <sect1 id="ch04-mounting">
<title>Mounting the new partition</title> <title>Mounting the new partition</title>
<para> <para>
Now that we have created the ext2 file system, it is ready for use. All we have Now that we have created a file system, it is ready for use. All we have
to do to be able to access it (as in reading from and writing date to it) is to do to be able to access it (as in reading data from and writing data to
mounting it. If it is mounted under /mnt/lfs, this partition can be accessed it) is mounting it. If it is mounted under /mnt/lfs, this partition can
by going to the /mnt/lfs directory and then doing whatever needed to do. This be accessed by going to the /mnt/lfs directory and then doing whatever
book will assume that the partition was mounted on a subdirectory needed to do. This book will assume that the partition was mounted
under /mnt. It doesn't matter which directory is chosen, the user just has under /mnt/lfs. It doesn't matter which directory is chosen, the
to make sure user just has to make sure that he remembers what he chose.
that he remembers what he chose.
</para> </para>
<para> <para>
@ -33,15 +32,14 @@ Now mount the LFS partition by running:
</literallayout></blockquote> </literallayout></blockquote>
<para> <para>
Replace <quote>xxx</quote> by the partition's designation. Replace <quote>xxx</quote> by the partition's designation (like hda11).
</para> </para>
<para> <para>
This directory (/mnt/lfs) is the $LFS variable I have written about earlier. This directory (/mnt/lfs) is the $LFS variable you have read about earlier.
So if the user somewhere reads to "cp inittab $LFS/etc" he actually will type If you were planning to make use of the $LFS environment variable,
<quote>cp inittab /mnt/lfs/etc</quote>. Or if he wants to use the $LFS <userinput>export LFS=/mnt/lfs</userinput> has to be executed now.
environment variable, <userinput>export LFS=/mnt/lfs</userinput> has to be </para>
executed now. </para>
</sect1> </sect1>