aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2009-05-17 02:52:18 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2009-05-17 02:52:18 +0000
commitaf6115579c870a648424d6ad44810f38459f2193 (patch)
treea844cfa2d786818fa796b0e383806159ed2cf388 /chapter08
parent4a8b9b3abf29b99e73eac2bb6ab813d365826b5d (diff)
Add an explanation about using the barrier option in fstab. Fixes #2318.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8881 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/fstab.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml
index 026ec000c..2bf2cb2ad 100644
--- a/chapter08/fstab.xml
+++ b/chapter08/fstab.xml
@@ -95,4 +95,19 @@ EOF</userinput></screen>
<!-- 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
+ <option>barrier=1</option> mount option to the appropriate entry in
+ <filename>/etc/fstab</filename>. To check if the disk drive supports
+ this option, run
+ <ulink url="http://www.linuxfromscratch.org/blfs/view/cvs/general/hdparm.html">hdparm</ulink>
+ on the applicable disk drive. For example, if:</para>
+
+<screen><userinput>hdparm -I /dev/sda | grep NCQ</userinput></screen>
+
+ <para>returns non-empty output, the option is supported.</para>
+
+ <para>Note: Logical Volume Management (LVM) based partitions cannot use the
+ <option>barrier</option> option.</para>
+
</sect1>