fstab.xml 845 B

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