diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2002-01-24 00:13:05 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2002-01-24 00:13:05 +0000 |
commit | 5ef3797c41c01e9565b7616a2d97be8a8f94b51f (patch) | |
tree | 03329ffbbc06cf9f49113692aab414ac8a7d4750 /chapter06/mtablink.xml | |
parent | 2cad36ffa4be0fe6e132dbc6773d8deac27399f7 (diff) |
[Bug 183] /etc/mtab --> /proc/mounts symlink added
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1475 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/mtablink.xml')
-rw-r--r-- | chapter06/mtablink.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chapter06/mtablink.xml b/chapter06/mtablink.xml new file mode 100644 index 000000000..a573bd62b --- /dev/null +++ b/chapter06/mtablink.xml @@ -0,0 +1,24 @@ +<sect1 id="ch06-mtablink"> +<title>Creating the /etc/mtab symlink</title> +<?dbhtml filename="mtablink.html" dir="chapter06"?> + +<para>The next thing to do is to create a symlink pointing from +/etc/mtab to /proc/mounts. This is done using the following +command:</para> + +<para><screen><userinput>ln -s /proc/mounts /etc/mtab</userinput></screen></para> + +<para>Creating this symlink avoids problems which can occur if / is +mounted read-only and the information in /etc/mtab is stale (i.e. out of +date). By creating the symlink to /proc/mounts, we ensure that +/etc/mtab will always be up-to-date.</para> + +<para>Note that using this symlink requires that you have /proc +filesystem support compiled into your kernel. This is included by +default and should not be removed unless you <emphasis>really</emphasis> +know what you are doing as many more things than just the /etc/mtab +symlink depend on /proc being present. In summary, make sure you have +/proc filesystem support in your kernel.</para> + +</sect1> + |