From 142c5980ca79d47974f5cf4440d0a4eeea378809 Mon Sep 17 00:00:00 2001 From: Simon Perreault Date: Thu, 3 May 2001 23:05:29 +0000 Subject: Moved the creation of /etc/fstab from the end of chapter 7 to the beginning of chapter 8. It fits better there, and it has been on my TODO for a long time. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@563 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/chapter08.xml | 1 + chapter08/fstab.xml | 31 +++++++++++++++++++++++++++++++ chapter08/introduction.xml | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 chapter08/fstab.xml (limited to 'chapter08') 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 @@ Making the LFS system bootable &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 @@ + +Creating the /etc/fstab file + + +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 /etc/fstab is created containing the +following: + + + +cat > /etc/fstab << "EOF" +# 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 +EOF + + + +<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). + + + + 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 @@ Introduction -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. -- cgit v1.2.3-54-g00ecf