Creating directories

Let's create the directory tree on the LFS partition according to the FHS standard which can be found at http://www.pathname.com/fhs/. Issuing the following commands will create the necessary directories:



root:~# cd $LFS
root:/mnt/hda5# mkdir bin boot dev etc home lib mnt proc root \
> sbin tmp usr var
root:/mnt/hda5# cd $LFS/usr
root:/mnt/hda5/usr# mkdir bin include lib local sbin share src
root:/mnt/hda5/usr# ln -s share/man man
root:/mnt/hda5/usr# ln -s share/doc doc
root:/mnt/hda5/usr# ln -s share/info info
root:/mnt/hda5/usr# ln -s ../etc etc
root:/mnt/hda5/usr# ln -s ../var var
root:/mnt/hda5/usr# cd $LFS/usr/share
root:/mnt/hda5/usr/share# mkdir dict doc info locale man nls \
> misc terminfo zoneinfo
root:/mnt/hda5/usr/share# cd $LFS/usr/share/man
root:/mnt/hda5/usr/share/man# mkdir man1 man2 man3 man4 man5 \
> man6 man7 man8
root:/mnt/hda5/usr/share/man# cd $LFS/var
root:/mnt/hda5/var# mkdir lock log run spool tmp

Now that the directories are created, copy the source files you have downloaded in chapter 3 to some subdirectory under $LFS/usr/src (you will need to create this subdirectory yourself).