source: chapter08/fstab.xml@ f27835d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since f27835d was 21ba4e3, checked in by Greg Schafer <greg@…>, 21 years ago

Internal markup reworking to fix the extraneous whitespace problem in the "tidy generated" web site pages. Essentially replace all ocurrences of <para><screen> with <screen> (and of course the matching closing tags).

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2958 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<sect1 id="ch08-fstab">
2<title>Creating the /etc/fstab file</title>
3<?dbhtml filename="fstab.html" dir="chapter08"?>
4
5<para>The <filename>/etc/fstab</filename> file is used by some programs to
6determine where partitions are to be mounted by default, which file systems
7must be checked and in which order. Create a new file systems table like
8this:</para>
9
10<screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"</userinput>
11# Begin /etc/fstab
12
13# filesystem mount-point fs-type options dump fsck-order
14
15/dev/xxx / fff defaults 1 1
16/dev/yyy swap swap pri=1 0 0
17proc /proc proc defaults 0 0
18devpts /dev/pts devpts gid=4,mode=620 0 0
19shm /dev/shm tmpfs defaults 0 0
20
21# End /etc/fstab
22<userinput>EOF</userinput></screen>
23
24<para>Of course, replace <filename>xxx</filename>, <filename>yyy</filename>
25and <filename>fff</filename> with the values appropriate for your system --
26for example <filename>hda2</filename>, <filename>hda5</filename> and
27<filename>reiserfs</filename>. For all the details on the six fields in this
28table, see <userinput>man 5 fstab</userinput>.</para>
29
30<para>When using a reiserfs partition, the <emphasis>1 1</emphasis> at the
31end of the line should be replaced with <emphasis>0 0</emphasis>, as such a
32partition does not need to be dumped or checked</para>
33
34<para>The <filename>/dev/shm</filename> mount point for tmpfs is included to
35enable POSIX shared memory. Your kernel must have the required support built
36into it for this to work. More about this in the next section. Please note that
37currently, very little software actually uses POSIX shared memory. Therefore you
38can consider the <filename>/dev/shm</filename> mount optional. For more
39information, see <filename>Documentation/filesystems/tmpfs.txt</filename> in the
40kernel source tree.</para>
41
42<para>There are other lines which you may consider adding to your
43<filename>fstab</filename> file. One example is a line to use if you intend to
44use USB devices:</para>
45
46<screen>usbfs /proc/bus/usb usbfs defaults 0 0</screen>
47
48<para>This option will of course only work if you have the relevant support
49compiled into your kernel.</para>
50
51</sect1>
52
Note: See TracBrowser for help on using the repository browser.