diff options
Diffstat (limited to 'chapter08/fstab.xml')
-rw-r--r-- | chapter08/fstab.xml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 5b706eee4..ef811fada 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -14,35 +14,36 @@ determine where file systems are to be mounted by default, which must be checked and in which order. Create a new file systems table like this:</para> -<screen><userinput>cat > /etc/fstab << "EOF"</userinput> +<screen><userinput>cat > /etc/fstab << "EOF" # Begin /etc/fstab # file system mount-point fs-type options dump fsck-order -/dev/xxx / fff defaults 1 1 -/dev/yyy swap swap pri=1 0 0 +/dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1 +/dev/<replaceable>[yyy]</replaceable> swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 # End /etc/fstab -<userinput>EOF</userinput></screen> +EOF</userinput></screen> -<para>Of course, replace <filename>xxx</filename>, <filename>yyy</filename> -and <filename>fff</filename> with the values appropriate for your system -- -for example <filename>hda2</filename>, <filename>hda5</filename> and -<filename>reiserfs</filename>. For all the details on the six fields in this +<para>Of course, replace <replaceable>[xxx]</replaceable>, <replaceable>[yyy]</replaceable> +and <replaceable>[fff]</replaceable> with the values appropriate for your system -- +for example <filename class="partition">hda2</filename>, <filename class="partition">hda5</filename> and +<systemitem class="filesystem">reiserfs</systemitem>. For all the details on the six fields in this table, see <command>man 5 fstab</command>.</para> -<para>When using a reiserfs partition, the <emphasis>1 1</emphasis> at the -end of the line should be replaced with <emphasis>0 0</emphasis>, as such a +<para>When using a reiserfs partition, the <parameter>1 1</parameter> at the +end of the line should be replaced with <parameter>0 0</parameter>, as such a partition does not need to be dumped or checked</para> -<para>The <filename>/dev/shm</filename> mount point for tmpfs is included to +<para>The <filename class="directory">/dev/shm</filename> mount point for +<systemitem class="filesystem">tmpfs</systemitem> is included to allow enabling POSIX shared memory. Your kernel must have the required support built into it for this to work -- more about this in the next section. Please note that currently very little software actually uses POSIX shared memory. -Therefore you can consider the <filename>/dev/shm</filename> mount point +Therefore you can consider the <filename class="directory">/dev/shm</filename> mount point optional. For more information, see <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel source tree.</para> |