[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-fstab">
|
---|
| 9 | <?dbhtml filename="fstab.html"?>
|
---|
| 10 |
|
---|
[91ad4a4] | 11 | <title>Creating the /etc/fstab File</title>
|
---|
[3f8be484] | 12 |
|
---|
| 13 | <indexterm zone="ch-boot-fstab">
|
---|
[91ad4a4] | 14 | <primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
---|
[acbe4bd] | 15 | <secondary>boot</secondary>
|
---|
[3f8be484] | 16 | </indexterm>
|
---|
| 17 |
|
---|
[91ad4a4] | 18 | <para os="a">The <filename>/etc/fstab</filename> file is used by some
|
---|
[3f8be484] | 19 | programs to determine where file systems are to be mounted by default,
|
---|
| 20 | which must be checked, and in which order. Create a new file systems
|
---|
| 21 | table like this:</para>
|
---|
| 22 |
|
---|
[3f76cac] | 23 | <screen><userinput>cat > ${CLFS}/etc/fstab << "EOF"
|
---|
[3f8be484] | 24 | <literal># Begin /etc/fstab
|
---|
| 25 |
|
---|
| 26 | # file system mount-point type options dump fsck
|
---|
| 27 | # order
|
---|
| 28 |
|
---|
| 29 | /dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1
|
---|
| 30 | /dev/<replaceable>[yyy]</replaceable> swap swap pri=1 0 0
|
---|
[8f1ae86] | 31 | devpts /dev/pts devpts gid=&gid-tty;,mode=620 0 0
|
---|
[3f8be484] | 32 | shm /dev/shm tmpfs defaults 0 0
|
---|
[24932e0] | 33 |
|
---|
[3f8be484] | 34 | # End /etc/fstab</literal>
|
---|
| 35 | EOF</userinput></screen>
|
---|
| 36 |
|
---|
[dabbced] | 37 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[3f8be484] | 38 | href="../../bootable/common/fstab.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 40 |
|
---|
[0c8ebac] | 41 | <para os="c">The <filename class="directory">/dev/shm</filename> mount point
|
---|
| 42 | for <systemitem class="filesystem">tmpfs</systemitem> is included to
|
---|
| 43 | allow enabling POSIX-shared memory. The kernel must have the required
|
---|
| 44 | support built into it for this to work (more about this is in the next
|
---|
| 45 | section). Please note that very little software currently uses
|
---|
| 46 | POSIX-shared memory. Therefore, consider the <filename
|
---|
| 47 | class="directory">/dev/shm</filename> mount point optional. For more
|
---|
| 48 | information, see <filename>Documentation/filesystems/tmpfs.txt</filename>
|
---|
| 49 | in the kernel source tree.</para>
|
---|
[3f8be484] | 50 |
|
---|
| 51 | </sect1>
|
---|