2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch07-fstab">
|
|
|
|
<title>Creating the /etc/fstab file</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>In order for certain programs to be able to determine where certain
|
2001-01-24 00:31:17 +00:00
|
|
|
partitions are supposed to be mounted by default, the /etc/fstab file is
|
2001-03-19 14:30:14 +00:00
|
|
|
used. A new file <filename>/etc/fstab</filename> is created containing the
|
2001-07-22 20:45:10 +01:00
|
|
|
following:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cat > /etc/fstab << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
# Begin /etc/fstab
|
|
|
|
|
2001-02-28 01:35:10 +00:00
|
|
|
/dev/<LFS-partition designation> / <fs-type> defaults 1 1
|
2001-01-24 00:31:17 +00:00
|
|
|
/dev/<swap-partition designation> swap swap defaults 0 0
|
|
|
|
proc /proc proc defaults 0 0
|
|
|
|
|
|
|
|
# End /etc/fstab
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><LFS-partition designation>, <swap-partition
|
2001-03-19 14:30:14 +00:00
|
|
|
designation> and <fs-type> have to be replaced with the appropriate
|
|
|
|
values
|
2001-07-22 20:45:10 +01:00
|
|
|
(/dev/hda2, /dev/hda5 and reiserfs for example).</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|