Mounting the new partition Now that we have created the ext2 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 mounting it. If it is mounted under /mnt/lfs, this partition can be accessed by going to the /mnt/lfs directory and then doing whatever needed to do. This book will assume that the partition was mounted on a subdirectory under /mnt. It doesn't matter which directory is chosen, the user just has to make sure that he remembers what he chose. Create the /mnt/lfs directory by runnning:
mkdir -p /mnt/lfs
Now mount the LFS partition by running:
mount /dev/xxx /mnt/lfs
Replace xxx by the partition's designation. This directory (/mnt/lfs) is the $LFS variable I have written about earlier. So if the user somewhere reads to "cp inittab $LFS/etc" he actually will type cp inittab /mnt/lfs/etc. Or if he wants to use the $LFS environment variable, export LFS=/mnt/lfs has to be executed now.