source: BOOK/bootable/common/fstab.xml @ 9dbb23ec

clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 9dbb23ec was 722514d, checked in by William Harrington <kb0iic@…>, 11 years ago

Adjust spaces in bootable section fstab.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-bootable-fstab">
9  <?dbhtml filename="fstab.html"?>
10
11  <title>Creating the /etc/fstab File</title>
12
13  <indexterm zone="ch-bootable-fstab">
14    <primary sortas="e-/etc/fstab">/etc/fstab</primary>
15  </indexterm>
16
17  <para os="a">The <filename>/etc/fstab</filename> file is used by some
18  programs to determine where file systems are to be mounted by default,
19  in which order, and which must be checked (for integrity errors) prior
20  to mounting. Create a new file systems table like this:</para>
21
22<screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"
23<literal># Begin /etc/fstab
24
25# file system  mount-point  type   options          dump  fsck
26#                                                         order
27
28/dev/<replaceable>[xxx]</replaceable>     /            <replaceable>[fff]</replaceable>  defaults         1     1
29/dev/<replaceable>[yyy]</replaceable>     swap         swap   pri=1            0     0
30proc           /proc        proc   defaults         0     0
31sysfs          /sys         sysfs  defaults         0     0
[8f1ae86]32devpts         /dev/pts     devpts gid=&gid-tty;,mode=620   0     0
[3f8be484]33shm            /dev/shm     tmpfs  defaults         0     0
[722514d]34tmpfs          /run         tmpfs  defaults         0     0
35devtmpfs       /dev         devtmpfs mode=0755,nosuid 0     0
[2029c0d9]36
[3f8be484]37# End /etc/fstab</literal>
38EOF</userinput></screen>
39
40  <para os="b">Replace <replaceable>[xxx]</replaceable>,
41  <replaceable>[yyy]</replaceable>, and <replaceable>[fff]</replaceable>
42  with the values appropriate for the system, for example, <filename
43  class="partition">hda2</filename>, <filename
44  class="partition">hda5</filename>, and <systemitem
45  class="filesystem">ext2</systemitem>. For details on the six
46  fields in this file, see <command>man 5 fstab</command>.</para>
47
[cb943f4]48  <para os="c">The <filename class="directory">/dev/shm</filename> mount point
[3f8be484]49  for <systemitem class="filesystem">tmpfs</systemitem> is included to
50  allow enabling POSIX-shared memory. The kernel must have the required
51  support built into it for this to work (more about this is in the next
52  section). Please note that very little software currently uses
53  POSIX-shared memory.  Therefore, consider the <filename
54  class="directory">/dev/shm</filename> mount point optional. For more
55  information, see <filename>Documentation/filesystems/tmpfs.txt</filename>
56  in the kernel source tree.</para>
57
58</sect1>
Note: See TracBrowser for help on using the repository browser.