From 548d65f273ba6289d556b8dcb954e99e7987ad1e Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sun, 21 Sep 2003 10:33:48 +0000 Subject: Cleaning and marking up the fstab section. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2859 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/fstab.xml | 54 ++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'chapter08') diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 80b515f15..188bc8633 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -2,50 +2,50 @@ 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. Create a new file /etc/fstab containing the -following: +The /etc/fstab file is used by some programs to +determine where partitions are to be mounted by default, which file systems +must be checked and in which order. Create a new file systems table like +this: cat > /etc/fstab << "EOF" # Begin /etc/fstab -# filesystem mount-point fs-type options dump fsck-order +# filesystem mount-point fs-type options dump fsck-order -/dev/*LFS* / *fs-type* defaults 1 1 -/dev/*swap* swap swap pri=1 0 0 -proc /proc proc defaults 0 0 -shm /dev/shm tmpfs defaults 0 0 +/dev/xxx / fff defaults 1 1 +/dev/yyy swap swap pri=1 0 0 +proc /proc proc defaults 0 0 +shm /dev/shm tmpfs defaults 0 0 # End /etc/fstab EOF -*LFS*, -*swap* -and *fs-type* have to be replaced with the -appropriate values (/dev/hda2, /dev/hda5 and reiserfs for example). +Of course, replace xxx, yyy +and fff with the values appropriate for your system -- +for example hda2, hda5 and +reiserfs. For all the details on the six fields in this +table, see man 5 fstab. -When adding a reiserfs partition, the 1 1 at -the end of the line should be replaced with 0 0. +When using a reiserfs partition, the 1 1 at the +end of the line should be replaced with 0 0, as such a +partition does not need to be dumped or checked -A tmpfs mount is added at /dev/shm to comply with Posix shared memory -requirements. For more information, see the file -Documentation/filesystems/tmpfs.txt in the kernel source tree. +The /dev/shm mount point for tmpfs is included to +comply with Posix shared memory requirements. For more information on this, +see Documentation/filesystems/tmpfs.txt in the kernel +source tree. -For more information on the various fields which are in the fstab -file, see man 5 fstab. +There are other lines which you may consider adding to your +fstab file. One example is the line which you must have +if you are using devpts: -There are other lines which you may consider adding to your fstab -file. One example is the line which you must have if you are using -devpts: - -devpts /dev/pts devpts gid=4,mode=620 0 0 +devpts /dev/pts devpts gid=4,mode=620 0 0 Another example is a line to use if you intend to use USB devices: -usbfs /proc/bus/usb usbfs defaults 0 0 +usbfs /proc/bus/usb usbfs defaults 0 0 -Both of these options will only work if you have the relevant +Both of these options will of course only work if you have the relevant support compiled into your kernel. -- cgit v1.2.3-54-g00ecf