fstab.xml 838 B

12345678910111213141516171819202122232425
  1. <sect1 id="ch07-fstab">
  2. <title>Creating the /etc/fstab file</title>
  3. <para>In order for certain programs to be able to determine where certain
  4. partitions are supposed to be mounted by default, the /etc/fstab file is
  5. used. A new file <filename>/etc/fstab</filename> is created containing the
  6. following:</para>
  7. <para><screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"</userinput>
  8. # Begin /etc/fstab
  9. /dev/&lt;LFS-partition designation&gt; / &lt;fs-type&gt; defaults 1 1
  10. /dev/&lt;swap-partition designation&gt; swap swap defaults 0 0
  11. proc /proc proc defaults 0 0
  12. # End /etc/fstab
  13. <userinput>EOF</userinput></screen></para>
  14. <para>&lt;LFS-partition designation&gt;, &lt;swap-partition
  15. designation&gt; and &lt;fs-type&gt; have to be replaced with the appropriate
  16. values
  17. (/dev/hda2, /dev/hda5 and reiserfs for example).</para>
  18. </sect1>