From 81fd230419b0cfd052b08fc1ed352bb7d49975df Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sat, 19 Feb 2005 22:16:42 +0000 Subject: Trunk is now identical to Testing git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/fstab.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'chapter08/fstab.xml') diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 015e26bc6..969d306fb 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -7,6 +7,13 @@ Creating the /etc/fstab File +/etc/fstab + +The /etc/fstab file is used by some +programs to determine where file systems are to be mounted by default, +which must be checked, and in which order. Create a new file systems +table like this: + cat > /etc/fstab << "EOF" # Begin /etc/fstab @@ -22,4 +29,39 @@ shm /dev/shm tmpfs defaults 0 0 # End /etc/fstab EOF +Replace [xxx], +[yyy], and [fff] +with the values appropriate for the system, for example, hda2, hda5, and ext2. For details on the six +fields in this file, see man 5 fstab. + +When using a journalling file system, the 1 +1 at the end of the line should be replaced with +0 0 because such a partition does not need to +be dumped or checked. + +The /dev/shm mount point +for tmpfs is included to +allow enabling POSIX-shared memory. The kernel must have the required +support built into it for this to work (more about this is in the next +section). Please note that very little software currently uses +POSIX-shared memory. Therefore, consider the /dev/shm mount point optional. For more +information, see +Documentation/filesystems/tmpfs.txt in the kernel +source tree. + +There are other lines which may be added to the +/etc/fstab file. One example is a line for USB +devices: + +usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 + +This option will only work if Support for Host-side +USB and USB device filesystem are compiled into +the kernel (not as a module). + + -- cgit v1.2.3-54-g00ecf