aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/fstab.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/fstab.xml')
-rw-r--r--chapter08/fstab.xml29
1 files changed, 13 insertions, 16 deletions
diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml
index d1be334ee..91ad2dfe0 100644
--- a/chapter08/fstab.xml
+++ b/chapter08/fstab.xml
@@ -19,7 +19,7 @@
which must be checked (for integrity errors) prior to mounting. Create a new
file systems table like this:</para>
-<screen><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"
+<screen revision="sysv"><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"
<literal># Begin /etc/fstab
# file system mount-point type options dump fsck
@@ -36,6 +36,18 @@ devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
# End /etc/fstab</literal>
EOF</userinput></screen>
+<screen revision="systemd"><userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"
+<literal># Begin /etc/fstab
+
+# file system mount-point type options dump fsck
+# order
+
+/dev/<replaceable>&lt;xxx&gt;</replaceable> / <replaceable>&lt;fff&gt;</replaceable> defaults 1 1
+/dev/<replaceable>&lt;yyy&gt;</replaceable> swap swap pri=1 0 0
+
+# End /etc/fstab</literal>
+EOF</userinput></screen>
+
<para>Replace <replaceable>&lt;xxx&gt;</replaceable>,
<replaceable>&lt;yyy&gt;</replaceable>, and <replaceable>&lt;fff&gt;</replaceable>
with the values appropriate for the system, for example, <filename
@@ -44,19 +56,6 @@ EOF</userinput></screen>
class="filesystem">ext4</systemitem>. For details on the six
fields in this file, see <command>man 5 fstab</command>.</para>
-<!--
- <para>The <filename class="directory">/dev/shm</filename> mount point
- for <systemitem class="filesystem">tmpfs</systemitem> is included to
- allow enabling POSIX-shared memory. The kernel must have the required
- support built into it for this to work (more about this is in the next
- section). Please note that very little software currently uses
- POSIX-shared memory. Therefore, 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>
--->
-
<para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs,
iso9660, udf) need the <quote>iocharset</quote> mount option in order for
non-ASCII characters in file names to be interpreted properly. The value
@@ -96,8 +95,6 @@ EOF</userinput></screen>
<quote>Default iocharset for FAT</quote> (<option>CONFIG_FAT_DEFAULT_IOCHARSET</option>).
There is no way to specify these settings for the
ntfs filesystem at kernel compilation time.</para>
- <!-- Personally, I find it more foolproof to always specify the iocharset and
- codepage in /etc/fstab for MS-based filesystems - Alexander E. Patrakov -->
<para>It is possible to make the ext3 filesystem reliable across power
failures for some hard disk types. To do this, add the