1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
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 |
|
---|
22 | <screen><userinput>cat > ${CLFS}/targetfs/etc/fstab << "EOF"
|
---|
23 | <literal># file-system mount-point type options dump fsck
|
---|
24 | /dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1</literal>
|
---|
25 | EOF</userinput></screen>
|
---|
26 |
|
---|
27 | <para os="b">Replace <replaceable>[xxx]</replaceable>
|
---|
28 | and <replaceable>[fff]</replaceable>
|
---|
29 | with the values appropriate for the system, for example, <filename
|
---|
30 | class="partition">mmcblk0p2</filename>
|
---|
31 | and <systemitem class="filesystem">ext4</systemitem>. For details on the
|
---|
32 | fields in this file, see <command>man 5 fstab</command>.</para>
|
---|
33 |
|
---|
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>
|
---|
36 |
|
---|
37 | </sect1>
|
---|