diff options
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/chapter08.xml | 1 | ||||
-rw-r--r-- | chapter08/fstab.xml | 31 | ||||
-rw-r--r-- | chapter08/introduction.xml | 3 |
3 files changed, 34 insertions, 1 deletions
diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index be5f0ae05..ba515c1af 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -2,6 +2,7 @@ <title>Making the LFS system bootable</title> &c8-introduction; +&c8-fstab; &c8-kernel; &c8-lilo; &c8-reboot; diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml new file mode 100644 index 000000000..d896e5f77 --- /dev/null +++ b/chapter08/fstab.xml @@ -0,0 +1,31 @@ +<sect1 id="ch07-fstab"> +<title>Creating the /etc/fstab file</title> + +<para> +In order for certain programs to be able to determine where certain +partitions are supposed to be mounted by default, the /etc/fstab file is +used. A new file <filename>/etc/fstab</filename> is created containing the +following: +</para> + +<literallayout> +<userinput>cat > /etc/fstab << "EOF"</userinput> +# Begin /etc/fstab + +/dev/<LFS-partition designation> / <fs-type> defaults 1 1 +/dev/<swap-partition designation> swap swap defaults 0 0 +proc /proc proc defaults 0 0 + +# End /etc/fstab +<userinput>EOF</userinput> +</literallayout> + +<para> +<LFS-partition designation>, <swap-partition +designation> and <fs-type> have to be replaced with the appropriate + values +(/dev/hda2, /dev/hda5 and reiserfs for example). +</para> + +</sect1> + diff --git a/chapter08/introduction.xml b/chapter08/introduction.xml index d1c95d498..04fe57aec 100644 --- a/chapter08/introduction.xml +++ b/chapter08/introduction.xml @@ -2,7 +2,8 @@ <title>Introduction</title> <para> -This chapter will make LFS bootable. This chapter deals with building a +This chapter will make LFS bootable. This chapter deals with creating a +new fstab file, building a new kernel for the new LFS system and adding the proper entries to LILO so that the LFS system can be selected for booting at the LILO: prompt. </para> |