[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 |
|
---|
[286ecce] | 8 | <sect1 id="ch-scripts-fstab">
|
---|
[3f8be484] | 9 | <?dbhtml filename="fstab.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Creating the /etc/fstab File</title>
|
---|
| 12 |
|
---|
[286ecce] | 13 | <indexterm zone="ch-scripts-fstab">
|
---|
[3f8be484] | 14 | <primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
---|
[286ecce] | 15 | <secondary>system config</secondary>
|
---|
[3f8be484] | 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <para os="a">The <filename>/etc/fstab</filename> file is used by some
|
---|
| 19 | programs to determine where file systems are to be mounted by default,
|
---|
| 20 | in which order, and which must be checked (for integrity errors) prior
|
---|
| 21 | to mounting. Create a new file systems table like this:</para>
|
---|
| 22 |
|
---|
| 23 | <screen><userinput>cat > /etc/fstab << "EOF"
|
---|
| 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
|
---|
[579ba7c] | 31 | devpts /dev/pts devpts gid=&gid-tty;,mode=620 0 0
|
---|
| 32 | shm /dev/shm tmpfs defaults 0 0
|
---|
[2029c0d9] | 33 |
|
---|
[3f8be484] | 34 | # End /etc/fstab</literal>
|
---|
| 35 | EOF</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <para os="b">Replace <replaceable>[xxx]</replaceable>,
|
---|
| 38 | <replaceable>[yyy]</replaceable>, and <replaceable>[fff]</replaceable>
|
---|
| 39 | with the values appropriate for the system, for example, <filename
|
---|
| 40 | class="partition">hda2</filename>, <filename
|
---|
| 41 | class="partition">hda5</filename>, and <systemitem
|
---|
| 42 | class="filesystem">ext2</systemitem>. For details on the six
|
---|
| 43 | fields in this file, see <command>man 5 fstab</command>.</para>
|
---|
| 44 |
|
---|
| 45 | </sect1>
|
---|