[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a9e389d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-bootable-fstab">
|
---|
| 9 | <?dbhtml filename="fstab.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Creating the /etc/fstab File</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-bootable-fstab">
|
---|
| 14 | <primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <para os="a">The <filename>/etc/fstab</filename> file is used by some
|
---|
| 18 | programs to determine where file systems are to be mounted by default,
|
---|
| 19 | in which order, and which must be checked (for integrity errors) prior
|
---|
| 20 | to mounting. Create a new file systems table like this:</para>
|
---|
| 21 |
|
---|
[790f34e] | 22 | <screen><userinput>cat > ${CLFS}/targetfs/etc/fstab << "EOF"
|
---|
[5846de5] | 23 | <literal># file-system mount-point type options dump fsck
|
---|
| 24 | /dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1</literal>
|
---|
[a9e389d] | 25 | EOF</userinput></screen>
|
---|
| 26 |
|
---|
[5846de5] | 27 | <para os="b">Replace <replaceable>[xxx]</replaceable>
|
---|
| 28 | and <replaceable>[fff]</replaceable>
|
---|
[a9e389d] | 29 | with the values appropriate for the system, for example, <filename
|
---|
[5846de5] | 30 | class="partition">mmcblk0p2</filename>
|
---|
| 31 | and <systemitem class="filesystem">ext4</systemitem>. For details on the
|
---|
[a9e389d] | 32 | fields in this file, see <command>man 5 fstab</command>.</para>
|
---|
| 33 |
|
---|
[5846de5] | 34 | <para>You may also add any other file systems, such as swap or other partitions
|
---|
| 35 | or network file systems, to this fstab as well.</para>
|
---|
[a9e389d] | 36 |
|
---|
| 37 | </sect1>
|
---|