<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-boot-fstab">
  <?dbhtml filename="fstab.html"?>

  <title>Creating the /etc/fstab File</title>

  <indexterm zone="ch-boot-fstab">
    <primary sortas="e-/etc/fstab">/etc/fstab</primary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  href="../common/fstab.xml"
  xpointer="xpointer(//*[@os='a'])"/>

<screen><userinput>cat &gt; ${CLFS}/etc/fstab &lt;&lt; "EOF"
<literal># Begin /etc/fstab

# file system  mount-point     type        options          dump  fsck
#                                                                 order

/dev/<replaceable>[xxx]</replaceable>        /            <replaceable>[fff]</replaceable>       defaults         1     1
/dev/<replaceable>[yyy]</replaceable>        swap         swap        pri=1            0     0
proc           /proc           proc        defaults         0     0
sysfs          /sys            sysfs       defaults         0     0
devpts         /dev/pts        devpts      gid=4,mode=620   0     0
shm            /dev/shm        tmpfs       defaults         0     0
tmpfs          /run            tmpfs       defaults         0     0
devtmpfs       /dev            devtmpfs    mode=0755,nosuid 0     0
none           /proc/openprom  openpromfs  defaults         0     0
# End /etc/fstab</literal>
EOF</userinput></screen>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  href="../common/fstab.xml"
  xpointer="xpointer(//*[@os='b'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  href="../common/fstab.xml"
  xpointer="xpointer(//*[@os='c'])"/>

</sect1>
